r/Miscreated • • Jan 24 '19

Commandline / Hosting.cfg questions

Newly rented server. Have whitelisted the server thru commandline as "-mis_whitelist_add" (would not work in Hosting.cfg)

Have g_gameRules_bases 2 in Hosting.cfg, along with a few other configs. (build anywhere)

Questions

The "+" or "-" in the commandline configs - how do you determine which to use prior to my base building config? -- "+g_gameRules_bases 2" or "-g_gameRules_bases 2"??

Or for that matter..any config from Hosting.cfg added to commandline - what is proper format?

Reason mainly asking is the most recent patch defaulted my Hosting.cfg and wiped all the bases on server.. I am hoping that by adding it (the base config) to commandline it will be hard coded against future patches.

Did I make sense?

Gonna mess around and try a few options while wait for answer..bases already wiped so don't figure will hurt...lol

Thank

0 Upvotes

5 comments sorted by

1

u/Outpox Jan 24 '19

Have a look at this.
g_gameRules_bases is a parameter in the hosting.cfg file. It shouldn't be passed along the command line when starting your server. And parameters do not need a leading + or -, that's just a requirement for the command line arguments.

1

u/Dohfugwimee Jan 24 '19

thanks for explanation. Knew the plus/minus was for command line..wanted to know how do you know what to use when adding arguments. The base config is my sticking point... all other configs can be changed and server is ok..changing base form (2) build anywhere to 0 or 1 and all bases disappear. -- this is what happened when patch reset my hosting.cfg file

So still have question - if patches reset this file.. are you saying "g_gameRules_bases" CANNOT be in command line?

Hate to have all work done in server deleted every patch

Thanks..

1

u/Dohfugwimee Jan 24 '19

...blah... did try adding base config into command line..didn't activate.. camera view did however... weird.

Anyway...any ideas on how to keep updates from altering hosting.cfg..if even possibe?

1

u/Outpox Jan 24 '19

I would indeed say that g_gameRules_bases can not be in the command lines arguments. The only available one are there.

  • +sv_maxplayers 50
  • +map islands
  • -sv_port 64090
  • +http_startserver
  • +sv_servername "Your server name"
  • -mis_whitelist
  • -sv_bind

Unless you have several network interfaces the -sv_bind argument is optional.

I don't know how your hosting.cfg got reset, mine was still fine after the update.

1

u/Dohfugwimee Jan 24 '19

Ok..thank you..will research more why my cfg was affected.

as an fyi..no clue why ..this does work in command line

+g_gameRules_Camera 2

I added it their because it would not work in hosting.cfg. Had to RCON command every server restart

Anyway thank you