Re: Questions about running single instances of multiple mods -
12-07-2004
I found the best way to do this, is to load only one instance of ServerLoader, and configure the INI file to load each of your processes. The key is to have all of them put in a paused state with the line "Paused = No", this will prevent them from running when the service is first started.
The next thing to do, is to create command files with extension .BAT or .CMD which re set up to start/stop processes for you.
Here's some examples:
File: CS_Start.CMD
C:\HLServer\SrvLoad\meanloader -resume 1
C:\HLServer\SrvLoad\meanloader -start 1
File: CS_Stop.CMD
C:\HLServer\SrvLoad\meanloader -pause 1
C:\HLServer\SrvLoad\meanloader -stop 1
You can have the command file stop a process before starting another, for example:
File: CS_Start2.CMD
call C:\HLServer\SrvLoad\HL_Stop.CMD
C:\HLServer\SrvLoad\meanloader -resume 1
C:\HLServer\SrvLoad\meanloader -start 1
You can get even more fancy, by setting up a schedule using the AT service. With the AT service, you can have your mods automatically stopped/started based on a schedule by configuring the AT servce to run your command scripts at a certain date/time or day of the week.
Maker of the (mEAn) Bot.Admin Manager
"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
|