Originally Posted by
92 Sqn. Reddog (QJ-R)
Cool. Thanks for releasing this.
Am I right in thinking that I can't run this, AND connect to the server myself from the same box? I'd need two different steam accounts and installs?
What you need is 2 game installs. The commander watches the launcher.exe process that you pointed it towards in the setup menu. If it sees 2 launcher.exe processes running out of the same location, it thinks there's an error and shuts it self down and restarts itself. So if you have the commander pointed towards launcher.exe in one game install, the game you then play on needs to be from a separate install with a separate launcher.exe. Also, the commander needs to be ran 1st before launching the game as a client.
Originally Posted by
450caveman
i have tried it on my machine and with no success, do i get rid of the server launcher and use the old launcher.exe and also how do i load the settings. because the old way i had to type in f setting.cm then load my maps????
Did you read the instructions? Who said anything about a server launcher? In setup, just point your launcher.exe and steam.exe paths as stated above. Also, the confs.ini (your server config) is the only file you need to be worried about. Your settings that you used to do manually by typing f setting.cmd is not needed. That's why, if you look at the instructions above, there is a setup menu function where you can load your server settings and also any number of batch files built into the commander.
As far as rotating a mission, this is why I included the sample mission and also said we script in a killprocess.
For example. This simple addition to your script will kill the server in 6 hours. You can set the ticktime (timeleft in a mission) to w/e your liking.
Code:
public override void OnTickGame()
{
if (Time.tickCounter() == 720000)// Out of time.
{
Timeout(10, () =>
{
GamePlay.gpLogServer(null, "The match ends in a tie! Objectives still left for both sides!!!", new object[] { });
GamePlay.gpHUDLogCenter("The match ends in a tie! Objectives still left for both sides!!!");
});
Timeout(30, () =>
{
GamePlay.gpLogServer(null, "Mission is restarting soon!!!", new object[] { });
GamePlay.gpHUDLogCenter("Mission is restarting soon!!!");
});
Timeout(60, () =>
{
GamePlay.gpLogServer(null, "Server Restarting in 1 minute!!!", new object[] { });
GamePlay.gpHUDLogCenter("Server Restarting in 1 minute!!!");
});
Timeout(120, () =>
{
GamePlay.gpLogServer(null, "Mission ended. Please wait 2 minutes to reconnect!!!", new object[] { });
GamePlay.gpHUDLogCenter("Mission ended. Please wait 2 minutes to reconnect!!!");
});
Timeout(125, () =>
{
Process.GetCurrentProcess().Kill();
});
}
}
}
I have got the stage of seeing the Dos screen with the server line but nothing after that and i have used your stock map to try it first.
Then it sounds like you haven't setup your missions yet. If you have your launcher and steam path set, point the commander to a mission, and click on the Start Watchdog button, your mission will load. If you only see the Dos screen with nothing inside of it, then you haven't setup any mission in the mission tab of the commander.
Bookmarks