Product Name/Version: AMP Release “Callisto” v2.5, built 22/03/2024 17:32
Problem Description:
We’re debugging LUA scripts on our server, the instance console does not output everything a srcds should output.
Is there some configuration I have to do to make that console output EVERYTHING?
Steps to reproduce:
Run server
Test some lua scripts that give errors
No Errors in AMP Instance Console.
Actions taken to resolve so far:
Checked all of configuration, found nothing so far.
You’d have to use Docker mode so that the Linux version of the server is in use. Gmod uses a fake console on Windows that isn’t readable by other applications so AMP relies on the srdcs UDP logger plus RCON instead.
You can try using log 1 to show more log output, but lua messages not being logged properly is a bug in gmod itself.
Gmod like other source games uses a fake console which means applications that actually read the output as opposed to merely displaying it have a hard time. AMP uses the source UDP logger to get its data.
If you started the server outside of AMP and redirected the output (srcds ..... > output.txt) you would also find that the output file doesn’t contain those messages.
So there is no possible way to show every output from tmux in HTTP Instance console?
Because, like I’ve said, once I log into the amp user on Linux, do tmux a, it shows EVERYTHING related to the server, including but not limited to chat etc.
AMP Instance Console shows only some information (that Is also included in tmux)
It’s not I’m afraid because tmux multiplexes an entire terminal. So fake consoles are able to show their output but AMP can’t see it. Nor can applications that use redirection.
There may be a way around this using condebug but I’m not sure how that’ll work.
Other panels work by continuously reading the console.txt file. There is a trick I can do using a FIFO stream with a matching name as a way to avoid polling and get data in real time.