Make your own «Call of Juarez» dedicated server
Introduction
This tutorial also works for demo but remember about different file names i.e. CoJ.exe in full version and CoJMPdemo.exe in the demo and proper directory structure.
Instead of setting parameters in the running game you can use only files given in examples.
1. Install full version of the game
2. Launch the game
3. Set all audio and video options to low
To do this go to Options -> Audio and set all values to low, choose Options -> Video and set all values to low.
Check coj_settings.zip file for video.scr and audio.scr files with values set for hosting Call of Juarez server.
You can unzip this file to main game directory (if you have removed proper registry key – see point 6 – if not it should be unzipped to \Documents and Settings\[user name]\My Documents\Call of Jaurez\) or in case of the demo version to \Documents and Settings\[user name]\My Documents\ call of juarez mp demo\.
4. Set up server parameters and maps
Go to Mutiplayer tab in Main Menu and choose Create LAN game if you want launch only local sever or choose Create Internet game for Internet game. a. Maps b. Map settings coj_all_maps.zip coj_dm_maps.zip coj_goldrush_maps.zip coj_robbery_maps.zip coj_skirmish_maps.zip c. Server Settings coj_admins.zip
Set up all parameters as you wish:
Below you will find some examples of the map setting files that are ready to unzip to main game directory (if you have removed proper registry key – see point 6 – if not it should be unzipped to \Documents and Settings\[user name]\My Documents\Call of Jaurez\) or in case of the demo version to \Documents and Settings\[user name]\My Documents\ call of juarez mp demo\.
Deatchmatch
– frags limit set to 50
Goldrush
– no min players required to start the game
Robbery
– 10 rounds to win the game of total 20 rounds, no min players required to start the game
Skirmish
– 10 rounds to win the game of total 20 rounds, no min. players required to start the game
We recommend setting following values for different game types:
Deatchmatch – increase frag limit to 50 to avoid short games
Robbery – increase rounds won to win game to 10 and rounds total to 20 and remove “min. players to start the game cap”
Skirmish – increase rounds won to win game to 10 and rounds total to 20 and remove “min. players to start the game cap”
You can use following file coj_lan_server.zip to host LAN game or
coj_internet_server.zip to host Internet game. Please be aware of changing game ports when hosting few Internet servers on one machine (see point 6). Check coj_internet_server1.zip file for Internet server setting with different name and changed port.
Log using AdminName with password as password to get full rights.
You can edit these files using notepad – see point 7 for editing tips.
5. Exit the game and go to the command line prompt
Now when all parameters of the game server are setup up exit the game (Quit in Main Menu) and run server from command line:
CoJ.exe -server -dedicated –internet
To run Internet dedicated server
CoJ.exe -server –dedicated
To run LAN dedicated server
The server is running with last given parameters/parameters given in \out\ directory.
6. Running few servers on one machine
It’s possible to run few dedicated (no rendering) COJ servers on one machine.
Notice:
Please remember that you have to edit registry to avoid overwriting of the game “out” files by each instance of the game/server. To do this run regedit, search for “Call of Juarez” and remove “WriteDir Call of Juarez\” key. Now you can run few servers on one machine:
You HAVE TO copy the game to another directory in order to run each new server (so new directory for each game you want to run). We recommend setting max up to 4 servers on one PC (high-end spec) and max one server on slower system. To run few servers on one machine you have to add –ami in command prompt when running dedicated server. Each Internet server has to be running on different port. You can change port of the server in Server Settings (see point 4) and port range should be from 26000 to 26200:
CoJ.exe -server -dedicated –internet -ami
To run Internet dedicated server
CoJ.exe -server –dedicated -ami
To run LAN dedicated server
The server is running with last given parameters/parameters given in \out\ directory.
7. Editing config files from running server
Following files are located in \out\Profiles\DefaultProfile\ directory:
Maps.scr Profile.scr ServerAdmins.scr ServerSettings.scr
Notice:
a) There has to be empty line
b) Do NOT edit lines beginning with ! (exclamation mark).
c) You can use // signs to comment lines in .scr files i.e. //LevelMapNet("data/mapsnet/bankrobbery/bankrobbery.map","robbery")
from Maps.scr file
8. Server console commands
There are some console commands available (use chat window to type them in “normal” game) – type them in command line of the dedicated server:
Multiplayer console commands:
/Nick
/PlayerList – shows the list of all players and their IDs
/KillMe – kills you
/AdminLogin
Admin commands:
/AdminLogout – logs out the admin
/PlayerList – shows the list of all players and their IDs
/Kick
/Kill
/MapNext – switches to next map
/AdminSay
Required Files
Here all the required files with settings:
h ttps://drive.google.co m/file/d/1QVw90fd8sWcPCxItx0lbOPYxO0Gnp4w8/view?usp=sharing
[remove two spaces]
P.S. Copyrights by © -=GODS=-Crow
Немає коментарів:
Дописати коментар