Logo

CS.RIN.RU - Steam Underground Community

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

English | Русский




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

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Tuesday, 15 Feb 2011, 01:29   
Advanced forumer Завсегдатай
User avatar
Joined: Saturday, 28 Nov 2009, 12:31
Posts: 85
Location: France ! :D
@Valgare :
Yeah, if you didn't touch your server ports, there is high chance there's gonna be problems ;)

@Stone[HF] :
This is not cool, I agree :s
When your server is launched, type in map cw2_downtown, before connecting, then connect (search in the browser)... tell me what happens :)
Oh ! And make sure you maprotation file is correctly written ! This is very important !

_________________
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: Tuesday, 15 Feb 2011, 01:33   
Advanced forumer Завсегдатай
Joined: Monday, 23 Aug 2010, 20:17
Posts: 88
how i can turn off invisible ? cuz this sucks


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Tuesday, 15 Feb 2011, 01:34   
Advanced forumer Завсегдатай
User avatar
Joined: Saturday, 28 Nov 2009, 12:31
Posts: 85
Location: France ! :D
litek18 wrote:
how i can turn off invisible ? cuz this sucks


What do you mean ? oO
If you mean turn off the cheats like godmod... Well just restart the game :)
If you mean Invisibility, just hit E ^^

_________________
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: Tuesday, 15 Feb 2011, 01:36   
Advanced forumer Завсегдатай
Joined: Monday, 23 Aug 2010, 20:17
Posts: 88
How to disable Invisibility to everyone


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Tuesday, 15 Feb 2011, 01:39   
Advanced forumer Завсегдатай
User avatar
Joined: Saturday, 28 Nov 2009, 12:31
Posts: 85
Location: France ! :D
Invisibility on your suit activates and deactivates by hitting E on your keyboard...
But if you mean like make the servers appear on the browser, that's not possible for the moment :)

_________________
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: Tuesday, 15 Feb 2011, 01:42   
Beginner Без звания
Joined: Sunday, 14 Nov 2010, 23:38
Posts: 16
Stone[HF] wrote:
I just thought about something else, seeing that we can compile our own server build, I wonder if it would be possible to do it for the retail version later on. Let's say we copy the bat files to compile one, I wonder if it wouldn't compile one based on the exe or the game files, therefore it would compile a server build pertaining the current or patched version of the game. Would be sweet if it really did work that way :wink:

sadly, it doesn't work that way. the batch files just moves some files, it doesn't actually "compile".


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Tuesday, 15 Feb 2011, 01:44   
I live here Три раза сломал клаву :)
Joined: Saturday, 07 Feb 2004, 22:42
Posts: 1861
Technologeek wrote:
@Valgare :
Yeah, if you didn't touch your server ports, there is high chance there's gonna be problems ;)

@Stone[HF] :
This is not cool, I agree :s
When your server is launched, type in map cw2_downtown, before connecting, then connect (search in the browser)... tell me what happens :)
Oh ! And make sure you maprotation file is correctly written ! This is very important !


Thanks I'll try that tomorrow, what I just don't understand, it worked earlier and now it doesn't.

Oh well, need to get some sleep, will play around with it again 2morrow.
:)


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Tuesday, 15 Feb 2011, 01:44   
Advanced forumer Завсегдатай
Joined: Monday, 23 Aug 2010, 20:17
Posts: 88
Technologeek wrote:
Invisibility on your suit activates and deactivates by hitting E on your keyboard...
But if you mean like make the servers appear on the browser, that's not possible for the moment :)



But how to turn off the invisible suit on the server, not to be able to use it

understand now ?:P


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Tuesday, 15 Feb 2011, 01:46   
Advanced forumer Завсегдатай
User avatar
Joined: Saturday, 28 Nov 2009, 12:31
Posts: 85
Location: France ! :D
litek18 wrote:
But how to turn off the invisible suit on the server, not to be able to use it

understand now ?:P


Oh !
Ok I get it lol !

Easy :
g_allowSuitPerks 0

