devryan / GamePanelX-V3

The Original Free and Open Source Game Control Panel
https://www.gamepanelx.com
Other
131 stars 94 forks source link

Some characters are being removed from startup parameters #42

Open gbobr opened 10 years ago

gbobr commented 10 years ago

My startup parameters are:

'./srcds_run -game ../nmrih +map nmo_lakeside +maxplayers 8 +ip XXXXXXXXX +port XXXX'

But enabling debug information shows that what gamepanelx is actualy running :

'./srcds_run -game /nmrih +map nmo_lakeside +maxplayers 8 +ip 190.210.177.185 +port 27099'

It's omitting the dots thus causing server to not start.

devryan commented 10 years ago

I believe there are safeguards in place to prevent specifying local filesystem stuff. Can the gameserver not specify "-game nmrih" and have it assume ./?

gbobr commented 10 years ago

it's two dots: ../

NoMoreRoomInHell uses a separate folder for srcds binaries because they use a modified version of SRCDS. It's normaly located inside an "srcds" folder inside the server root folder

I managed to get it running by using another startup script wich comes with the server files and doesn't require passing gamefolder path.

devryan commented 10 years ago

The CMD parser for gpx specifically removes ../ out of params, because that is an easy way to manipulate startup parameters into displaying filesystem info.

Have you tried specifying full path?