Advertisement
Guest User

BF2 100 player server code

a guest
Nov 24th, 2012
1,049
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. How to make Battlefield 2 100-player server with squadsize 8?
  2. 1) You will need hex editor (e.g. WinHex)
  3.  
  4. 2) Open bf2 server executable in hex editor
  5. linux 64bit: bf2installfolder/bin/amd-64/bf2
  6. linux 32bit: bf2installfolder/bin/ia-32/bf2
  7. win 32bit: bf2installfolder\bf2_w32ded.exe
  8.  
  9. 3) Goto file offsets and change values as described:
  10. [OS] [OFFSET] [OLD VALUE] -> [NEW VALUE]
  11. --------------------------------------------------------------------------
  12. MAP-LAYER128SUPPORT: appendEntry if >64 -> 128 layer
  13. linux 64bit 18DBB B840000000 -> B880000000
  14.  
  15. linux 32bit 1A6DA B840000000 -> B880000000
  16.  
  17. win 32bit 415DA BF40000000 -> BF80000000
  18. --------------------------------------------------------------------------
  19. SQUADSIZE: addToSquad 6 -> 8 sq max size
  20. linux 64bit C3A56 83F805 -> 83F807
  21.  
  22. linux 32bit D4CE9 83F805 -> 83F807
  23.  
  24. win 32bit 5FF37 83F806 -> 83F808
  25. --------------------------------------------------------------------------
  26. SETMAXPLAYERS: setMaxPlayers if > 64 == 100
  27. (You can also remove this limit to allow any playernumber)
  28. linux 64bit 696B0 C744240C40000000 -> C744240C64000000
  29.  
  30. linux 32bit 695BA B840000000 -> B864000000
  31.  
  32. win 32bit 2514B B840000000 -> B864000000
  33. --------------------------------------------------------------------------
  34. ALLOCCONNECTION: netsrv allocConn 64 -> 100
  35. linux 64bit 3D09AF BA40000000 -> BA64000000
  36.  
  37. linux 32bit 42C4E8 83F83F -> 83F863
  38.  
  39. win 32bit 2628DC 83F840 -> 83F864
  40. --------------------------------------------------------------------------
  41. NETSERVER: netserver 64 -> 100
  42. linux 64bit 3D1501 C7859C04000040000000 -> C7859C04000064000000
  43.  
  44. linux 32bit 42B7FA B840000000 -> B864000000
  45.  
  46. win 32bit 26537E C7863004000040000000 -> C7863004000064000000
  47. --------------------------------------------------------------------------
  48. FREECONNECTION: freeConnection 64 -> 100
  49. linux 64bit 3D1C24 4881FA00020000 -> 4881FA20030000
  50.  
  51. linux 32bit 42C55C 83FA3F -> 83FA63
  52.  
  53. win 32bit 26293F 83F840 -> 83F864
  54. --------------------------------------------------------------------------
  55. NETSERVERINIT: netsrv init 64 -> 100
  56. linux 64bit 3D2525 BF00020000 -> BF20030000
  57. linux 64bit 3D255B 4881FD00020000 -> 4881FD20030000
  58. linux 64bit 3D2542 BF68010000 -> BFD0020000
  59.  
  60. linux 32bit 42C24A C7042400010000 -> C7042490010000
  61. linux 32bit 42C27C C7042408010000 -> C7042410020000
  62. linux 32bit 42C296 83FF3F -> 83FF63
  63.  
  64. win 32bit 264C8C 6800010000 -> 6890010000
  65. win 32bit 264CB0 6800010000 -> 6890010000
  66. win 32bit 264CD8 81FF00010000 -> 81FF90010000
  67. --------------------------------------------------------------------------
  68. NETSERVERSHUTDOWN: shutDown 64 -> 100
  69. linux 64bit 3D3CE9 4881FD00020000 -> 4881FD20030000
  70.  
  71. linux 32bit 42C758 83FE3F -> 83FE63
  72.  
  73. win 32bit 263EC1 81FE00010000 -> 81FE90010000
  74. --------------------------------------------------------------------------
  75. MAXNUMOFCONNECTIONS: setMaxNoCon 64 -> 100
  76. linux 64bit 3D0720 81FE00010000 -> 81FE90010000
  77.  
  78. linux 32bit 42D996 81FA00010000 -> 81FA90010000
  79.  
  80. win 32bit 262B66 3D00010000 -> 3D90010000
  81.  
  82. Feel free to use this in any of your projects.
  83. Players will only see 64 nametags in game, this is normal.
  84. There is an workaround for this, all your players will need patched RendDX9.dll.
  85. Use contact form for any issues or to request info for 256 players.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement