Posted: Tue Aug 10, 2010 7:50 pm Post subject: Need help with Template-rotate.dat ASAP
Heres what I have..2 programs starting..a game server, and a server control VB script...both load on SD startup..both are in the dropdown on the template page..the problem is the star/stop ONLY works for the game server, not the server control program. There is only a RUN command in the command line for each program, guess that's why I only see a RUN on the dropdwon box....how can I make either program selectable from one remote login, one template...and which ever one they select, they can stop it if the server is running, or start the server if it is stopped?
Both programs have their own folder inside the main SD folder...but the template.html is only in the (rfactor) game folder..I do NOT have a template in the server control folder.
The easiest way is basically setup another SD, and assign it another port..but that forces another login for our clients, and I doubt it would be very attractive.
I have been paying, and using SD Pro for over 2 years...so I am not new to this program, and it has been working great...until we now need to update things to keep with the time...I need an answer ASAP if possible, thanks.
Would help if the correct code for my template could be posted here as well..my html, and command line knowledge is terrible..I admit it!!..lol
Basically make a second serverdoc config folder to start the VB Script and point the main serverdoc (controlling the game and receiving remote commands) to the slave folder with the entries in "schedule.txt"
If I wanted start the slave serverdoc when master one starts its server I would create the following file - c:\serverdoc\master\schedule.txt
98 98 98 00 00 sdcmdstart c:\serverdoc\vbcontrol\
98 98 98 01 00 sdcmdstop c:\serverdoc\vbcontrol\
The "Master" serverdoc just writes stop/start commands to the "slave" serverdoc so ensure the slave serverdoc is "running" on startup. (sdcontrol can do this)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum