No, you can put those three lines at the top of the server.cfg file and it will set maxplayers (overriding whatever is in the startup line).
----- Original Message ----- From: Arnaud DUMAS de RAULY <a....@esport-eu.com> Date: Tuesday, August 4, 2009 6:32 pm Subject: Re: [hlds_linux] Changing Number of Slots fix To: Half-Life dedicated Linux server mailing list <hlds_linux@list.valvesoftware.com> > Even if you run these commands in the console, when the > client > restarts the server (after running them you have to right ?), > and he > can only do this with the panel, which uses the right number of > slots > in the command line. > > Le 5 août 09 à 00:25, Zuko a écrit : > > > David: write this commands in console > > > > shutdownserver > > maxplayers 24 > > map de_dust2 > > > > > > > > 2009/8/5 David Parker <dpar...@utica.edu> > > > >> I don't know why the autoupdate option would have anything to > do > >> with the > >> value of maxplayers. I'm pretty sure it's separate. > >> > >> I tried reproducing this behavior on our server and I was not > able > >> to do > >> it. I have "+maxplayers 24" in the startup command > line. I added > >> "maxplayers 16" to the server.cfg file and restarted the > server, > >> but it > >> still had 24 player slots. I tried "exec server.cfg" in > the > >> console but > >> maxplayers still remained 24. I even tried all of this > again using > >> "-maxplayers" instead of "+maxplayers" in the startup > options, but > >> still > >> nothing. Any maxplayers value I put in the server.cfg > file has no > >> effect as > >> long as maxplayers is specified on the command line when the > server > >> is > >> started. My server also has the autoupdate option set. > >> > >> What I *was* able to do was crank up the number of max > visible > >> players. I > >> set "+maxplayers 16" on the startup line and put > >> "sv_maxvisibleplayers 24" > >> in the server.cfg file. After the server started, > both > >> "maxplayers" and > >> "status" in the console say 16, but an A2S_INFO query says > there > >> are 24 > >> player slots. Those extra 8 slots can't really be used, > but they > >> show up in > >> the query. Could this be what he is doing? > >> > >> > >> ----- Original Message ----- > >> From: Arnaud DUMAS de RAULY <a....@esport-eu.com> > >> Date: Tuesday, August 4, 2009 5:16 pm > >> Subject: Re: [hlds_linux] Changing Number of Slots fix > >> To: Half-Life dedicated Linux server mailing list < > >> hlds_linux@list.valvesoftware.com> > >> > >>> Thanks all for your suggestions, but when a customer restarts > >>> the > >>> server from his panel, the command line executes automatically > >>> the > >>> right slot count. Which is why I don't understand how he > does it > >>> and > >>> makes me wonder if it has something to do with the autoupdate > >>> commande > >>> line. > >>> > >>> Le 4 août 09 à 21:15, Marcel a écrit : > >>> > >>>> Write a small cron script that checks the slots and restarts > >>> the > >>>> server > >>>> with if the slotcount is wrong. And when you're doing this, > >>> you can > >>>> also > >>>> check if your customer has set a password (if it's a private > >>> server).> > >>>> I think the customer will complain if his server restarts > >>> every 5 > >>>> mins ;) > >>>> > >>>> > >>>> Marcel > >>>> > >>>> _______________________________________________ > >>>> To unsubscribe, edit your list preferences, or view the > >>> list > >>>> archives, please visit: > >>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux > >>> > >>> > >>> _______________________________________________ > >>> To unsubscribe, edit your list preferences, or view the list > >>> archives, please visit: > >>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux > >> _______________________________________________ > >> To unsubscribe, edit your list preferences, or view the > list > >> archives, > >> please visit: > >> http://list.valvesoftware.com/mailman/listinfo/hlds_linux > >> > > > > > > > > -- > > Żuko > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the > list > > archives, please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux