Logo

CS.RIN.RU - Steam Underground Community

IRC: #cs.rin.ru at irc.rizon.net
It is currently Friday, 17 Apr 2015, 09:31

English | Русский




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 225 posts ] 
Author Message

Post Post subject: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:16   
Advanced forumer Завсегдатай
User avatar
Joined: Saturday, 28 Nov 2009, 12:31
Posts: 85
Location: France ! :D
Hi everyone !
I’m new to this forum, but I’m here to help !

For my first topic, I’m 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 ! :D

Oh, and one last thing before I start : if you're just searching for a server to connect to, you're in the wrong thread :)
Just go here -> http://cs.rin.ru/forum/viewtopic.php?f=10&t=58874 (big thanks to Nomad13 ;) )

Big thanks to Nomad13, Xtremage, sigi91, Xero852, and well, anybody who helped me !

Now let's get started...



I) Open ports on your router…

I’m not gonna explain this, so you’re 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 :
  1. ; Dedicated Server Configuration
  2.  
  3. sv_servername Crysis 2 Dedicated Server
  4.  
  5. sv_lanonly 0
  6. sv_maxplayers 16
  7. sv_cheatprotection 1
  8. g_useOnlineServiceForDedicated 1
  9. net_profile_enable 1
  10. sv_levelrotation levelrotation.xml
  11. gl_skip 1
  12.  
  13. g_messageOfTheDay Welcome to my server !
  14.  
  15. net_profile_socket_budget 512
  16.  
  17. sv_gs_report 0
  18. sv_gs_trackstats 0
  19. sv_ranked 0
  20.  
  21. g_nextlevel wait_seconds 10


Change this line to change the name of your server :
  1. 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 :
  1. <levelrotation randomize="0">
  2.     <level name="MAP" gamerules="GameType">
  3.         <setting setting="Setting Value"/>
  4.     </level>
  5. </levelrotation>


For example :
  1. <levelrotation randomize="0">
  2.     <level name="cw2_downtown" gamerules="TeamInstantAction">
  3.         <setting setting="g_timelimit 20"/>
  4.     </level>
  5.     <level name="cw2_rooftop_gardens" gamerules="CrashSite" />
  6. </levelrotation>


Map list is :
  1. cw2_alien_vessel
  2. cw2_alien_vessel_small
  3. cw2_church
  4. cw2_city_hall
  5. cw2_collided_buildings
  6. cw2_cxp_liberty
  7. cw2_cxp_liberty_mil
  8. cw2_cxp_liberty_statue
  9. cw2_downtown
  10. cw2_lighthouse
  11. cw2_pier
  12. cw2_rooftop_gardens
  13. cw2_terminal


GameType list is :
  1. Assault
  2. CaptureTheFlag
  3. CrashSite
  4. Extraction
  5. TeamInstantAction
  6. InstantAction




III) Server launch !

Make a server.bat file in the root folder of the Crysis 2 Directory, and type in :

  1. @echo off
  2. :server
  3. echo Starting server...
  4. "Bin32\Crysis2DedicatedServer.exe" +exec server.cfg
  5. echo Server crashed...
  6. echo.
  7. goto server


(If you have any problems with this script, check Nomad13's post -> [url]http://cs.rin.ru/forum/viewtopic.php?p=731481#p731481[/url])



IV) Enjoy !

Then, launch it !!
You just have to give us your ip then, and your server is all set :D
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 ;) it’s my only reward :D

IMPORTANT ! Now if your server works well and you want to share it with us, make sure to give this thread a look ;) -> http://cs.rin.ru/forum/viewtopic.php?f=10&t=58874

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 :
  1. ; Crysis 2 System Configuration
  2.  
  3. sys_game_folder=GameCrysis2
  4. sys_dll_game=CryGameCrysis2.dll
  5. sys_user_folder=Crysis2
  6.  
  7. log_Verbosity = -1
  8. log_WriteToFile = 0
  9. log_WriteToFileVerbosity -1
  10. sys_no_crash_dialog = 1
  11. sys_languages = "english,french,spanish,german,turkish"
  12.  
  13. con_restricted = 0
  14. r_driver DX9
  15. r_width = 1280
  16. r_height = 720
  17. r_Fullscreen = 0
  18. r_VSync = 1
  19. sys_spec = 2
  20. sys_spec_full = 2
  21. q_quality = 2
  22.  
  23. r_displayInfo = 0
  24. r_enableAltTab = 0
  25.  
  26. g_enableInitialLoginScreen = 0
  27. g_gamespy_loginUI = 0
  28. net_lanbrowser = 1
  29. net_initLobbyServiceToLan = 1
  30. sv_lanonly = 0
  31. sv_servername = "Crysis 2 Server"
  32. sv_gs_report = 0
  33. sv_gs_trackstats = 0
  34. sv_cheatprotection = 1
  35. cl_nickname = "NICKNAME"
  36.  
  37. cl_fov = 75
  38. pl_movement.power_sprint_targetFov = 65
  39. r_DrawNearFoV = 75
  40. i_mouse_smooth = 30
  41.  
  42. g_skipIntro = 1


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 ;)

