Open jefvaia opened 1 year ago
Had the same issue and after a seemingly unrelated change everything is working fine. Maybe that also fixes it for you. See: https://github.com/timgagliardi/barotrauma-server/commit/bf677221147cc591ed8ace2c7d83ee6c5f5ef9f8
If I would have to guess, I would assume that ptedoractyl has an issue with the formated logs of barotrauma and somehow pauses the container while trying to process them.
I would assume this is not a problem of barotrauma.
I see you created a docker image. So when I use that docker image, it should work just fine? And btw. Pterodactyl uses so called "eggs". I don't know how to use custom docker images with Pterodactyl (or if it's even possible). Is there any way I could use that docker image in Pterodactyl or is it Docker only?
I (more or less) followed these two guides to create a custom egg. To my knowledge Pterodactyl just uses docker in the background for the servers. The egg was created by a friend who hosts the server, so I can't describe it in detail.
Here would be the egg configuration the friend used (with the email address removed) https://gist.github.com/timgagliardi/41fcd8b6fb2c962aa869bd9cd77ba2f9
The Docs: https://pterodactyl.io/community/config/eggs/creating_a_custom_egg.html https://pterodactyl.io/community/config/eggs/creating_a_custom_image.html
I was able to solve this while using this egg by modifying the startup command to add in the text transformation. ./DedicatedServer -batchmode 2>&1 | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g"
I am having this same issue in pufferpanel. This issue doesn't come up when connecting to the volume, running bash and then running ./DedicatedServer. In every other case, I get garbled text. Any fixes?
The issue I posted was mainly about poor performance, but it did mention the text spam. I have no experience with pufferpanel, but it sound like what @Sean-Destefano posted should be the fix for the text spam. If the performance is bad like I had, try either updating the server or, if possible, try using a different container. @timgagliardi posted one that should work (never tested it though).
If this still doesn't work, I can't help further because I'm no expert on Barotrauma's code or docker. Maybe try opening an issue on either the Barotrauma Github page (right here), or ask someone who knows pufferpanel about it.
I looked at pufferpanels documentation and it also doesn't show Barotrauma as a "Supported Game", so this is uncharted territory for me...
The issue I posted was mainly about poor performance, but it did mention the text spam. I have no experience with pufferpanel, but it sound like what @Sean-Destefano posted should be the fix for the text spam. If the performance is bad like I had, try either updating the server or, if possible, try using a different container. @timgagliardi posted one that should work (never tested it though).
If this still doesn't work, I can't help further because I'm no expert on Barotrauma's code or docker. Maybe try opening an issue on either the Barotrauma Github page (right here), or ask someone who knows pufferpanel about it.
I looked at pufferpanels documentation and it also doesn't show Barotrauma as a "Supported Game", so this is uncharted territory for me...
Leaving this here in case someone else stumbles upon this later, but the text spam can be fixed with this mod by evilfactory.
Disclaimers
What happened?
I hire a virtual server for game hosting. I have never had problems while hosting Barotrauma servers, but when I switched to use Pterodctyl (which uses docker) the performance was terrible.
For reference, the server has 8 cores AMD EPYC, 30 GB ram and 800 GB disk space, of which I don't restrict it. I use a pre generated egg: link
Something I have noticed is when starting a level it uses 100% cpu in Pterodactyl (aka 100% of one core) and when the level is loaded, it hangs around 30%, which is less than half of only one core.
Also, for some weird reason the console gets flooded by unknown characters (see Relevant Error Messages for what I mean).
Reproduction steps
Bug prevalence
Happens every time I play
Version
0.21.6.0
-
No response
Which operating system did you encounter this bug on?
Linux
Relevant error messages and crash reports