[GH-ISSUE #247] [ss3server] default config not being applied #209

Closed
opened 2026-02-27 02:00:08 +03:00 by kerem · 8 comments
Owner

Originally created by @dgibbs64 on GitHub (Dec 18, 2014).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/247

Originally assigned to: @dgibbs64 on GitHub.

Reference commend:https://github.com/dgibbs64/linuxgameservers/issues/245#issuecomment-67427408

Server works great now, but I had to make some changes.

I had to add the port to the server startup line.

# Start Variables

ip="192.111.155.210"
port="27015"

https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/SeriousSam3BFE/help/DedicatedServer_Readme.txt

fn_parms(){
parms="+ip ${ip} +port ${port} +logfile ${gamelog} +exec ${servercfgfullpath}"
}

Only with a different port since I already have something running under that port. Changing the port in the config file didn't appear to do anything. In fact the server doesn't seem to follow anything about the config file. Default config had 12 players, but the server loaded 16. Also my custom server name wasn't picked up. It defaulted to the servers host name.

I have not tried to rename the server config file to dedicatedserver.cfg to see if that fixes the issue. Just so happy to finally be able to host this game on my Linux box now.

Originally created by @dgibbs64 on GitHub (Dec 18, 2014). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/247 Originally assigned to: @dgibbs64 on GitHub. Reference commend:https://github.com/dgibbs64/linuxgameservers/issues/245#issuecomment-67427408 Server works great now, but I had to make some changes. I had to add the port to the server startup line. ``` # Start Variables ip="192.111.155.210" port="27015" https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/SeriousSam3BFE/help/DedicatedServer_Readme.txt fn_parms(){ parms="+ip ${ip} +port ${port} +logfile ${gamelog} +exec ${servercfgfullpath}" } ``` Only with a different port since I already have something running under that port. Changing the port in the config file didn't appear to do anything. In fact the server doesn't seem to follow anything about the config file. Default config had 12 players, but the server loaded 16. Also my custom server name wasn't picked up. It defaulted to the servers host name. I have not tried to rename the server config file to dedicatedserver.cfg to see if that fixes the issue. Just so happy to finally be able to host this game on my Linux box now.
kerem 2026-02-27 02:00:08 +03:00
  • closed this issue
  • added the
    type: bug
    label
Author
Owner

@lblanchardiii commented on GitHub (Dec 26, 2014):

Okay. I have gained some progress on this. So far I have managed to get a cfg file to load. What I have done.

Change the file permissions to 777.
Used absolute file paths in the parms line.
Deleted "commented out" lines from the default CFG file as well as delete a couple lines that kept getting stuck. Will post those two lines in a second, but one of them was the port line. I think because I am calling the port on the startup it's having an issue. The other one was come to thank of it a net host line that I think is the IP of the server that is being called directly in the line anyway.

I do not know which of these actually worked or if it required all of them.

<!-- gh-comment-id:68162120 --> @lblanchardiii commented on GitHub (Dec 26, 2014): Okay. I have gained some progress on this. So far I have managed to get a cfg file to load. What I have done. Change the file permissions to 777. Used absolute file paths in the parms line. Deleted "commented out" lines from the default CFG file as well as delete a couple lines that kept getting stuck. Will post those two lines in a second, but one of them was the port line. I think because I am calling the port on the startup it's having an issue. The other one was come to thank of it a net host line that I think is the IP of the server that is being called directly in the line anyway. I do not know which of these actually worked or if it required all of them.
Author
Owner

@lblanchardiii commented on GitHub (Dec 27, 2014):

Finally got somewhere with this. This is my setup.

https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/SeriousSam3BFE/help/DedicatedServer_Readme.txt

fn_parms(){
parms="+gamemode ${gamemode} +ip ${ip} +port ${port} +logfile ${gamelog} +exec Content/SeriousSam3/Config/survival.cfg"
}

Then this is what the survival.cfg file looks like:
rcts_strWelcomeNote = "Server GUI RCON";
rcts_strAdminPassword = "";
prj_strLogFile = "";
gam_idGameMode = "TeamSurvival";
ser_iMaxClientBPS = 11000;
prj_iDedicatedFPS = 100;
gam_ctMaxPlayers = 8;
gam_ctMinPlayers= 1;
prj_strMultiplayerSessionName = "Skillz Death Kamp #2 | SkillzServers.com";

gam_bAllowJoinInProgress = 1;
gam_bAllowPowerupItems = 1;
gam_bAllowArmorItems = 1;
gam_bWeaponsStay = 1;
gam_bAmmoStays = 1;
gam_bArmorStays = 1;
gam_bHealthStays = 1;
gam_bAllowHealthItems = 1;
gam_bInfiniteAmmo = 0;

gam_bAutoCycleMaps=1;

prj_strDefaultMapDir = "Content/SeriousSam3/Levels/Z5_Other/";

local prj_strMapList = {
",#SV_Deserted.wld,#SV_Canyon.wld,#SV_MedinaDefender.wld,#SV_UnderPressure.wld,#SV_Villa.wld"
}

Obviously edited for passwords, but it's a survival server. Regular coop doesn't really need a map list unless they want to load the DLC and/or start with something other than the first map.

Additionally I have the survival.cfg file permissions set to 777.

Do note that the gam_ctMinPlayers in the CFG file isn't really needed, but by default survival requires a minimum of 2 players to start. I changed it using that config so I could test quicker rather than waiting for someone to join me each time I made a change.

<!-- gh-comment-id:68166897 --> @lblanchardiii commented on GitHub (Dec 27, 2014): Finally got somewhere with this. This is my setup. # https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/SeriousSam3BFE/help/DedicatedServer_Readme.txt fn_parms(){ parms="+gamemode ${gamemode} +ip ${ip} +port ${port} +logfile ${gamelog} +exec Content/SeriousSam3/Config/survival.cfg" } Then this is what the survival.cfg file looks like: rcts_strWelcomeNote = "Server GUI RCON"; rcts_strAdminPassword = ""; prj_strLogFile = ""; gam_idGameMode = "TeamSurvival"; ser_iMaxClientBPS = 11000; prj_iDedicatedFPS = 100; gam_ctMaxPlayers = 8; gam_ctMinPlayers= 1; prj_strMultiplayerSessionName = "Skillz Death Kamp #2 | SkillzServers.com"; gam_bAllowJoinInProgress = 1; gam_bAllowPowerupItems = 1; gam_bAllowArmorItems = 1; gam_bWeaponsStay = 1; gam_bAmmoStays = 1; gam_bArmorStays = 1; gam_bHealthStays = 1; gam_bAllowHealthItems = 1; gam_bInfiniteAmmo = 0; gam_bAutoCycleMaps=1; prj_strDefaultMapDir = "Content/SeriousSam3/Levels/Z5_Other/"; local prj_strMapList = { ",#SV_Deserted.wld,#SV_Canyon.wld,#SV_MedinaDefender.wld,#SV_UnderPressure.wld,#SV_Villa.wld" } Obviously edited for passwords, but it's a survival server. Regular coop doesn't really need a map list unless they want to load the DLC and/or start with something other than the first map. Additionally I have the survival.cfg file permissions set to 777. Do note that the gam_ctMinPlayers in the CFG file isn't really needed, but by default survival requires a minimum of 2 players to start. I changed it using that config so I could test quicker rather than waiting for someone to join me each time I made a change.
Author
Owner

@dgibbs64 commented on GitHub (Jan 9, 2015):

Im not sure how best to go about this as I dont run a serious sam 3 server myself. I could do with a default config for each game type and the best default parms to set.

I think the ideal parms are as follows as @lblanchardiii specified. But i'm not sure about the configs.
parms="+gamemode ${gamemode} +ip ${ip} +port ${port} +logfile ${gamelog} +exec Content/SeriousSam3/Config/survival.cfg"

If anyone is willing to post some vanilla default configs for each game mode that they know works I will implement them in to the script. Also is survival the main game mode used or is there another one?

@lblanchardiii you mention that you use absolute path for the config however your example is a relative path. Please can you confirm which is best. Also never use 777 permissions as this is writable to anyone and not best practice (bad things can happen). something like 774 or or 744 may be better. It may be that the server requires write access to the config?

<!-- gh-comment-id:69349057 --> @dgibbs64 commented on GitHub (Jan 9, 2015): Im not sure how best to go about this as I dont run a serious sam 3 server myself. I could do with a default config for each game type and the best default parms to set. I think the ideal parms are as follows as @lblanchardiii specified. But i'm not sure about the configs. parms="+gamemode ${gamemode} +ip ${ip} +port ${port} +logfile ${gamelog} +exec Content/SeriousSam3/Config/survival.cfg" If anyone is willing to post some vanilla default configs for each game mode that they know works I will implement them in to the script. Also is survival the main game mode used or is there another one? @lblanchardiii you mention that you use absolute path for the config however your example is a relative path. Please can you confirm which is best. Also never use 777 permissions as this is writable to anyone and not best practice (bad things can happen). something like 774 or or 744 may be better. It may be that the server requires write access to the config?
Author
Owner

@Scarsz commented on GitHub (Jan 9, 2015):

Should honestly just CHOWN the server's folder if it needs write access imo.

<!-- gh-comment-id:69350013 --> @Scarsz commented on GitHub (Jan 9, 2015): Should honestly just CHOWN the server's folder if it needs write access imo.
Author
Owner

@lblanchardiii commented on GitHub (Jan 9, 2015):

Cooperative is the default gamemode and CooperativeCoinOp is similar to the default one but you don't have to worry about dying as much. Survival is a unique gamemode and not very common. Majority of the servers are Cooperative or one of the Versus modes.

With Cooperative and CooperativeCoinOp you don't really need any special parms unless you are running multiple servers on the same install/IP. Then you'll want to be able to change the ip or port. By default everything just works like it should.

For Survival you'll want to use the local prj_strMapList in the config file otherwise it will just play the same map over and over. By default it's the SV_Canyon map that will be set on repeat.

The permissions at 777 might not be required, but it was something I set them to for testing purposes. I never went back to check if it was required or not.

Absolute path is not required as I originally thought.

One thing for sure is though I don't have any "commented out" lines in my config files as that seemed to cause issues with the game engine loading it.

<!-- gh-comment-id:69357279 --> @lblanchardiii commented on GitHub (Jan 9, 2015): Cooperative is the default gamemode and CooperativeCoinOp is similar to the default one but you don't have to worry about dying as much. Survival is a unique gamemode and not very common. Majority of the servers are Cooperative or one of the Versus modes. With Cooperative and CooperativeCoinOp you don't really need any special parms unless you are running multiple servers on the same install/IP. Then you'll want to be able to change the ip or port. By default everything just works like it should. For Survival you'll want to use the local prj_strMapList in the config file otherwise it will just play the same map over and over. By default it's the SV_Canyon map that will be set on repeat. The permissions at 777 might not be required, but it was something I set them to for testing purposes. I never went back to check if it was required or not. Absolute path is not required as I originally thought. One thing for sure is though I don't have any "commented out" lines in my config files as that seemed to cause issues with the game engine loading it.
Author
Owner

@dgibbs64 commented on GitHub (Jan 9, 2015):

Cheers @lblanchardiii I will run though your comment fully and come up with somthing.

<!-- gh-comment-id:69357923 --> @dgibbs64 commented on GitHub (Jan 9, 2015): Cheers @lblanchardiii I will run though your comment fully and come up with somthing.
Author
Owner

@dgibbs64 commented on GitHub (May 12, 2015):

I have adjusted the game type and added a link in for the SS3 Server GUI 3 tool.
github.com/dgibbs64/linuxgsm@4cb78a3ef9

<!-- gh-comment-id:101402930 --> @dgibbs64 commented on GitHub (May 12, 2015): I have adjusted the game type and added a link in for the SS3 Server GUI 3 tool. https://github.com/dgibbs64/linuxgsm/commit/4cb78a3ef9ef147815235929841cd57a94bd919c
Author
Owner

@lock[bot] commented on GitHub (Jul 19, 2018):

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:406430491 --> @lock[bot] commented on GitHub (Jul 19, 2018): This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#209
No description provided.