_________________
Wanna make a Crysis 2 ONLINE DEDICATED SERVER ? Click here !
Wanna play Crysis 2 online (you don't need Hamachi or Tunngle !) ? Click here !


Last edited by Technologeek on Monday, 21 Feb 2011, 22:29, edited 36 times in total.

Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:18   
Advanced forumer Завсегдатай
User avatar
Joined: Friday, 02 Apr 2010, 07:10
Posts: 203
u're not the first one on the Earth....what about CryTek guys ??? :lol:
btw...nice one :8=)

_________________
My COD topic on cs.rin.ru
Image


Last edited by sigi91 on Monday, 14 Feb 2011, 22:26, edited 1 time in total.

Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:19   
Advanced forumer Завсегдатай
User avatar
Joined: Saturday, 28 Nov 2009, 12:31
Posts: 85
Location: France ! :D
Lool :D
Didn't think about that :D
Thanks :)

_________________
Wanna make a Crysis 2 ONLINE DEDICATED SERVER ? Click here !
Wanna play Crysis 2 online (you don't need Hamachi or Tunngle !) ? Click here !


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:21   
Advanced forumer Завсегдатай
User avatar
Joined: Friday, 02 Apr 2010, 07:10
Posts: 203
::P

To others...if you find other infos about dedi server...post here

_________________
My COD topic on cs.rin.ru
Image


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:24   
User Редкий гость
User avatar
Joined: Friday, 13 Nov 2009, 14:31
Posts: 49
Is It hard to configure it?

P.S. Thanks for good work Technologeek ::)


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:26   
Advanced forumer Завсегдатай
User avatar
Joined: Saturday, 28 Nov 2009, 12:31
Posts: 85
Location: France ! :D
Thank you :D

Not really hard to configure, you just have to play with some cvars... I'm gonna add them to the tutorial, good idea :D

_________________
Wanna make a Crysis 2 ONLINE DEDICATED SERVER ? Click here !
Wanna play Crysis 2 online (you don't need Hamachi or Tunngle !) ? Click here !


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:26   
Beginner Без звания
Joined: Monday, 14 Feb 2011, 21:08
Posts: 6
Thaaaaaaaaaaaaaaanks!!!!


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:28   
User Редкий гость
Joined: Sunday, 13 Feb 2011, 05:51
Posts: 25
Can you post the system.cfg you're using as well? When I execute the batch file the server seems to start loading but then crashes.


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:30   
Advanced forumer Завсегдатай
User avatar
Joined: Saturday, 28 Nov 2009, 12:31
Posts: 85
Location: France ! :D
No problem, I'm adding it :D

_________________
Wanna make a Crysis 2 ONLINE DEDICATED SERVER ? Click here !
Wanna play Crysis 2 online (you don't need Hamachi or Tunngle !) ? Click here !


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:36   
Advanced forumer Завсегдатай
User avatar
Joined: Friday, 02 Apr 2010, 07:10
Posts: 203
I added your tut here viewtopic.php?f=10&t=58839 ::D

_________________
My COD topic on cs.rin.ru
Image


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:37   
I live here Три раза сломал клаву :)
Joined: Saturday, 07 Feb 2004, 22:42
Posts: 1861
Xero852 wrote:
Can you post the system.cfg you're using as well? When I execute the batch file the server seems to start loading but then crashes.


Get the same, I'm too tired to try some more now, but if you do solve it, please post what you did to fix it here.


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:38   
User Редкий гость
Joined: Sunday, 13 Feb 2011, 05:51
Posts: 25
Not sure if it was my cfg, but I used yours and ran all the dedicated server related batch files in the root directory again and it's working now. Getting connection to host failed though. Ports that you mentioned are forwarded correctly.


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:39   
Advanced forumer Завсегдатай
User avatar
Joined: Saturday, 28 Nov 2009, 12:31
Posts: 85
Location: France ! :D
Thank you soooo much sigi91 :D

And btw, check the Troubleshooting part ;) it helps

_________________
Wanna make a Crysis 2 ONLINE DEDICATED SERVER ? Click here !
Wanna play Crysis 2 online (you don't need Hamachi or Tunngle !) ? Click here !


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:39   
Advanced forumer Завсегдатай
User avatar
Joined: Friday, 02 Apr 2010, 07:10
Posts: 203
to fix that issue about crashes you need to do next:

run BuildDedicated.bat then MakeDedicated then PackageDedicated and then SyncDedicated...tell me if it worked :8=)

_________________
My COD topic on cs.rin.ru
Image


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Monday, 14 Feb 2011, 22:44   
User Редкий гость
Joined: Sunday, 13 Feb 2011, 05:51
Posts: 25
Yeah i fixed the crash issue by running the dedicated related batch files, and I can connect locally with connect localhost or connect 192.168.0.111, other people can't seem to connect though...

Try:
connect lancersedge.servegame.org


Last edited by Xero852 on Tuesday, 15 Feb 2011, 12:14, edited 1 time in total.

Top
 Profile  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 225 posts ]  Go to page 1, 2, 3, 4, 5 ... 15  Next


Who is online

Users browsing this forum: No registered users and 4 guests


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum




Powered by phpBB® Forum Software © phpBB Group