Author Topic: Server Protocol  (Read 2366 times)

0 Members and 1 Guest are viewing this topic.

Offline Prodigyx

  • Soldier
  • **
  • Posts: 188
    • SoldatX Brasil
Server Protocol
« on: August 17, 2009, 06:26:33 pm »
Hi,

I need to configure the server...so I connect to server with adminlog and the socket sends the following strings:

adminpassword\r\n
/gamemode 3\r\n
/survival 0\r\n
/limit 10\r\n
/timelimit 10\r\n
/password gamepassword\r\n
/map ctf_Ash\r\n

soldatserver closes after this commands. Do I need to wait for server data before each command? or some time interval between commands?
SoldatX - SX Brasil - www.soldatx.com

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: Server Protocol
« Reply #1 on: August 17, 2009, 06:44:57 pm »
To modify those setting the server has to restart, and afaik it doesnt make it permanent, but just to the next restart, which is actually being called then by the next command. (mode, survival, limit and timelimit)

Try to get root access to the server files and pick an modified .ini with the desired settings.

edit:
Just a guess, wait for someone to explain it better.
« Last Edit: August 17, 2009, 06:49:27 pm by croat1gamer »
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1906
Re: Server Protocol
« Reply #2 on: August 18, 2009, 02:29:09 am »
What do you actually get in reply via the TCP socket? What prints in the server console?

Offline Polifen

  • Soldier
  • **
  • Posts: 127
Re: Server Protocol
« Reply #3 on: August 18, 2009, 03:43:35 am »
/gamemode 3\r\n
/survival 0\r\n

Those commands make server restart. Don't send them and it should work.

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: Server Protocol
« Reply #4 on: August 18, 2009, 04:22:49 am »
Oh, timelimit and score limit dont restart it?
I usually directly modify the soldat.ini, so i dont have any problems with it.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.