_________________
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: Tuesday, 15 Feb 2011, 01:49   
Beginner Без звания
Joined: Monday, 14 Feb 2011, 23:51
Posts: 15
Location: France =P
It's kind of funny to play without nanosuit but it's not Crysis for me =P


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Tuesday, 15 Feb 2011, 01:50   
Advanced forumer Завсегдатай
Joined: Monday, 23 Aug 2010, 20:17
Posts: 88
Technologeek wrote:
litek18 wrote:
But how to turn off the invisible suit on the server, not to be able to use it

understand now ?:P


Oh !
Ok I get it lol !

Easy :
g_allowSuitPerks 0



This command disables all the perks?.
I want to disable just this one


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Tuesday, 15 Feb 2011, 01:52   
Beginner Без звания
Joined: Sunday, 14 Nov 2010, 23:38
Posts: 16
litek18 wrote:
This command disables all the perks?.
I want to disable just this one

that's probably not possible, unless we can make our own scripts.


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Tuesday, 15 Feb 2011, 01:53   
Beginner Без звания
Joined: Monday, 14 Feb 2011, 23:51
Posts: 15
Location: France =P
litek18 wrote:
Technologeek wrote:
litek18 wrote:
But how to turn off the invisible suit on the server, not to be able to use it

understand now ?:P


Oh !
Ok I get it lol !

Easy :
g_allowSuitPerks 0



This command disables all the perks?.
I want to disable just this one


I don't think you can. Play with nanosuit or not ^^


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Tuesday, 15 Feb 2011, 01:54   
Advanced forumer Завсегдатай
Joined: Monday, 23 Aug 2010, 20:17
Posts: 88
ok thx :wink:


Top
 Profile  

Post Post subject: Re: Crysis 2 Beta - How to make a ONLINE dedicated server   
Posted: Tuesday, 15 Feb 2011, 02:01   
Beginner Без звания
Joined: Sunday, 14 Nov 2010, 23:38
Posts: 16
i would like to point out most of the .bat files don't do anything.

builddedicated.bat:
  1.  
  2. rem ***************************************************************************
  3. rem * Build the required dedicated server configuration
  4. rem ***************************************************************************
  5. echo.
  6. echo ----------------------------------------------------------------
  7. echo Building dedicated server project %CONFIGURATION%
  8. echo ----------------------------------------------------------------
  9. echo.
  10.  
  11. vcbuild /rebuild /platform:Win32 "%BUILDPATH%\depot\Main\Code\Solutions\Crysis2.sln" %CONFIGURATION%

why? look at the last line. we don't have the source code, so that line will obviously fail, even if you did have visual studio.

MakeDedicated.bat:
  1. set BUILDPATH="d:\build_dedi"
  2. set CONFIGURATION="Release Server Only|Win32"
  3.  
  4. call SyncDedicated.bat %BUILDPATH%
  5. if errorlevel 0 (
  6. call BuildDedicated.bat %BUILDPATH% %CONFIGURATION%
  7. )
  8. if errorlevel 0 (
  9. call PackageDedicated.bat %BUILDPATH%
  10. )

all that does is call builddedicated.bat, which doesn't work.

