LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

[Bug]: Humanitz - Incorrect Server Settings File Being Referenced

Open theBeaz opened this issue 1 year ago • 6 comments

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

theBeaz avatar Jan 05 '25 22:01 theBeaz

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!

theBeaz avatar Jan 05 '25 22:01 theBeaz

I know how to work around it, but FYI since this file is wrong!

would you please tell how?

morphygee avatar Feb 21 '25 17:02 morphygee

9be745f115af223243d65284b2fc0eb4cff04cd8

dgibbs64 avatar Mar 07 '25 16:03 dgibbs64

9be745f

This not deployed in master, right ?

HenriqueCRodrigues avatar May 06 '25 16:05 HenriqueCRodrigues

@HenriqueCRodrigues Nope not deployed yet. I recently ran into the same problem.

Kneggebrot avatar May 30 '25 13:05 Kneggebrot

There may be a better way but here's how I fixed it, since https://github.com/GameServerManagers/LinuxGSM/commit/9be745f115af223243d65284b2fc0eb4cff04cd8 is in develop:

  1. Backup and then delete the lgsm directory
    • I also deleted my serverfiles directory, not sure if it was necessary but my server was fresh anyway so didn't matter
  2. export LGSM_GITHUBBRANCH=develop
  3. linuxgsm.sh hzserver
  4. ./hzserver install
  5. ./hzserver start
  6. If you didn't delete your serverfiles you might be good to go
  7. 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.
  8. After it's started ./hzserver stop.
  9. Edit your GameServerSettings.ini as desired
  10. ./hzserver start and you should be all set

lwestfall avatar Jun 04 '25 22:06 lwestfall