Sign in to follow this  
orion98

How to make two dedicated servers ?

Recommended Posts

How to make an automatic script to launch two dedicated servers, one of which with the mod Project-M and the second without mod?

My bat-file to run a dedicated server with a profile PlayerDM1:

@echo off

cls

echo Protecting ContractJackServer.exe from crashes...

echo If you want to close ContractJackServer.exe and this script, close the it window

title ContractJackServer DM1 Watchdog

:serverDM1

echo (%time%) serverDM1 started.

START/wait ContractJackServer.exe -profile PlayerDM1

ping -n 15 localhost > nul

echo (%time%) WARNING: ContractJackServer DM1 closed or crashed, restarting.

goto serverDM1


The problem is that the files to the classic game Contract Jack
display.cfg
launchcmds.txt
MPMissions.txt

Differs from similar files to play with the mod Project-M ... and the server takes after the restart the game scenario of these files ...
... Set 2 Contract JACK game on my computer? lol

Edited by orion98

Share this post


Link to post
Share on other sites

Aha... I make it:( sistem Windows7SP1 x86) :)

@echo off
cls
echo Protecting ContractJackServer.exe from crashes...
echo If you want to close ContractJackServer.exe and this script, close the it window
title ContractJackServer CJ_ProjectM Watchdog
:server1
regedit /S CJ_ProjectM.reg
echo (%time%) serverCJ_ProjectM started.
START/wait ContractJackServer.exe -profile PlayerCJ_ProjectM
ping -n 15 localhost > nul
echo (%time%) WARNING: ContractJackServer CJ_ProjectM closed or crashed, restarting.
goto server1



HERE "CJ_ProjectM.reg" for mod Project-M is:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Monolith Productions\Contract Jack\1.0]
"SelectedMod"="Project-M"

 

...and for NO mod is:

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Monolith Productions\Contract Jack\1.0]
"SelectedMod"=""



Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this