PackageDedicated.bat:
  1. set BUILDPATH=%1
  2.  
  3. if "%BUILDPATH%"=="" (
  4. goto nobuildpathspecified
  5. )
  6.  
  7. rem Save the current directory
  8. cd > %BUILDPATH%\prev_cd.txt
  9. cd /d %BUILDPATH%\depot\Main
  10.  
  11. rem ***************************************************************************
  12. rem * Make dedicated server package
  13. rem ***************************************************************************
  14. for /f "useback tokens=*" %%a in ('%BUILDPATH%') do set COPYTO=%%~a
  15. set COPYTO="%COPYTO%\DEDICATED"
  16. set ZIPTOOL="c:\Program Files\7-zip\7z.exe"
  17. rem set STRIPME=*.dds *.c4d *.hdr *.tga *.jpg *.mud
  18.  
  19. mkdir %COPYTO%
  20.  
  21. echo.
  22. echo ----------------------------------------------------------------
  23. echo Performing Solid Shield Pass
  24. echo ----------------------------------------------------------------
  25. echo.
  26. cd Bin32
  27. ..\Tools\SolidShield\sclp-win-i386.exe ..\Tools\SolidShield\crysis2_32.ini
  28. copy solidshield\* .
  29. rmdir /S/Q solidshield
  30. cd ..
  31.  
  32. echo.
  33. echo ----------------------------------------------------------------
  34. echo Copy minimal exes
  35. echo ----------------------------------------------------------------
  36. echo.
  37. xcopy Bin32\Microsoft.VC90.CRT %COPYTO%\Bin32\Microsoft.VC90.CRT\ /S /Y /Q
  38. xcopy Bin32\Microsoft.VC90.MFC %COPYTO%\Bin32\Microsoft.VC90.MFC\ /S /Y /Q
  39. xcopy Bin32\Microsoft.VC90.MFCLOC %COPYTO%\Bin32\Microsoft.VC90.MFCLOC\ /S /Y /Q
  40. xcopy Bin32\Microsoft.VC90.OPENMP %COPYTO%\Bin32\Microsoft.VC90.OPENMP\ /S /Y /Q
  41. xcopy Bin32\*.dll %COPYTO%\Bin32\ /Y /Q
  42. xcopy Bin32\Crysis2DedicatedServer.exe %COPYTO%\Bin32\ /Y /Q
  43.  
  44. xcopy Tools\CrashHandler %COPYTO%\Tools\CrashHandler\ /S /Y /Q
  45. xcopy Tools\MyCrysisAccountTool %COPYTO%\Tools\MyCrysisAccountTool\ /S /Y /Q
  46.  
  47. rem Return to where we were
  48. cd ..\..
  49. for /f "eol=; tokens=*" %%a IN (prev_cd.txt) DO (cd /d %%a)
  50. del %BUILDPATH%\prev_cd.txt
  51.  
  52. echo.
  53. echo ----------------------------------------------------------------
  54. echo Copy Data - May take some time
  55. echo ----------------------------------------------------------------
  56. echo.
  57. xcopy system.cfg %COPYTO%\ /Y /Q
  58. xcopy Engine\Engine.pak %COPYTO%\Engine\ /Y /Q
  59. xcopy GameCrysis2\Levels\Wars %COPYTO%\GameCrysis2\Levels\Wars\ /S /Y /Q
  60. xcopy GameCrysis2\Localized %COPYTO%\GameCrysis2\Localized\ /Y /Q
  61. xcopy GameCrysis2\Animations.pak %COPYTO%\GameCrysis2\ /Y /Q
  62. xcopy GameCrysis2\GameData.pak %COPYTO%\GameCrysis2\ /Y /Q
  63. xcopy GameCrysis2\Objects.pak %COPYTO%\GameCrysis2\ /Y /Q
  64. xcopy GameCrysis2\ObjectsLS.pak %COPYTO%\GameCrysis2\ /Y /Q
  65. xcopy GameCrysis2\Scripts.pak %COPYTO%\GameCrysis2\ /Y /Q
  66. xcopy GameCrysis2\Sounds.pak %COPYTO%\GameCrysis2\ /Y /Q
  67. xcopy GameCrysis2\Textures.pak %COPYTO%\GameCrysis2\ /Y /Q
  68.  
  69. rem echo.
  70. rem echo ----------------------------------------------------------------
  71. rem echo Stripping Data
  72. rem echo ----------------------------------------------------------------
  73. rem echo.
  74. rem %ZIPTOOL% d -tzip -r %COPYTO%\GameCrysis2\zzMP_objects.pak %STRIPME%
  75. rem %ZIPTOOL% d -tzip -r %COPYTO%\GameCrysis2\zzMP_gamedata.pak %STRIPME%
  76. rem %ZIPTOOL% d -tzip -r %COPYTO%\GameCrysis2\Scripts.pak %STRIPME% Scripts\AI\Behaviors
  77. rem %ZIPTOOL% d -tzip -r %COPYTO%\GameCrysis2\Objects1.pak %STRIPME%
  78. rem %ZIPTOOL% d -tzip -r %COPYTO%\GameCrysis2\Objects.pak %STRIPME%
  79. rem %ZIPTOOL% d -tzip -r %COPYTO%\GameCrysis2\GameData.pak %STRIPME%
  80. rem %ZIPTOOL% d -tzip -r %COPYTO%\GameCrysis2\Animations.pak %STRIPME%
  81. rem %ZIPTOOL% d -tzip -r %COPYTO%\GameCrysis2\Localized\English.pak %STRIPME% Languages\dialog Languages\Textures
  82. goto alldone
  83.  
  84. rem ***************************************************************************
  85. rem * Error handling
  86. rem ***************************************************************************
  87. :nobuildpathspecified
  88. echo ----------------------------------------------------------------
  89. echo Error: No build path specified
  90. echo You must specify an existing build path, e.g. d:\build_dedi
  91. echo ----------------------------------------------------------------
  92. exit /b -1
  93.  
  94. :alldone
  95. echo.
  96. echo ----------------------------------------------------------------
  97. echo Dedicated server package for code change @%CHANGELIST%
  98. echo can be found in %COPYTO%
  99. echo ----------------------------------------------------------------
  100. echo.
  101.  

