Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing settings in OpenSoldatServer's "server.cfg" - WIP #140

Open
Dankage102 opened this issue Aug 17, 2022 · 2 comments
Open

Missing settings in OpenSoldatServer's "server.cfg" - WIP #140

Dankage102 opened this issue Aug 17, 2022 · 2 comments

Comments

@Dankage102
Copy link
Contributor

Dankage102 commented Aug 17, 2022

I tried to host a server and noticed there are a lot of missing options for server in server.cfg

How it looks now:

// server name
sv_hostname "My server"
//// admin password - Set this to enable TCP remote admin console.
//sv_adminpassword "changeme"
//// server password
//sv_password "changeme"

How I managed to organize it for my likings. Work in progress.

//NETWORK-DONE
net_port "23073"
//net_port "23073"					//The port your server runs on, and player have to connect to

net_lan "0"
//net_lan "0"						//Set to 1 to set server to LAN mode

net_floodingpacketslan "80"
//net_floodingpacketslan "80"		//When running on a LAN, controls how many packets should be considered flooding

net_floodingpacketsinternet "42"
//net_floodingpacketsinternet "42"	//When running on the Internet, controls how many packets should be considered flooding

net_allowdownload "1"
//net_allowdownload "1"				//Enables/Disables file transfers

net_compression "1"
//net_compression "1"				//Enables/Disables compression of packets

net_ip "0.0.0.0"
//net_ip "0.0.0.0"					//Binds server ports to specific ip address

net_adminip "0.0.0.0"
//net_adminip "0.0.0.0"				//Binds admin port to specific ip address

net_maxconnections "10"
//net_maxconnections "10"			//Maximum number of simultaneous file transfer connections

net_maxadminconnections "20"
//net_maxadminconnections "20"		//Maximum number of admin connections

net_rcon_limit "5"
//net_rcon_limit "5"				//Limits the rate of admin connection attempts per second

net_rcon_burst "10"
//net_rcon_burst "10"				//Limits the burst rate of admin connection attempts per second

net_t1_snapshot "35"
//net_t1_snapshot "35"				//How often to send sprite snapshot packets on the internet in ticks (60 ticks = 1 second)

net_t1_majorsnapshot "19"
//net_t1_majorsnapshot "19"			//How often to send major sprite snapshot packets on the internet in ticks (60 ticks = 1 second)

net_t1_deadsnapshot "50"
//net_t1_deadsnapshot "50"			//How often to send dead sprite snapshot packets on the internet in ticks (60 ticks = 1 second)

net_t1_heartbeat "135"
//net_t1_heartbeat "135"			//How often to send heartbeat packets on the internet in ticks (60 ticks = 1 second)

net_t1_delta "4"
//net_t1_delta "4"					//How often to send bot sprite deltas on the internet in ticks (60 ticks = 1 second)

net_t1_ping "21"
//net_t1_ping "21"					//How often to send ping packets on the internet in ticks (60 ticks = 1 second)

net_t1_thingsnapshot "31"
//net_t1_thingsnapshot "31"			//How often to send thing snapshot packets on the internet in ticks (60 ticks = 1 second)


//SERVER_BASIC
sv_lobby "0"
sv_lobbyurl "http://api.soldat.pl:443"
sv_hostname "OpenSoldat Server"
sv_info ""
sv_adminpassword ""
sv_password ""
sv_maxplayers "16"
sv_maxspectators "8"
sv_spectatorchat "1"
sv_advancedspectator "1"
sv_votepercent "60"
sv_minping "0"
sv_maxping "400"
sv_greeting "Welcome"
sv_greeting2 ""
sv_greeting3 ""

//SERVER_ADVANCED
sv_respawntime "180"
sv_respawntime_minwave "120"
sv_respawntime_maxwave "240"
sv_timelimit "36000"
sv_gamemode "3"
sv_dm_limit "30"
sv_pm_limit "30"
sv_tm_limit "60"
sv_ctf_limit "10"
sv_rm_limit "30"
sv_inf_limit "90"
sv_inf_redaward "30"
sv_inf_bluelimit "5"
sv_htf_limit "80"
sv_htf_pointstime "5"
sv_friendlyfire "0"
sv_survivalmode "0"
sv_survivalmode_clearweapons "0"
sv_realisticmode "0"
sv_advancemode "0"
sv_advancemode_amount "1"
sv_bonus_frequency "0"
sv_bonus_flamer "0"
sv_bonus_predator "0"
sv_bonus_berserker "0"
sv_bonus_vest "0"
sv_bonus_cluster "0"
////Missing Weapons Availability Cvars
sv_maxgrenades "3"
sv_stationaryguns "0"
sv_bullettime "0"
sv_sniperline "0"
//sv_sniperline works like in 1.7.1 i.e. "1"=False, "0"=True
sv_radio "1"
sv_minimap "0"
//sv_minimap works like in 1.7.1 i.e. "1"=False, "0"=True

//SERVER_ADVANCED2
sv_gravity "0.06"
sv_guns_collide "0"
sv_kits_collide "0"
sv_balanceteams "0"
sv_survivalmode_antispy "0"
sv_maplist "mapslist.txt"
sv_anticheatkick "0"
//sv_anticheatkick works like in 1.7.1 i.e. "1"=False, "0"=True

//BOTS
bots_difficulty "50"
bots_chat "0"
bots_random_noteam "0"
bots_random_alpha "0"
bots_random_bravo "0"
bots_random_charlie "0"
bots_random_delta "0"

//SCRIPTCORE
sc_enable "1"
sc_onscriptcrash "ignore"
sc_safemode "1"
sc_allowdlls "0"
sc_sandboxed "2"
sc_defines ""
sc_searchpaths ""

@Dankage102 Dankage102 changed the title Missing settings in OpenSoldatServer's "server.cfg" Missing settings in OpenSoldatServer's "server.cfg" WIP Aug 21, 2022
@Dankage102 Dankage102 changed the title Missing settings in OpenSoldatServer's "server.cfg" WIP Missing settings in OpenSoldatServer's "server.cfg" - WIP Aug 21, 2022
@BranDougherty
Copy link
Member

BranDougherty commented Aug 28, 2022

I think its probably best if we just include in a comment a link to a GitHub Wiki page that lists and explains the cvars. Having every value in the default .cfg files means having multiple places need to be updated in order to change a default value (in Cvar.pas and default server.cfg in base), which would be a little annoying IMO.

@Dankage102
Copy link
Contributor Author

Dankage102 commented Aug 28, 2022

I suggest to let server create the "server.cfg"(during first startup or when the file doesn't exist) cuz it already holds all the data in memory, that way You have only 1 place to change default values. I also suggest printing in console at server startup only the cvars that have value other than default.

I would really like to have all the cvars in one place. If You use my suggestion, github wiki page about it will be even easier to keep up to date cuz You can just copy-paste what server generated in "server.cfg".

I would really like to have all the cvars in one place.If it would be only on wiki on github then I can compare this to grandma making a cake and forgetting the recipe then grandson has to go to grocery store 5 times for correct ingredients, too bad if all groceries(internet connection) are closed :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants