( search forums )
joining as spectator with commandline
Soldat Forums - Soldat Talk - Developers Corner
Daemon
May 14, 2005, 3:59 pm
hi all, i was wondering.. is there a command which i can join servers automaticly as spectator..?
i am not sure this is the right place to ask my question.. but anyway, i am asking it coz i am working on a mirc script that would make the proccess of joining servers much easier..

i already know of the normal commands like: Soldat.exe -join IP PORT PASS
but it does not help me if i wanna join as spectator..

i am nearly sure it's possible coz there is already tool called Soldat Run (can be found here [URL]) which is doing that..

so if u guys could please answer me.. it would be really great
ty and have a nice day..

Denacke
May 14, 2005, 4:06 pm
You will have to alter the soldat.ini file

this soldat.ini contains a certain line:

spectator=0

let your script/program change it to spectator=1 and you will join as spectator :)

Hope it helps

Daemon
May 14, 2005, 4:26 pm
ahh great! :P
tnx dude...
but.. is there any other way to do it? :)


EDIT:
anyway, here's the simple code to change the value if anyone wants:
[code]/set %s.ini "C:\Program Files\Soldat\soldat.ini"
/writeini %s.ini NETWORK Spectator 1[/code]

and also a nice silent timer to set it back after 60 seconds:
/.timerspec 1 60 /writeini %s.ini NETWORK Spectator 0

Denacke
May 14, 2005, 8:41 pm
looks like mirc scripting :)

I doubt there is any other way of starting in spec mode. As far as I know there are no parameters for going spec when starting soldat.exe.

Good luck with your script

KeFear
May 15, 2005, 10:31 am
Yep, good luck! And you have found out the solution too :)

EspaceeMegadeth
May 15, 2005, 10:51 am
good luck.