Using The FarCry Dedicated Server (Linux)
Using The FarCry Dedicated Server (Linux)
2004-09-24
© 2004 Crytek 1
Crytek Studios Using the FarCry dedicated server (Linux)
© 2004 Crytek 2
Crytek Studios Using the FarCry dedicated server (Linux)
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.
After you downloaded the bin32linux.zip, unpack it into your FarCry root dir in a new created
folder named "bin32linux".
The dedicated server needs write permissions to the FarCry root folder as well as to the FCData-
folder, run chmod (–R) 755 to the respective folders. It is not recommended to install it as root
and start it with a less authorized user.
Optional: If you want to start the server without being in the specific bin32linux directory, you just
set the LD_LIBRARY_PATH to your bin32linux folder (for example in the .bash.rc, .profile or
.ld.so.conf):
In the command line of the dedicated server you can issue commands:
Begin by setting the games log_verbosity to 8. 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.
© 2004 Crytek 3
Crytek Studios Using the FarCry dedicated server (Linux)
To load the profile you created in the multiplayer/create game menu, type the following (case
sensitive):
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:
Reminder: For this you must set the LD_LIBRARY_PATH to your bin32linux folder as explained
above.
1. Create a new shortcut "link to application" to wherever you wish to launch the game from
and set the path (command) under menu point execute to
/directory_of_farcry/bin32linux/farcry_linuxsv
Rather than typing the full path, you can also add a link into a PATH contained in $PATH like this:
ln –s /directory_of_farcry/bin32linux/farcry_linuxsv /usr/games/farcry
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!
© 2004 Crytek 4
Crytek Studios Using the FarCry dedicated server (Linux)
5. Specify any other settings, such as gr_timelimit or sv_servertype (see the "Server
Command list" 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
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.
Here’s an example:
© 2004 Crytek 5
Crytek Studios Using the FarCry dedicated server (Linux)
If you want to run a Internet server via UBI.com, make sure you can access the desired
ports.
2. included daemon-function (allows to run the server as background service application, you
can administrate it by rcon)
3. improved processor load (uses less processor power when server is running)
FAQ
Q: What are the minimum requirements for a 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).
A: You can change the player limit in the multiplayer/create game menu or use the command
sv_maxplayers.
© 2004 Crytek 6
Crytek Studios Using the FarCry dedicated server (Linux)
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.
Contact
If you have suggestions or ideas how to improve the Linux dedicated server (whether with new
functions or code improvements) please contact us via email: [email protected]
© 2004 Crytek 7