Hi everyone !
Im new to this forum, but Im here to help !
For my first topic, Im gonna show you how to make a Crysis 2 Dedicated Server for Online use !
I think I'm actually the FIRST ON EARTH to have made a FULLY FONCTIONNAL - but little bit buggy -ONLINE DEDICATED SERVER for the Crysis 2 Beta...
Yeah, you got it right ! No need of Hamachi or Tunngle !
Big thanks to Nomad13, Xtremage, sigi91, Xero852, and well, anybody who helped me !
Now let's get started...
I) Open ports on your router
Im not gonna explain this, so youre on your own, just open these ports :
TCP 64000 to 64100
UDP 64000 to 64100
UDP 53835
UDP 52264
UDP 54155
II) Server configuration :
Make a server.cfg file in the root Crysis 2 directory, and type that in :
Change this line to change the name of your server :
(You can change other lines too, it's pretty self-explainatory, just be careful
)
Then, make a levelrotation.xml file in the root of the Crysis 2 directory, and type in your maprotation with this template :
For example :
Map list is :
GameType list is :
III) Server launch !
Make a server.bat file in the root folder of the Crysis 2 Directory, and type in :
IV) Enjoy !
Then, launch it !!
You just have to give us your ip then, and your server is all set
Don't forget to use your local ip if you are on the same network as your server, or you can also look for it in the lan browser
Have fun, and you're welcome to thank me
its my only reward 
If you need other commands or cvars to change, here is the list -> http://pastebin.com/gvTCchRW
V) Troubleshooting :
If you've got some problems running the dedicated server, try the following :
1-Run all the dedicated server related batches in the root directory, in order... (BuildDedicated.bat, MakeDedicated.bat, PackageDedicated.bat and SyncDedicated.bat)
2-If you've got problems with servercrashing at start, put the following in the "system.cfg" file :
3-Don't forget to connect with your local ip if you are on the same network as your server, but you can also look for it in the lan browser
by Technologeek
Im new to this forum, but Im here to help !
For my first topic, Im gonna show you how to make a Crysis 2 Dedicated Server for Online use !
I think I'm actually the FIRST ON EARTH to have made a FULLY FONCTIONNAL - but little bit buggy -ONLINE DEDICATED SERVER for the Crysis 2 Beta...
Yeah, you got it right ! No need of Hamachi or Tunngle !

Big thanks to Nomad13, Xtremage, sigi91, Xero852, and well, anybody who helped me !
Now let's get started...
I) Open ports on your router
Im not gonna explain this, so youre on your own, just open these ports :
TCP 64000 to 64100
UDP 64000 to 64100
UDP 53835
UDP 52264
UDP 54155
II) Server configuration :
Make a server.cfg file in the root Crysis 2 directory, and type that in :
Code:
; Dedicated Server Configuration
sv_servername Crysis 2 Dedicated Server
sv_lanonly 0
sv_maxplayers 16
sv_cheatprotection 1
g_useOnlineServiceForDedicated 1
net_profile_enable 1
sv_levelrotation levelrotation.xml
gl_skip 1
g_messageOfTheDay Welcome to my server !
net_profile_socket_budget 512
sv_gs_report 0
sv_gs_trackstats 0
sv_ranked 0
g_nextlevel wait_seconds 10Change this line to change the name of your server :
Code:
sv_servername Crysis 2 Dedicated Server(You can change other lines too, it's pretty self-explainatory, just be careful
)Then, make a levelrotation.xml file in the root of the Crysis 2 directory, and type in your maprotation with this template :
Code:
<levelrotation randomize="0">
<level name="MAP" gamerules="GameType">
<setting setting="Setting Value"/>
</level>
</levelrotation>For example :
Code:
<levelrotation randomize="0">
<level name="cw2_downtown" gamerules="TeamInstantAction">
<setting setting="g_timelimit 20"/>
</level>
<level name="cw2_rooftop_gardens" gamerules="CrashSite" />
</levelrotation>Map list is :
Code:
cw2_alien_vessel
cw2_alien_vessel_small
cw2_church
cw2_city_hall
cw2_collided_buildings
cw2_cxp_liberty
cw2_cxp_liberty_mil
cw2_cxp_liberty_statue
cw2_downtown
cw2_lighthouse
cw2_pier
cw2_rooftop_gardens
cw2_terminalGameType list is :
Code:
Assault
CaptureTheFlag
CrashSite
Extraction
TeamInstantAction
InstantActionIII) Server launch !
Make a server.bat file in the root folder of the Crysis 2 Directory, and type in :
Code:
@echo off
:server
echo Starting server...
"Bin32\Crysis2DedicatedServer.exe" +exec server.cfg
echo Server crashed...
echo.
goto serverIV) Enjoy !
Then, launch it !!
You just have to give us your ip then, and your server is all set

Don't forget to use your local ip if you are on the same network as your server, or you can also look for it in the lan browser

Have fun, and you're welcome to thank me
its my only reward 
If you need other commands or cvars to change, here is the list -> http://pastebin.com/gvTCchRW
V) Troubleshooting :
If you've got some problems running the dedicated server, try the following :
1-Run all the dedicated server related batches in the root directory, in order... (BuildDedicated.bat, MakeDedicated.bat, PackageDedicated.bat and SyncDedicated.bat)
2-If you've got problems with servercrashing at start, put the following in the "system.cfg" file :
Code:
; Crysis 2 System Configuration
sys_game_folder=GameCrysis2
sys_dll_game=CryGameCrysis2.dll
sys_user_folder=Crysis2
log_Verbosity = -1
log_WriteToFile = 0
log_WriteToFileVerbosity -1
sys_no_crash_dialog = 1
sys_languages = "english,french,spanish,german,turkish"
con_restricted = 0
r_driver DX9
r_width = 1280
r_height = 720
r_Fullscreen = 0
r_VSync = 1
sys_spec = 2
sys_spec_full = 2
q_quality = 2
r_displayInfo = 0
r_enableAltTab = 0
g_enableInitialLoginScreen = 0
g_gamespy_loginUI = 0
net_lanbrowser = 1
net_initLobbyServiceToLan = 1
sv_lanonly = 0
sv_servername = "Crysis 2 Server"
sv_gs_report = 0
sv_gs_trackstats = 0
sv_cheatprotection = 1
cl_nickname = "NICKNAME"
cl_fov = 75
pl_movement.power_sprint_targetFov = 65
r_DrawNearFoV = 75
i_mouse_smooth = 30
g_skipIntro = 13-Don't forget to connect with your local ip if you are on the same network as your server, but you can also look for it in the lan browser

by Technologeek
