[Bug]: Humanitz - Incorrect Server Settings File Being Referenced
User story
On a fresh install, I want LGSM to look at the correct server settings file
Game
Humanitz
Linux distro
Ubuntu 24.04
Command
command: details
Further information
When running details on Humanitz, it says the config file is: /home/lgsm/serverfiles/TSSGame/Saved/Config/LinuxServer/GameUserSettings.ini
This is incorrect. This file contains client-side settings.
The server config file is here: /home/lgsm/serverfiles/TSSGame/GameServerSettings.ini
This contains server name, max players, password, etc. It gets created after first server start.
Another issue with this is that the details command will report the server name as "NOT SET" because it is looking for the "ServerName" var in the GameUserSettings file instead of GameServerSettings (where it actually is).
Relevant log output
No response
Steps to reproduce
No response
Forgot that it will also start modifying the command line to start the server to "NOT SET" as well since it ignores common.cfg. That's the even bigger problem. I know how to work around it, but FYI since this file is wrong!
I know how to work around it, but FYI since this file is wrong!
would you please tell how?
9be745f115af223243d65284b2fc0eb4cff04cd8
@HenriqueCRodrigues Nope not deployed yet. I recently ran into the same problem.
There may be a better way but here's how I fixed it, since https://github.com/GameServerManagers/LinuxGSM/commit/9be745f115af223243d65284b2fc0eb4cff04cd8 is in develop:
- Backup and then delete the
lgsmdirectory- I also deleted my serverfiles directory, not sure if it was necessary but my server was fresh anyway so didn't matter
-
export LGSM_GITHUBBRANCH=develop -
linuxgsm.sh hzserver -
./hzserver install -
./hzserver start - If you didn't delete your serverfiles you might be good to go
- If you deleted your serverfiles like me, it's going to start NOT SET first, that's okay. It'll create the GameServerSettings.ini file.
- After it's started
./hzserver stop. - Edit your GameServerSettings.ini as desired
-
./hzserver startand you should be all set