Yes indeed you can use the principle to do any cvar of course. The only thing you need to watch out for are potentially lines might be written like so:
sv_something 1; sv_somethingelse 2; maxplayers 234; mp_another 0; As a solution you could build a parser with the for loop command which produces a carriage return after every semi-colon. But don't forget that you need to ignore semi-colon's inside of certain parenthesis. Isn't parsing fun? - You probably don't need to worry, but if you wanted to be complete... ...just a sidenote. On 7/18/05, dexion <[EMAIL PROTECTED]> wrote: > never mind, I assumed it was with you post at the top, didnt scroll down. > That is a good idea thanks > > I think I can expand on that to find and replace a few other svars that are > troubling thanks > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of James Tucker > Sent: Sunday, July 17, 2005 10:26 PM > To: hlds@list.valvesoftware.com > Subject: Re: [hlds] maxplayers in server.cfg for hlds > > > bigger? o.0 > > On 7/18/05, dexion <[EMAIL PROTECTED]> wrote: > > great! > > windows flavor is fine > > can you make the file bigger so i can see it :) > > > > dex > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of James Tucker > > Sent: Sunday, July 17, 2005 10:04 PM > > To: hlds@list.valvesoftware.com > > Subject: Re: [hlds] maxplayers in server.cfg for hlds > > > > > > -- > > Try this file, it's for windows, let me know if you need a *nix shell > > script to do the same job, but you should be able to get the idea. > > > > You can schedule this to run regularly using the 'schtasks' command. > > > > Enjoy. > > > > On 7/17/05, dexion <[EMAIL PROTECTED]> wrote: > > > well i suppose I can squirt in a test line to their server.cfg if it is > > > missing to exec a file they have no access too. > > > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Behalf Of Paul Sands > > > Sent: Sunday, July 17, 2005 1:31 PM > > > To: hlds@list.valvesoftware.com > > > Subject: RE: [hlds] maxplayers in server.cfg for hlds > > > > > > > > > You cant exec configs outside of the game folder, couldnt do it in hl1 > > > engine either, and you cant do it in quake engine ... i see a pattern > here > > > ;) > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Behalf Of dexion > > > Sent: 17 July 2005 18:18 > > > To: hlds@list.valvesoftware.com > > > Subject: RE: [hlds] maxplayers in server.cfg for hlds > > > > > > > > > ive tried to get it to execute something outside the gamefolder but with > > no > > > success. I wanted to lock down a few other svars that people like to > > change. > > > I believe it has a place it is coded to look and can not deviate from. > > > Unless I am just plain not pathing it correctly. Anyone have any luck > > > execing a config outside the game folder? I have sort of come up with a > > > workaround in my head. Always adding a line at the end of their > server.cfg > > > via a dos window every time the server restarts that execs a cfg that is > > in > > > the gamefolder that they do not have access to (remove permissions to > it.) > > > That would work, but I would prefer not to have to have so many steps, > who > > > knows what I have not thought of. > > > dex > > > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Behalf Of sprout > > > Sent: Sunday, July 17, 2005 1:06 PM > > > To: hlds@list.valvesoftware.com > > > Subject: Re: [hlds] maxplayers in server.cfg for hlds > > > > > > > > > something you could do as I host is have it execute a server config > thats > > > not in the folder they have access to like if they have c:/games/source > > then > > > set it in > > > c:/games/source1.cfg have that as the config I don't think if you set it > > to > > > another config file I don't think it executes the first one > > > to do this you would prolly do havn't ever done this so correct me if im > > > wrong > > > exec ../../source1.cfg im just figuring from my dos learning days... so > > > please correct me if im wrong or if this is even possible > > > ----- Original Message ----- > > > From: "dexion" <[EMAIL PROTECTED]> > > > To: <hlds@list.valvesoftware.com> > > > Sent: Sunday, July 17, 2005 9:06 AM > > > Subject: RE: [hlds] maxplayers in server.cfg for hlds > > > > > > > > > > woops thats supposed to read mmaxplayers works in hlds no idea about > > srcds > > > > > > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] Behalf Of dexion > > > > Sent: Sunday, July 17, 2005 9:57 AM > > > > To: hlds@list.valvesoftware.com > > > > Subject: RE: [hlds] maxplayers in server.cfg for hlds > > > > > > > > > > > > thats not a bad idea unless they overwrite the server.cfg with their > own > > > > (which they nearly often do, but I could work something up like that.) > > > > > > > > That maxplayer in the server.cfg world or hlds, not sure about srcds. > > > > dex > > > > > > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] Behalf Of ironchef > > > > Sent: Sunday, July 17, 2005 5:22 AM > > > > To: hlds@list.valvesoftware.com > > > > Subject: RE: [hlds] maxplayers in server.cfg for hlds > > > > > > > > > > > > dexion wrote: > > > >> I guess i wasnt clear enough. When launching a hlds server in the > > > >> command > > > >> line one must specify a maxplayers -maxplayers 10 for instance. It is > > > >> possible to put maxplayers 32 in the server.cfg and have the server > > > >> launch > > > >> with 32 players instead of 10. I would like a way to invalidate the > > > >> command > > > >> in the server.cfg and have only the command line one be used. > > > >> dex > > > > > > > > Odd, I was always under the impression that this variable was limited > to > > > > startup only. I wonder if this changed with Source. > > > > > > > > I suppose you could also make a config file for each of your clients, > > > > and use the mapchangecfgfile cvar (does this work on Source?) to make > > > > your own, that'll: 1) exec the client's server.cfg; 2) exec YOUR > server, > > > > overwriting any cvars you want restricted, like maxplayers. > > > > > > > > So for instance, for client 1, his startup becomes: > > > > > > > > +mapchangecfgfile client1.cfg > > > > > > > > And in client1.cfg, we have: > > > > > > > > exec Client1-editable.cfg // the file the client can edit > > > > maxplayers 16 // the value YOU want for maxplayers > > > > > > > > That should overwrite any changes they make. > > > > > > > > -- > > > > ironchef > > > > http://www.dexworld.org/ > > > > > > > > > > > > > > > > _______________________________________________ > > > > To unsubscribe, edit your list preferences, or view the list archives, > > > > please visit: > > > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > > > > > > > > > > > > > _______________________________________________ > > > > To unsubscribe, edit your list preferences, or view the list archives, > > > > please visit: > > > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > > > > > > > > > > > > > _______________________________________________ > > > > To unsubscribe, edit your list preferences, or view the list archives, > > > > please visit: > > > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > > > > > > _______________________________________________ > > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > > > > > > > > > _______________________________________________ > > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > > > > > > _______________________________________________ > > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > > > > > > > > > _______________________________________________ > > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > > -- > > @echo off > > if not defined 1 goto :usage > > echo copying to random temporary file... > > set CFG_FILE=%RANDOM% > > copy %1 %TMP%\temp%CFG_FILE%.cfg > > echo removing illegal entries... > > type %TMP%\temp%CFG_FILE%.cfg | find /V "maxplayers" > %1 > > echo removing temporary storage... > > del %TMP%\temp%CFG_FILE%.cfg > > set CFG_FILE= > > echo complete. > > goto EOF > > :usage > > echo Usage: rem-maxplayers [filename] > > -- > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlds > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds