[Search]  Search   [Groups]  Back to EA Forum Index  
DEDICATED SERVER SETUP INSTRUCTIONS:  XML
Crysis  > Crysis Tech Help
Author Message


[Avatar]
Joined: 02/03/2006 23:17:08
Messages: 8129
Location: TOLEDO, OHIO
Offline

Crysis Installation
The first step to set up a Crysis server is to install the game on the PC. Follow the instructions given
during the installation. You can choose the target place to install the game by selecting the custom
installation procedure. This also allows you to exclude several features that might not be interesting for
you.
Hardware Recommendations
In order to provide a solid base for a Crysis dedicated server it is recommended to use following
hardware:
CPU: Intel Core2Duo 2.4GHZ or AMD64 Dual Core 2.6GHz
RAM: 1GB
Bandwidth: 5Mbps
Setting Up The Server
Further below you find a description how to set up the dedicated server for Crysis correctly including
additional tools like Remote Control functionality and Punkbuster support. Please follow the
instructions step-by-step.
Updating The Server
Before following any of the steps further below please make sure the server has been updated
to the latest available version.
Creating Server Instances
Crysis can handle several server instances inside the installation directory. To have multiple
servers running by using one installation only please proceed as following:
1. Create a sub-directory in the Crysis root folder called ?server1? for example.
2. Unzip the content of the ?server_instances? folder into the server1 directory.
3. Duplicate server1 to server2, server3 as appropriate.
4. Edit the ?startup.bat? file(s) and set the correct root folder for each instance you create.
Set IP and Port
In order to set a specific IP and Port for each of your servers open up the ?server.cfg? that can
be found inside the instance folder.
1. Add following commands:
sv_bind <IP Address>
sv_port <Game Port> (default is 64087)
2. Running several server instances on the same machine requires that each instance of the
game server uses a different game port regardless if they have different IP?s set..

This message was edited 1 time. Last update was at 11/23/2007 16:48:42




[Avatar]
Joined: 02/03/2006 23:17:08
Messages: 8129
Location: TOLEDO, OHIO
Offline

Standard Level Rotation
To set up a standard level rotation for Crysis, open the ?levelrotation.xml? with an .xml aware
editor. Then just add/remove the levels you want. The gameplay settings are used from the
?server.cfg? file in your instance folder.
For example (to have a rotation that includes all levels):
<levelrotation>
<level name="multiplayer/ps/shore" gamerules="PowerStruggle" />
<level name="multiplayer/ps/plantation" gamerules="PowerStruggle" />
<level name="multiplayer/ps/mesa" gamerules="PowerStruggle" />
<level name="multiplayer/ps/refinery" gamerules="PowerStruggle" />
<level name="multiplayer/ps/beach" gamerules="PowerStruggle" />
<level name="multiplayer/ia/quarry" gamerules="InstantAction" />
<level name="multiplayer/ia/steelmill" gamerules="InstantAction" />
<level name="multiplayer/ia/armada" gamerules="InstantAction" />
<level name="multiplayer/ia/outpost" gamerules="InstantAction" />
</levelrotation>
After having the .xml file edited please be sure to do a final check to avoid editing errors. The
easiest way to check this is to load the .xml file in the Internet Explorer since it gives out errors
if the format is wrong.
Specific Level Rotation
You also can set specific gameplay settings for each of the levels in your level rotation. If you
set no rules for the specific levels the default gameplay settings from the ?server.cfg? are
getting used.
For example:
<levelRotation randomize="0">
<level name="multiplayer/ps/shore" gameRules="PowerStruggle">
<setting setting="g_timelimit 60"/>
<setting setting="g_fraglimit 0"/>
<setting setting="g_revivetime 20"/>
</level>
<level name="multiplayer/ia/armada" gameRules="InstantAction">
<setting setting="g_timelimit 20"/>
<setting setting="g_fraglimit 50"/>
</level>
</levelRotation>
Note: If you set specific gameplay settings to one level only inside the ?levelrotation.xml? these
settings overwrite the default settings in the ?server.cfg? once this level has been loaded by the
server.
After having the .xml file edited please be sure to do a final check to avoid editing errors. The
easiest way to check this is to load the .xml file in the Internet Explorer since it gives out errors
if the format is wrong.

This message was edited 1 time. Last update was at 11/23/2007 16:48:01




[Avatar]
Joined: 02/03/2006 23:17:08
Messages: 8129
Location: TOLEDO, OHIO
Offline