all that does is put copy protection, and package the dedi files into a zip archive.

  1. @echo off
  2.  
  3. set BUILDPATH=%1
  4.  
  5. if "%BUILDPATH%"=="" (
  6. goto nobuildpathspecified
  7. )
  8.  
  9. if exist "%BUILDPATH%" (
  10. goto :buildpathfound
  11. )
  12.  
  13. rem ***************************************************************************
  14. rem * Determine the required changelist
  15. rem ***************************************************************************
  16. rem Find the changelist number we need from CodeChanges.txt
  17. set CHANGELIST=
  18. for /f "tokens=1,2" %%a IN (CodeChanges.txt) DO (
  19. if "%%a"=="Change" (
  20. set CHANGELIST=%%b
  21. goto makeclient
  22. )
  23. )
  24.  
  25. rem ***************************************************************************
  26. rem * Set up a temporary p4 client to use to do the sync
  27. rem ***************************************************************************
  28. :makeclient
  29. if "%CHANGELIST%"=="" (
  30. goto nochangelist
  31. )
  32.  
  33. rem Save the current directory
  34. mkdir %BUILDPATH%
  35. cd > %BUILDPATH%\prev_cd.txt
  36. cd /d %BUILDPATH%
  37.  
  38. rem Create a temporary p4 client view for the current user that points to
  39. rem the specificed %BUILDPATH% directory
  40. set CLIENTSPEC=p4client.txt
  41. set CLIENTSPECNAME=build_dedi
  42. p4 client -o %CLIENTSPECNAME% > %CLIENTSPEC%
  43.  
  44. rem Determine the client
  45. set CLIENTID=
  46. for /f "tokens=1,2" %%a IN (%CLIENTSPEC%) DO (
  47. if "%%a"=="Client:" (
  48. set CLIENTID=%%b
  49. goto gotclient
  50. )
  51. )
  52.  
  53. :gotclient
  54. if "%CLIENTID%"=="" (
  55. goto noclient
  56. )
  57.  
  58. rem Determine the owner
  59. set OWNERID=
  60. for /f "tokens=1,2" %%a IN (%CLIENTSPEC%) DO (
  61. if "%%a"=="Owner:" (
  62. set OWNERID=%%b
  63. goto gotowner
  64. )
  65. )
  66.  
  67. :gotowner
  68. if "%OWNERID%"=="" (
  69. goto noowner
  70. )
  71.  
  72. rem Determine the host
  73. set HOSTID=
  74. for /f "tokens=1,2" %%a IN (%CLIENTSPEC%) DO (
  75. if "%%a"=="Host:" (
  76. set HOSTID=%%b
  77. goto gothost
  78. )
  79. )
  80.  
  81. :gothost
  82. if "%HOSTID%"=="" (
  83. goto nohost
  84. )
  85.  
  86. rem Write the new client spec
  87. for /f "useback tokens=*" %%a in ('%BUILDPATH%') do set STRIPPED_BUILDPATH=%%~a
  88. del %CLIENTSPEC%
  89. echo Client: %CLIENTID% > %CLIENTSPEC%
  90. echo Owner:  %OWNERID% >> %CLIENTSPEC%
  91. echo Host:   %HOSTID% >> %CLIENTSPEC%
  92. echo Description: >> %CLIENTSPEC%
  93. echo         Created by MakeDedicated.bat >> %CLIENTSPEC%
  94. echo Root:   %STRIPPED_BUILDPATH% >> %CLIENTSPEC%
  95. echo Options:        noallwrite noclobber nocompress unlocked nomodtime normdir >> %CLIENTSPEC%
  96. echo SubmitOptions:  revertunchanged >> %CLIENTSPEC%
  97. echo LineEnd:        local >> %CLIENTSPEC%
  98. echo View: >> %CLIENTSPEC%
  99. echo         //depot/Main/... //%CLIENTID%/depot/Main/... >> %CLIENTSPEC%
  100. echo         -//depot/Main/Code/SDKs/PS3/... //build_dedi/depot/Main/Code/SDKs/PS3/... >> %CLIENTSPEC%
  101. echo         -//depot/Main/Code/SDKs/XenonSDK/... //build_dedi/depot/Main/Code/SDKs/XenonSDK/... >> %CLIENTSPEC%
  102.  
  103. rem Create the p4 client from the client spec
  104. p4 client -i < %CLIENTSPEC%
  105. del %BUILDPATH%\%CLIENTSPEC%
  106.  
  107. rem Return to where we were
  108. for /f "eol=; tokens=*" %%a IN (prev_cd.txt) DO (cd /d %%a)
  109. del %BUILDPATH%\prev_cd.txt
  110.  
  111. rem ***************************************************************************
  112. rem * Switch to the temporary p4 client, perform the sync, switch back and
  113. rem * delete the temporary p4 client
  114. rem ***************************************************************************
  115. :getbuild
  116. echo.
  117. echo ----------------------------------------------------------------
  118. echo Getting build at revision %CHANGELIST% - please wait
  119. echo ----------------------------------------------------------------
  120. echo.
  121.  
  122. set PREVP4CLIENT=%P4CLIENT%
  123. set P4CLIENT=%CLIENTSPECNAME%
  124. p4 sync -f @%CHANGELIST%
  125. set P4CLIENT=%PREVP4CLIENT%
  126. p4 client -d %CLIENTSPECNAME%
  127.  
  128. goto alldone
  129.  
  130. rem ***************************************************************************
  131. rem * Error handling
  132. rem ***************************************************************************
  133. :nobuildpathspecified
  134. echo ----------------------------------------------------------------
  135. echo Error: No build path specified
  136. echo You must specify an existing build path, e.g. d:\build_dedi
  137. echo ----------------------------------------------------------------
  138. exit /b -1
  139.  
  140. :buildpathfound
  141. echo ----------------------------------------------------------------
  142. echo %BUILDPATH% exists
  143. echo Please delete manually or choose a different destination
  144. echo ----------------------------------------------------------------
  145. exit /b -2
  146.  
  147. :nochangelist
  148. echo ----------------------------------------------------------------
  149. echo Unable to find the latest changelist revision in CodeChanges.txt
  150. echo ----------------------------------------------------------------
  151. exit /b -3
  152.  
  153. :noclient
  154. echo ----------------------------------------------------------------
  155. echo Unable to determine the client id for temporary client spec
  156. echo ----------------------------------------------------------------
  157. exit /b -4
  158.  
  159. :noowner
  160. echo ----------------------------------------------------------------
  161. echo Unable to determine the owner id for temporary client spec
  162. echo ----------------------------------------------------------------
  163. exit /b -5
  164.  
  165. :nohost
  166. echo ----------------------------------------------------------------
  167. echo Unable to determine the host id for temporary client spec
  168. echo ----------------------------------------------------------------
  169. exit /b -6
  170.  
  171. :alldone

just appends stuff to the changelist.


and if you haven't noticed already, all of the .bat files requires arguments for it to work, so any reports of batch files "fixing" the problem are probably placebos.


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 Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 15  Next


Who is online

Users browsing this forum: No registered users and 3 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