[GH-ISSUE #3875] [Server FEATURE] startmodserver for Natural Selection 2 #2520

Closed
opened 2026-02-27 03:03:32 +03:00 by kerem · 4 comments
Owner

Originally created by @Hitman4 on GitHub (May 26, 2022).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3875

User Story

As a LinuxGSM user, I would like to add the newly added Natural Selection 2 DedicatedServer settings

Basic info

  • Distro: [Ubuntu 21.10]
  • Game: [Natural Selection 2]
  • LinuxGSM version: [v21.5.1]

Further Information

for the built-in mod backup web server in Natural Selection 2 which was added with patch 340

I added in the info_messages.sh to the line fn_info_message_spark() 
under the web admin port

fn_port "Mod Backup Web Serverport" modserverport tcp


In info_game.sh to the line fn_info_game_spark()
under the queryport

modserverport=${modserverport:-"0"}


in common.cfg to startparameters line behind the -webport ${webadminport}

-startmodserver -modserverport ${modserverport} and behind the -limit ${maxplayers} i add -speclimit ${spec} to set Spectator slots.

under Predefined Parameters 

maxplayers=""
spec="5"
servername=""
webadminuser=""
webadminpass=""
webadminport="8080"
modserverport="27017"

I think there's more to tweak it, it's an example of how it worked for me.
and i think to add spec or speclimit to info_game.sh make no sense, because for ranked servers its only allowed to have 5 spec slots.

Maybe someone can add that to the next patch?

Further Reading

-speclimit can be found in https://naturalselection.fandom.com/wiki/Dedicated_Server#Basic_Configuration

Added a built-in mod backup web server to the dedicated server that allows connecting clients to download mods from the server if the current version of a mod on steam is newer than the servers or the client failed to download the mod from steam. This fixes the old “Missing required mod” error. The web server can be enabled with the -startmodserver command line option. The default port it binds to is serverport + 2 this can be changed with -modserverport. You can also optionally specify the address or ip the mod server uses with -modserveraddress otherwise its defaults to -ip option.
can be found under Mod System Changes on https://store.steampowered.com/news/app/4920/view/5917165051353982118

and in the Official NS2 Discord in the server-obs channel access only with the server-obs rolle just need to ask in the ns2-chat channel .

Originally created by @Hitman4 on GitHub (May 26, 2022). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3875 ## User Story As a LinuxGSM user, I would like to add the newly added Natural Selection 2 DedicatedServer settings ## Basic info * **Distro:** [Ubuntu 21.10] * **Game:** [Natural Selection 2] * **LinuxGSM version:** [v21.5.1] ## Further Information for the built-in mod backup web server in Natural Selection 2 which was added with patch 340 ``` I added in the info_messages.sh to the line fn_info_message_spark() under the web admin port fn_port "Mod Backup Web Serverport" modserverport tcp In info_game.sh to the line fn_info_game_spark() under the queryport modserverport=${modserverport:-"0"} in common.cfg to startparameters line behind the -webport ${webadminport} -startmodserver -modserverport ${modserverport} and behind the -limit ${maxplayers} i add -speclimit ${spec} to set Spectator slots. under Predefined Parameters maxplayers="" spec="5" servername="" webadminuser="" webadminpass="" webadminport="8080" modserverport="27017" ``` I think there's more to tweak it, it's an example of how it worked for me. and i think to add spec or speclimit to info_game.sh make no sense, because for ranked servers its only allowed to have 5 spec slots. Maybe someone can add that to the next patch? ## Further Reading -speclimit can be found in https://naturalselection.fandom.com/wiki/Dedicated_Server#Basic_Configuration Added a built-in mod backup web server to the dedicated server that allows connecting clients to download mods from the server if the current version of a mod on steam is newer than the servers or the client failed to download the mod from steam. This fixes the old “Missing required mod” error. The web server can be enabled with the -startmodserver command line option. The default port it binds to is serverport + 2 this can be changed with -modserverport. You can also optionally specify the address or ip the mod server uses with -modserveraddress otherwise its defaults to -ip option. can be found under Mod System Changes on https://store.steampowered.com/news/app/4920/view/5917165051353982118 and in the Official NS2 Discord in the server-obs channel access only with the server-obs rolle just need to ask in the ns2-chat channel .
Author
Owner

@Hitman4 commented on GitHub (Aug 25, 2023):

and i found out that the webadminport is not displayed in dt it always show me 8080 but i changed it to 8081 because i have a second server as well

fn_info_message_spark() {
	fn_info_message_password_strip
	{
		fn_port "header"
		fn_port "Game" port udp
		fn_port "Query" queryport udp
		fn_port "Web Interface" httpport tcp
	} | column -s $'\t' -t
	echo -e ""
	echo -e "${lightgreen}${gamename} Web Interface${default}"
	fn_messages_separator
	{
		echo -e "${lightblue}Web Interface url:\t${default}http://${httpip}:${httpport}/index.html"
		echo -e "${lightblue}Web Interface username:\t${default}${httpuser}"
		echo -e "${lightblue}Web Interface password:\t${default}${httppassword}"
	} | column -s $'\t' -t
}

fn_info_message_spark() {
	fn_info_message_password_strip
	{
		fn_port "header"
		fn_port "Game" port udp
		fn_port "Query" queryport udp
		fn_port "Web Interface" webadminport tcp
	} | column -s $'\t' -t
	echo -e ""
	echo -e "${lightgreen}${gamename} Web Interface${default}"
	fn_messages_separator
	{
		echo -e "${lightblue}Web Interface url:\t${default}http://${httpip}:${webadminport}/index.html"
		echo -e "${lightblue}Web Interface username:\t${default}${httpuser}"
		echo -e "${lightblue}Web Interface password:\t${default}${httppassword}"
	} | column -s $'\t' -t
}
<!-- gh-comment-id:1694040939 --> @Hitman4 commented on GitHub (Aug 25, 2023): and i found out that the webadminport is not displayed in dt it always show me 8080 but i changed it to 8081 because i have a second server as well ``` fn_info_message_spark() { fn_info_message_password_strip { fn_port "header" fn_port "Game" port udp fn_port "Query" queryport udp fn_port "Web Interface" httpport tcp } | column -s $'\t' -t echo -e "" echo -e "${lightgreen}${gamename} Web Interface${default}" fn_messages_separator { echo -e "${lightblue}Web Interface url:\t${default}http://${httpip}:${httpport}/index.html" echo -e "${lightblue}Web Interface username:\t${default}${httpuser}" echo -e "${lightblue}Web Interface password:\t${default}${httppassword}" } | column -s $'\t' -t } ``` ``` fn_info_message_spark() { fn_info_message_password_strip { fn_port "header" fn_port "Game" port udp fn_port "Query" queryport udp fn_port "Web Interface" webadminport tcp } | column -s $'\t' -t echo -e "" echo -e "${lightgreen}${gamename} Web Interface${default}" fn_messages_separator { echo -e "${lightblue}Web Interface url:\t${default}http://${httpip}:${webadminport}/index.html" echo -e "${lightblue}Web Interface username:\t${default}${httpuser}" echo -e "${lightblue}Web Interface password:\t${default}${httppassword}" } | column -s $'\t' -t } ```
Author
Owner

@dgibbs64 commented on GitHub (Nov 26, 2023):

I am giving this a go but I cant see to get it working currently

<!-- gh-comment-id:1826849281 --> @dgibbs64 commented on GitHub (Nov 26, 2023): I am giving this a go but I cant see to get it working currently
Author
Owner

@dgibbs64 commented on GitHub (Nov 26, 2023):

Got it working and raised a PR

<!-- gh-comment-id:1826941247 --> @dgibbs64 commented on GitHub (Nov 26, 2023): Got it working and raised a PR
Author
Owner

@github-actions[bot] commented on GitHub (Dec 16, 2024):

This issue 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:2544219483 --> @github-actions[bot] commented on GitHub (Dec 16, 2024): This issue 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#2520
No description provided.