Setting up RCon functionality
To provide remote control for the server the ?autoexec.cfg? needs to be updated. The file can
be found in the folder of your server instance (e.g. server1). If it does not exist please create
the file.
1. Be sure following cvar is added properly:
rcon_startserver [port:<rcon_port>] [pass:<password>]
2. If hosting only one dedicated server the RCon port does not need to be set and can be
removed from the command line.
For example: rcon_startserver pass:<password>
3. Running several server instances on the same machine requires that each instance of the
game server uses a different RCon port (e.g. can be similar to the game port of each
instance for easier administration).
4. RCon occupies TCP ports, so it is not linked to the game port you can set via sv_port in
the ?server.cfg? which occupies UDP ports.
5. To stop the service simply type in following command into the server window:
rcon_stopserver (to stop the whole service again)
Use RCon as Client
To make use of the RCon functionality ingame you would need to follow the steps mentioned
below. Once this has been accomplished you are able to administrate the server via console
commands.
Start Crysis, open console by pressing ~ or ^ (key next to 1) and type in following commands:
? con_restricted 0 (to allow console commands)
(Can be added to your system.cfg as well)
? rcon_connect [addr:<server address>] [port:<rcon port>] [pass:<password>]
If no port has been defined the ?port command can be left out when logging in.
For example: rcon_connect addr:<server address> pass:<password>
? rcon_command <command> (to use commands like status, sv_gamerules, etc.)
? rcon_disconnect (to end remote control on this server)

This message was edited 1 time. Last update was at 11/23/2007 16:47:22




[Avatar]
Joined: 02/03/2006 23:17:08
Messages: 8129
Location: TOLEDO, OHIO
Offline

Initializing Punkbuster
To enable Punkbuster support for the server, please use the provided ?server.cfg? that can be
found in your instance folder or add it manually to the file by typing in following command:
net_pb_sv_enable true
Additionally please extract the ?Pb? folder that is included in the .zip file into each server
instance folder. Next to the basic Punkbuster binaries it includes the ?pbsv.cfg? file with the
latest anti-cheat settings and will prevent common cheaters from joining your server.
Punkbuster automatically updates the files from the master server once you have launched
the server. Additionally if you want to look for the latest PB updates for Crysis please check
out www.evenbalance.com
Enable Statistic Tracking and pre-ordered Flag Reading
The server needs to be logged into GameSpy network to be able to track player statistics and
read pre-ordered flags associated with accounts. This will allow people who pre-ordered the
game to purchase their Amphibious ACP in the factories. Please follow the steps below:
1. Non-dedicated server:
Just log-in with your usual game account since you start the server from this instance of
the game.
2. Dedicated Server:
? Open the ?server.cfg? file that can be found in your instance folder.
? Add the following console variables including the login and password of an
existing ingame account you want to use for the tracking. It is required to not take
an account that is used for online gaming since each account can only be used
once at a time.
net_stats_login <login>
net_stats_pass <password>
Note: If you are running multiple instances of a server from one installation, each
instance needs a different login/password.

This message was edited 1 time. Last update was at 11/23/2007 16:47:01




[Avatar]
Joined: 02/03/2006 23:17:08
Messages: 8129
Location: TOLEDO, OHIO
Offline

Standard Server Settings
To get your server ready please use the standard settings for the ?server.cfg? provided further below. It
is also recommended give the dedicated server a clearly identifying name.
g_useProfile = 1
r_ShadersAsyncCompiling = 1
r_driver = "DX9"
sv_servername = "<servername>"
sv_password = "<password>"
sv_gamerules = PowerStruggle (or InstantAction)
sv_cheatprotection = 3 (default: 3; can be set to 1, 2 or 4)
sv_ranked = 0
sv_maxplayers = 32 (default: 32)
net_pb_sv_enable true (or false if PB should not be turned on)
g_timelimit = 25
g_minteamlimit = 1
g_revivetime = 20
g_autoteambalance = 1 (default: 1 = on; 0 = off)
g_tk_punish = 1 (default: 1 = on; 0 = off)
g_tk_punish_limit = 10 (defines after how many team kills a player will get temporarily banned)
log_verbosity = 1
log_fileverbosity = 3
map shore
or?
g_nextlevel (to load the first level of your level rotation automatically)

This message was edited 1 time. Last update was at 11/23/2007 16:46:44




