Left4DevOps / l4d2-docker

L4D2 Server Docker Image
37 stars 8 forks source link

How do I set the launch parameter "-tickrate 100" #11

Closed CoffeeRong closed 4 months ago

CoffeeRong commented 4 months ago

How do I set the launch parameter "-tickrate 100"?I want to optimize my server. i don't know you mean " Command line replacement You can completely replace the guided environment variable configuration by providing arguments when starting the container docker run --name l4d2-command-line \ left4devops/l4d2 +hostname "Vannah Hotel" "

CoffeeRong commented 4 months ago

I see "DEFAULT-MODE coop" in the environment settings, does this mean that I can set "DEFAULT-TICKRATE 100"? I tried it, but it didn't work

hazmeister commented 4 months ago

I haven’t included a variable for tick rate as changing tick rate is not supported in vanilla l4d2, you need an addon . If you have the addon , set the tick rate using EXTRA_ARGS.

e.g -e EXTRA_ARGS="-tickrate 100"

if you’ve set it correctly, you should see it when you run docker top l4d2

image

CoffeeRong commented 4 months ago

Thank you. I added "EXTRA-ARGS" and "tickrate 100" to the "Environment" settings of Docker, and it seems to have been successfully implemented! This is my first time working on servers and Dockers. Thank you for your help and dedication!

hazmeister commented 4 months ago

No worries, you’re most welcome! 🤗

CoffeeRong commented 4 months ago

I have encounter a new issue where the server encounters an error upon installing the sourcemod plugin, which is reported as

./srcds_run: line 312: 64 Aborted (core dumped) $HL_CMD Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem Server restart in 10 seconds

After reinstalling and meticulously modifying the configuration, I have determined that the issue arose from the installation of the sourcemod plugin, rather than the "metamod" plugin.

Have I overlooked a parameter that needs to be configured? I have uploaded the log at the end. I installed this using the Container Manager software on Synology.

It was able to run at some point before, but suddenly an error occurred. Is it because L4D2 has updated the patch again

l4d2.csv QQ截图20240515200027

CoffeeRong commented 4 months ago

Sorry to bother you, it seems that due to the update of L4D2, both metamod and sourcemod have been updated to fix the crash issue

hazmeister commented 4 months ago

No worries,

As you have already discovered, the update on the 14th May update was unusually large, and broke both Sourcemod and Metamod. Glad you were able to get up and running again.