Dedicated Server Guide

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 5

Using the FarCry dedicated server (Win32)

Warning: Running the game and the dedicated server on the same computer is not suggested.

Profiles
Starting dedicated server
Running a server without profiles
Mapcycle
FAQ
Command list

Profiles

FarCry dedicated server should ideally be used with a server profile created inside the games
multiplayer create game menu. Load up FarCry and go to the multiplayer create game section. Enter
the server name, initial map and game mode, time settings and adjust any other settings you wish to
use in the server.
When you’re done adjusting the server settings, click on “save profile” and save the profile you have
created, for example “myprofile1”.

If you intend to run an internet dedicated server, you must create the game in the internet tab of the
multiplayer menu. This will automatically try to register the server through UBI.com in the profile and
allow the server to be seen in players server listing. You must log in to UBI.com before you can do
this!

The profiles are stored in the profiles/server directory in the FarCry root folder. You can edit a profile
with any text editor and make changes later.

Starting dedicated server

1. Open the FarCry root folder


2. Run DedicatedServer.cmd

In the command line of the dedicated server you can issue commands:

Begin by setting the games log_verbosity to 3. This will allow you to view any warnings or errors
during the game. Type this into the command line of the dedicated server. You can use auto complete
by typing the first few letters and hitting tab to cycle through the commands.

It’s important to enter any additional commands before this point.

To load the profile you created in the multiplayer/create game menu, type the following (case
sensitive):

SProfile_run <profile name>

So to run the profile we created earlier, type SProfile_run myprofile1


The profile will now run. If everything was configured correctly, the server should be visible in the
multiplayer game listing of FarCry.

You can issue other commands once the level has finished loading.

You can create a shortcut on your desktop that will automatically launch the dedicated server and
your profile as follows:

1. Create a shortcut to DedicatedServer.cmd to wherever you wish to launch the game


from.
2. Right click the shortcut, go to properties.
3. In the target window, add the following after DedicatedServer.cmd: “SProfile_run
myprofile1”

It should look something like this

Running a server without profiles

You can also run a FarCry multiplayer game without creating a profile (although we recommend using
profiles, as it will save you typing a lot of variables each time you wish to start the server).

1. Run the DedicatedServer.cmd from the FarCry root folder


2. Set the log_verbosity to 3
3. Specify the gametype you’re using with g_gametype. You can choose from FFA, TDM
or ASSAULT. Make sure the map supports the game type you specify!
4. Specify the server name with sv_name <server name>
5. Specify any other settings, such as gr_timelimit or sv_servertype (see the end of this
document for a list of commands)

6. Initiate the server with the command start_server <map name>. For example,
start_server mp_monkeybay. It’s important to always specify the gametype before starting
the server, if you don’t, it could lead to problems.

You should be able to see the server in the FarCry multiplayer list. You can issue more commands
once the level has loaded

Cheat Protection

You can increase or remove cheat protection by adding the following command in your dedicated
server profile:

net_cheatprotection = “1”

0 – off
1 – beginning default level
2 - intermediate level
3 – advanced level

- Default level only checks things when client connects..


- Intermediate level, also randomly checks clients during game play
- Advanced level performs memory code checks additionally

Mapcycle

The map cycle is currently always on. If you wish to have only one level running, simply edit the
Mapcycle.txt in the profiles/server folder to only contain that one map.

Running the server on a specific network adapter and port

It’s possible to specify to the server to use a specific network adapter by passing a command line
argument. To do so, it’s suggested to first setup a shortcut as explained previously in this document.
Inside the Target entry field, add –IP:xxx.xxx.xxx.xxx with the ip address of the network adapter right
after Dedicated Server.

It would also be possible to specify a port number by adding “sv_port xxxx”.

Here’s an example:

Having your server listed on Ubisoft.com

To have your server listed on Ubisoft.com, you just need to set SV_ServerType to UBI . By default,
SV_ServerType is set to LAN.
FAQ

Q: What are the minimum requirements for a dedicated server?

A: We recommend using at least a 1.7Ghz P4 or equivalent and 512megs RAM.

Q: How much upstream and downstream bandwidth do I need to run one?

A: For 16 players we recommend 1mbps upstream and 1mbps downstream.


Q: What ports need to be opened to have dedicated server working?

A: TCP: 40000 - 42999


UDP: 41005, 41006, 44000, 49001

Q: What configuration files are used for dedicated server?

A: Currently you can tweak the profiles for the server (found in /profiles/server), system.cfg (found in
the root folder) and the Mapcycle.txt (found in /profiles/server).

Q: How do I limit number of players connected to dedicated servers?

A: You can change the player limit in the multiplayer/create game menu or use the command
sv_maxplayers.

Q: Can I run a dedicated server and play the game?

A: Yes, but this will result in degradation of quality for other players. With a few players, this may be
acceptable, but with larger numbers we do not advise it.

More information can be found in the FarCry support folder with further details on compatibility
and contact details.
Command list

Client commands:

cl_netstat - Displays the client network stats


cl_display_hud - toggles the display of the HUD
cl_password - sets the client password for passworded servers
cl_rcon_password - allows the client to enter the server remote admin password
cl_rcon_port - allows the client to enter the server remote admin port
cl_rcon_serverip - allows the client to enter the server remote admin ip
cl_scope_flare - toggles the scoped weapon flare sprite
cl_timeout - sets the client timeout value
cl_ubiname - manually sets the ubi.com username
cl_ubipassword - manually sets the ubi.com password

Server commands:

sv_password - sets a server password to lock the server


sv_changemap - changes the level to the specified map
sv_restart - restarts the server
sv_maxplayers - sets the max number of players that can join
sv_name - renames the server
sv_netstats - displays the server statistics
sv_port - defines the port on which the game is broadcast
sv_rcon_password - sets the remote admin password
sv_servertype - <ubi> <lan> defines the type of server, LAN or UBI (internet)
sv_timeout - sets the time at which clients timeout

Game rule commands:

gr_countdown - when prewar is on, this value is used to specify the countdown time after a round
gr_friendlyfire - toggles freindly fire
gr_invunerabilitytimer - sets the time at which players are invunerable
gr_maxteamlimit -
gr_minteamlimit
gr_prewaron - toggles prewar (prewar is used in clan matches etc to only start the game when a
specific number of players has joined and are ready - hence the ready button in the limbo menu)
gr_respawntime - time taken for dead players to respawn (including cycles)
gr_scorelimit - score limit before the round ends
gr_timelimit - defines the time allowed for that round

You might also like