[Avatar]
Joined: 02/03/2006 23:17:08
Messages: 8129
Location: TOLEDO, OHIO
Offline

Starting The Server
Further below you can find a description of the different ways how to start the dedicated server for
Crysis. Please read the instructions carefully.
Manual Server Start
Double click on the startup.bat file in the respective instance folder. Once the command
window is available type in following command to load the first map to start the server:
map <mapname> (e.g. map Shore)
Automatic Server Start
To have the server automatically loading a map when starting it, you simply have to add one
of the following commands to the ?server.cfg? file in each of the instances you created:
map <mapname> (e.g. map Shore)
or?
g_nextlevel (to load the first level of your level rotation automatically)
Launching a DX10 Server
To launch a DirectX10 server please open the ?server.cfg? file in your instance folder and add
and/or alter one of the following commands:
map <mapname> x (e.g. map Shore x)
or?
g_nextlevel x
The ?x? behind the command will launch everything in DX10 mode. This setting is persistent so
no editing of the ?levelrotation.xml? file is required.
Server Folder Structure
At the end the folder structure of your Crysis dedicated server should look like following:
Crysis\
Bin32\
CrysisDedicatedServer.exe
All other binaries
Game\
Server1\
Startup.bat
Server.cfg
Autoexec.cfg
levelrotation.xml
Pb\
pbsv.cfg
All other binaries
Server2\
Startup.bat
Server.cfg
Autoexec.cfg
levelrotation.xml
Pb\
pbsv.cfg
All other binaries

This message was edited 1 time. Last update was at 11/23/2007 16:46:25




[Avatar]
Joined: 02/03/2006 23:17:08
Messages: 8129
Location: TOLEDO, OHIO
Offline

Server Command List
Server Settings
sv_bandwidth [50000] (Default: 50000)
Bit rate on server
sv_bind [0.0.0.0] Bind server to a specific address.
sv_cheatprotection [3] (Default: 3)
Enables Crysis internal cheat protection.
sv_DedicatedCPUPercent [0] (Default: 0)
Sets the target CPU usage when running as a dedicated
server, or disable this feature if it's zero.
Usage: sv_DedicatedCPUPercent [0..100]
sv_DedicatedMaxRate [50] (Default: 50)
Sets the maximum update rate when running as a
dedicated server.
Usage: sv_DedicatedMaxRate [5..500]
sv_gamerules [gamerules] (Default: Singleplayer)
InstantAction or PowerStruggle
sv_gs_report [1] (Default: 1)
Enables Gamespy server reporting. Necessary for NAT
negotiation.
sv_gs_trackstats [1] (Default: 1)
Enables Gamespy stats tracking.
sv_lanonly 0 (Default: 0)
Set 1 for a LAN server.
sv_map [mapname] The map the server should load.
sv_maxplayers [maxplayers] (Default: 32)
Number of max players on the server
sv_maxspectators [maxspec] (Default: 32)
Number of max spectators on a server
sv_packetrate [30] (Default: 30)
Packet rate on server.
sv_password [password] Server password.
sv_port [64087] (Default: 64087)
Bind server to a specific port.
sv_ranked [0] (Default: 0)
Enables statistic report, for TSP servers only.
sv_say Broadcasting a message to all clients
sv_servername [name] Name for the server that is used ingame. If no name is
set machine name will be used instead.
sv_timeofdayenable [0] (Default: 0)
Enables time of day.
sv_timeofdaylength [1] (Default: 1)
Sets time of day changing speed.
sv_timeofdaystart [12] (Default: 12)
Sets time of day start time.
sv_voting_cooldown [180] (Default: 180)
Sets voting cooldown.
sv_voting_ratio [0.51] (Default: 0.51)
X% of player votes needed for successful vote.
sv_voting_team_ratio [0.61] (Default: 0.61)
X% of team member votes needed for successful vote.
sv_voting_timeout [60] (Default: 60)
Voting timeout in seconds.

This message was edited 1 time. Last update was at 11/23/2007 16:45:58




[Avatar]
Joined: 02/03/2006 23:17:08
Messages: 8129
Location: TOLEDO, OHIO
Offline

