SRCDS Steam group


how to change startup parameters in case of webinterface?
#1
Hi all,

I just wanted to modify the start parameters of my CS:S server but I don't know how and where, because the gameserver is handled by a webinterface. The gameserver runs on a rootserver of GSP g-portal and I have full root access to it.

I think I have to edit kinda startup script, but where do I find it and how can I modify it if its a *.php file? Can anybody help me - maybe BehaartesEtwas as you most likely know the products of this GSP? Smile

Thanks a lot,
ulx
Reply
#2
you cannot modify the php files, they are encrypted. I personally don't use the web interface because it is too unflexible in this things. in your PM you told me you want to use the >1000 fps lib. For this you need do add the LD_PRELOAD variable only, right?

what you can try is to change the screenrc file and add the LD_PRELOAD variable there, using the setenv command. I don't remember where the screenrc file is located (IIRC it is somewhere in the directory of the web interface, the WI does not use the default screenrc in /etc!), and I cannot search for it as I don't have the WI installed anymore.

for tests you can always run the server without WI inside a screen.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#3
If you can change the excutable binary you can try my script: http://serverwiki.sp12.speed-hoster.eu/index.php/Screen%2BLD_PRELOAD
I got it working with teklab based webinterfaces
Reply
#4
Thanks guys!

Exactly, I only want to add the preload variable and change the binary that gets started in order to test that >1000FPS hack. But the problem is, that I can't find the appropriate file where all the start parameters are located to change them. So finding this file/these parameters is the one and only chellenge for me here.

Now I found the file called screenrc.hl2eps and I modified the following entry to set the exact path to the library:

setenv LD_LIBRARY_PATH .:bin:/usr/X11R6/lib (don't know wheter to change or not, I didn't touch that)
# diese Enviroment Variable ist f�r GPortals HL2EPS Server
setenv LD_PRELOAD /home/gameserver/servers/193.192.59.171_27015/halflife2/libBEpingboost.so.1.0.1 (I did set the correct path here)

will this now automatically preload the library as soon as the gameserver starts/re-starts?
also, why do I get an "unknown command" when I hit setenv directly onto the shell?
Reply
#5
(12-30-2009, 03:27 AM)ulx Wrote:  But the problem is, that I can't find the appropriate file where all the start parameters are located to change them.
there is no such file, it's all in a data base. the WI creates a launch script called start.sh IIRC, but that is overwritten everytime before the server is (re-)started. no use to change it.

Quote:will this now automatically preload the library as soon as the gameserver starts/re-starts?
try it out, looks good.

Quote:also, why do I get an "unknown command" when I hit setenv directly onto the shell?
because the screenrc is no shell script. the commands there are not linux shell commands but special screen commands. have a look at the screen man page (i.e. type "man screen" in the shell)

nb: make a backup of the screenrc, it might get overwritten from time to time, when the WI sychronizes itself with the master server.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#6
Yeah, it gets overwritten every time the server restarts ... so I did chmod 555 this file and it keeps my changes.

Although it points to the exact psition of the compiled lib, the FPS keep staying at 1000 ... so anything else has to be changed, I guess.

Thanks, though Smile
Reply
#7
what messages appear in the console output (called "crashlog" in the WI)? anything about LD_PRELOAD and/or an initialization message of the lib? The latter is delayed by 10-20 seconds or so...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#8
nope, I can't see anything LD_PRELOAD- or lib related ... I have to uninstall WI in order to give it a try, I guess ... but lets see.

otherwise I'd pay you if you can do it for me without disabling the WI ... just PM me if you're interested - I'd be happy Smile
Reply
#9
(12-31-2009, 03:36 AM)ulx Wrote:  otherwise I'd pay you if you can do it for me without disabling the WI ... just PM me if you're interested - I'd be happy Smile

I havn't much experience with the WI, I stopped using it more then half a year ago... Maybe you should try without the WI. You doesn't have to deinstall it right away, you can start servers "outside" the WI by hand in parallel to some other servers "inside" the WI. just don't run the servers "outside" the WI under the user "gameserver", IIRC the WI will kill them then.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#10
Where is the problem?

Rename the symlink srcds_run to srcds_start.
Then create srcds_run:
Code:
nano -w srcds_run

srcds_run (example):
Code:
FPS=2000 LD_PRELOAD=/path/to/boost.so ./srcds_start $@ -YOUR_ADDITIONAL_OPTIONS

Then make srcds_run executable:
Code:
chmod u+x srcds_run

The WI executes the srcds_run. The little wrapper script will execute your commands and forward all parameters to srcds_start (symlink to srcds_run). Also you can add aditional parameters/options.


Auf Deutsch könnte ich das besser erklären.
Reply
#11
yeah, thanks a lot ... I already discussed this way with Terrorkarotte on chat and will check this out later on.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)