Gameplay Settings
g_fraglead [1] (Default: 1)
Number of frags a player has to be ahead of other
players once g_fraglimit is reached.
g_fraglimit [0] (Default: 0 = infinite)
Number of required frags before a round ends.
g_minplayerlimit [0] (Default: 0)
Minimum number of players before game starts. For
Instant Action only.
g_nextlevel Switches to next level of the map list.
g_MPDeathCam [1] (Default: 1)
Shows the killer?s location.
g_revivetime [20] (Default: 20)
Revive time.
g_spectate_TeamOnly [0] (Default: 0)
If set to 1 (true) it allows to spectate your team mates
only.
g_teamlock [2] (Default: 2)
Does not allow joining a team that has 2 more players
than the other.
g_tk_punish [1] (Default: 1)
Allows team kill punishment.
g_tk_punish_limit [10] (Default: 10)
Number of team kills a user will be banned for.
g_teamlock [2] (Default: 2)
Number of players one team needs to have over the
other to not allow joining this team anymore.
g_minteamlimit (1) (Default:1)
Minimum number of players in each team to start a
match. For Power Struggle only.
g_friendlyfireratio [1] (Default: 1)
Sets friendly damage ratio. [0] will disable friendly fire.
Common Commands
Ban [playername] Bans player for [ban_timeout] minutes from server.
ban_remove [playername] Removes player from ban list.
ban_status Shows currently banned players.
ban_timeout Ban timeout in minutes.
Net_next_map Notifies clients on server about the next map.
Kick [playername] Kicks player from the server.
Kickid [playerid] Kicks player via ID from the server.
Status Shows current status of server.
RCon Commands
rcon_command Issues a console command to a RCon server.
rcon_connect
[addr:<server address>]
[port:<rcon port>]
[pass:<password>]
To connect to a remote control server.
rcon_disconnect To disconnect from a remote control server.
rcon_startserver
[port:<port>] [pass:<password>]
To start a remote control server
rcon_stopserver To stop a remote control server
Net Settings
Net_pb_sv_enable Enables Punkbuster for the next map.

This message was edited 1 time. Last update was at 11/23/2007 16:45:22




[Avatar]
Joined: 02/03/2006 23:17:08
Messages: 8129
Location: TOLEDO, OHIO
Offline

Crysis_Dedicated_Server_Package_v1.2.zip
http://www.crymod.com/filebase_redirect.php?fid=787

This message was edited 1 time. Last update was at 11/23/2007 16:53:35





Joined: 06/18/2007 20:44:03
Messages: 132
Offline

errrr, is quantum physics required to set up a dedicated server?




Joined: 11/16/2007 18:47:05
Messages: 2
Offline

<levelRotation randomize="0" >
<level name="multiplayer/ps/shore" gameRules=" PowerStruggle">
<setting setting="g_timelimit 60" />
<setting setting="g_fraglimit 0"/>
< setting setting="g_revivetime 20"/>
</level>
<level name="multiplayer/ia/armada" gameRules=" InstantAction">
<setting setting="g_timelimit 20" />
<setting setting="g_fraglimit 50"/>
< /level>
</levelRotation>

now do i have to do this for each map in power struggle and instant action for this to work or does this cover every map in what ever game rules you choose in rcon. like if i choose instant action will these settings above will cover all maps in instant action?


[Avatar]
Joined: 02/03/2006 23:17:08
Messages: 8129
Location: TOLEDO, OHIO
Offline

I'll have to check, I haven't had a chance myself to read through it carefully.

I just got it posted so that those that were asking could see it.

also, if you go to http://www.crymod.com You'll find alot of help there.....that's cryteks modding site.




Joined: 07/05/2006 19:13:35
Messages: 43
Offline

Where are the Dedicated SERVER FILES?!?!? My server is located in Chicago, I'm in Virginia! Its not like I can just run up there stick the disk in and load the game. I really wouldnt' want to anyway since my server is built for speed not space and the install is over 6gigs..thats just not going to happen! I've been really patient waiting for Dedicated server files that were rumored to be released by now if not very very soon... please for the love of God help out the community with some dedicated server files!!!!



Joined: 07/05/2006 19:13:35
Messages: 43
Offline

wow a few days and this hasn't been answered yet? Seems like someone is avoiding the question.



Joined: 11/13/2007 21:51:27
Messages: 8
Offline

You still have not gotten your server going....lol

I told you a while back and quoted Crytek staff saying there is not going to be a dedicated server package. You have to upload the install except for the movies to your server. Or make your own dedicated server package by figuring out what is needed and what is not. Also, don't forget to install the C++ Redistributable on the server.

TAW Luger
Crysis  > Crysis Tech Help
Go to: