Advertisement
Guest User

host like the best or die like the rest

a guest
Jan 2nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.50 KB | None | 0 0
  1. Server Hosting Bnetd PVPGN
  2.  
  3. Its a widely sought over thing to have the ability to host your own game servers for some of the popular mmorpg's these days. Blizzard is just another one. You can host your own games (Diablo, Diablo 2, Diablo 2 LOD, Starcraft, Starcraft Brood War, Warcraft 2, Warcraft 3, Warcraft 3 Frozen Throne, and the basic Chat Client) using this: http://pvpgn.org
  4.  
  5. PvPGN is a BNETD mod which aims to provide support for all Blizzard clients (thus it supports all BNETD supported clients plus the most recent ones). Once again you can host your own servers.
  6.  
  7. Note it is illegal and breaks the agreement with blizzard if you use this software. For the same reason we are not hosting the files. Just head on over to http://pvpgn.org and grab the latest versions. They have very helpful forums if you need help getting set up.
  8.  
  9. And just to start you off, here's a guide for setting up a Diablo 2 server. It should be a somewhat similar process for any of the other games.
  10.  
  11. D2Closed for Dummies v4.6 by Gambit
  12.  
  13. Hopefully this will help you Windows users with the setup of D2Closed support for Diablo II & LOD v1.10's
  14.  
  15. +-WHAT YOU NEED TO KNOW----------------------------------------------------------------+
  16.  
  17. #1) If you are having trouble with D2GS, don't try to repair your current setup. Just redownload and start fresh, and save your "charsave" folder to not lose any character data.
  18.  
  19. #2) If this isn't your first time configuring D2GS, and you are going to start fresh, run "regedit", and navigate to
  20. "HKEY_LOCAL_MACHINE\SOFTWARE"
  21. and delete the "D2Server" registry key. If this was imported wrong, it could be the problem with your server.
  22.  
  23. #3) You may also have problems with your registry for PvPGN services, D2CS & D2DBS. Run "regedit" and navigate to
  24. "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\"
  25. and delete the "D2CS" & "D2DBS" registry keys. These need to point to the updated location of the D2CS and D2DBS EXE's, or they will not launch correctly as services
  26.  
  27. #4) Understand that Diablo II Closed Realm support is created from a combination of four different servers/services.
  28. ----->a.) Player Vs. Player Gaming Network Server (PvPGN)
  29. ----->b.) Diablo II Game Server (D2GS)
  30. ----->c.) Diablo II Database Server (D2DBS)
  31. ----->d.) Diablo II Console Server (D2CS)
  32.  
  33. #5) Understand, Diablo II Game Server (D2GS) is only a Windows binary! There is no Source for this binary, so it has not been converted to other OS platforms. "DRU" (Divels R' Us), writer of D2GS, is a ghost, and has no known contact information. If you are hosting PvPGN on a non-Windows machine, you will need either a separate Windows PC to run D2GS, or type of Windows emulation, such as Virtual PC for Mac, or WINE for UNIX.
  34.  
  35. #6) Understand that D2Closed.exe is dead! It was the single file which ran the Diablo II Database Server (D2DBS) & Diablo II Console Server (D2CS) services. But fear not, it was replaced with the two separate files, D2DBS.exe & D2CS.exe, included in the PvPGN install, which do the same thing, only better.
  36.  
  37. #7) It's always best to use your computers REAL IP address, not the universal loopback (127.0.0.1)
  38.  
  39. #8) It is very important to decide where you want your Executable's and don't move them. For services to run properly, the applications need to remain in the same location
  40.  
  41. #9) If you are using any type of "No CD" cracks, or game loaders, don’t be surprised if you are having trouble. A known issue when not using a crack is dropping right after a game starts. I found that even Daemon Tools may cause problems.
  42.  
  43. #10) These instructions are for Windows 2000/2000 Server/XP/2003 Server
  44.  
  45. #11) "True" IP's & "Public" IP's - Explained
  46. Your "True" IP is the actual IP address assigned to your network adaptor as your OS sees it. You can see this IP under the properties of your TCP protocol. You may also type "ipconfig" from within the DOS command line, to see it. This is the IP that other computers on your local network will communicate to you by.
  47.  
  48. Your "Public" IP is, the IP that the "Outside World Sees or Non-LAN clients" see. Your "True" and "Public" IP differ when you have a proxy server, such as a router. The Router is assigned the public IP, and then assigns local computer's fake IP's (usaully via DHCP). To the World, it looks like all traffic is coming from the Router's Public IP. It as actually traffic from the Local PC's going through the Router, the Router itself doesn’t make network request. Your "Public" IP can be obtained by going to WhatIsMyIP.com This only matters if you want to serve publicly, not JUST LAN games.
  49.  
  50. Confusing!!! Yes, that is networking. Just keep in mind, that LAN clients connect to your "True" IP, and WAN clients connect via "Public".
  51.  
  52.  
  53. +-REQUIREMENTS------------------------------------------------------------------------+
  54.  
  55. #1) A already working PvPGN directory (v1.6.6 Recommended)
  56.  
  57. #2) Diablo 2 Game Server (D2GS) (Beta 6 Required for Diablo 2 v1.10)
  58. (Use WinRAR to extract to a folder in PvPGN directory, called "D2GS")
  59.  
  60. Files above can be found here:
  61. http://pvpgn-files.ath.cx/main.html
  62.  
  63. #3) The following files copied into the new PvPGN\D2GS directory
  64.  
  65. d2data.mpq
  66. d2exp.mpq
  67. d2sfx.mpq
  68. d2speech.mpq
  69. Patch_D2.mpq
  70. D2Client.dll
  71. D2CMP.dll
  72. D2Common.dll
  73. D2Game.dll
  74. D2gfx.dll
  75. D2Lang.dll
  76. D2MCPClient.dll
  77. D2Net.dll
  78. D2sound.dll
  79. D2Win.dll
  80. Fog.dll
  81. ijl11.dll
  82. Storm.dll
  83.  
  84. NOTE:
  85. a. Files must be taken from the installation directory of Diablo II LOD
  86. b. Diablo must have the Lord Of Destruction Expansion installed
  87. c. D2 Must be upgraded to v1.10
  88. d. Missing any of these files will result in D2GS crashing with an error, or just closing silently
  89. e. D2GS.exe, D2GSSVC.exe and d2server.dll are needed and included in the D2GS download
  90.  
  91. +-IP KEY-------------------------------------------------------------------------------+
  92. We know that PvPGN with D2 Closed support is actually a combination of 4 daemons/processes. Technically, you can have each daemon running on a different Machine/IP or all on one machine. You can also have a NAT/FIREWALL/PROXY/ROUTER setup, which will change your config as well.
  93.  
  94. So let us start by making an "IP-Key" to refer to for the rest of the Tutorial. Grab some paper and make a similar graph like below, listing A-G; R and P vertically. Then match the correct IP to the letter using my graph.
  95.  
  96. [A] = "True" IP of your PvPGN server
  97. [B] = "True" IP of your D2CS Server
  98. [C] = "True" IP of your D2DBS Server
  99. [D] = "True" IP of your D2GS Server
  100. [E] = "Public" IP of your PvPGN Server
  101. [F] = "Public" IP of your D2CS Server
  102. [G] = "Public" IP of your D2GS Server
  103. [R] = "Your Diablo 2 Realm Name" (Example: "D2 Closed"; or "Hells Pits")
  104. [P] = 0.0.0.0 (This means bind to all IP's, can only be used in certain configs)
  105.  
  106. So if all my processes were on the Same machine with the true IP of 192.168.0.1 and a Public of 66.92.111.56, A-D would be 192.168.0.1 E-G would be 66.92.111.56
  107.  
  108. If my PvPGN server was on 192.168.0.2; D2GS on 192.168.0.80; D2CS 192.168.5.9; D2DBS on 192.168.4.3, but all sharing one Router which is 66.92.14.96, then
  109.  
  110. [A] = 192.168.0.2
  111. [B] = 192.168.5.9
  112. [C] = 192.168.4.3
  113. [D] = 192.168.0.80
  114. [E] = 66.92.14.96
  115. [F] = 66.92.14.96
  116. [G] = 66.92.14.96
  117.  
  118. Got it?
  119. The examples below will be using these IP's to better explain proper config.
  120.  
  121. +-D2GS CONFIG--------------------------------------------------------------------------+
  122.  
  123. Go to you D2GS folder, RIGHT-CLICK "d2gs.reg", and left-click "Edit".
  124. Find "D2CSIP"="192.168.1.1" & "D2DBSIP"="192.168.1.1", and change the preconfigured IP's to the IP of the computer hosting the D2CS & D2DBS services.
  125.  
  126. "D2CSIP"="[B]"
  127. "D2DBSIP"="[C]"
  128.  
  129. Save and close.
  130.  
  131. Run the "install.bat" included with the D2GS download. Click "yes" when prompted
  132. "Are you sure you want to add the information in....to the registry"
  133. (NOTE: D2GS has been registered as a service which will begin automatically,
  134. the next time your computer restarts)
  135.  
  136. +-D2CS CONFIG--------------------------------------------------------------------------+
  137.  
  138. Open "d2cs.conf" in a text editor (located in PvPGN\conf folder). Find and change the following lines:
  139.  
  140. realmname = "[R]"
  141.  
  142. (EXAMPLE:)
  143. realname = "Hell Realm"
  144.  
  145. (NOTE: ADD quotes!!! Or else you Will have a problem if your realm name has
  146. any spaces in it)
  147.  
  148. Also, edit these lines:
  149.  
  150. servaddrs = [B] or [P]:6113
  151. gameservlist = [D]
  152. bnetdaddr = [A]:6112
  153.  
  154. (EXAMPLE:)
  155. servaddr = 0.0.0.0:6113
  156. gameservlist = 192.168.0.80
  157. bnetdaddr = 192.168.0.2:6112
  158.  
  159. Save & Close "d2cs.conf"
  160.  
  161. +-D2DBS CONFIG------------------------------------------------------------------------+
  162.  
  163. Open "d2dbs.conf" in a text editor (located in PvPGN\conf folder). Edit these lines:
  164.  
  165. servaddrs = [C] or [P]:6114
  166. gameservlist = [D]
  167.  
  168. (EXAMPLE:)
  169. servaddrs = 192.168.4.3:6114
  170. gameseverlist = 192.168.0.80
  171.  
  172. Save & Close "d2dbs.conf"
  173.  
  174. +-REALM CONFIG-------------------------------------------------------------------------+
  175.  
  176. Open "realm.list" in a text editor (located in PvPGN\conf folder). Find and change
  177. the following line to match your setup (Include Quotes):
  178.  
  179. "[R]" "[REALM DESCRIPTION]" [B]:6113 [F]:6113
  180.  
  181. (EXAMPLE:)
  182. "Hell Realm" "PvPGN Closed Realm" 192.168.5.9:6113 66.92.14.96:6113
  183.  
  184. Save & Close "realm.list"
  185.  
  186. +-STARTING SERVICES------------------------------------------------------------------+
  187.  
  188. #1) Run PvPGN.exe
  189. #2) Run "install.bat" located in PvPGN directory (not the one in D2GS folder), this will install the PvPGN programs as services
  190. #3) Logged in as an Administrator, Go to:
  191. Start Menu -> Settings -> Control Panel -> Administrative Tools, and run "Services"
  192. Find and start "D2DBS", "D2CS" and "Diablo 2 Closed Server" services. Also, make sure that the services stay started under the "status" column, if not, you fucked up somewhere. You should see some movement on the PvPGN log screen if you have it visible
  193.  
  194. +-FINAL STEP-----------------------------------------------------------------------------+
  195.  
  196. Go to:
  197. Start Menu -> Run
  198. type, "cmd" then press enter to get to command prompt
  199.  
  200. In command prompt, type:
  201. "telnet [IP OF D2GS SERVER] 8888"
  202.  
  203. Return will be:
  204. "password: _"
  205.  
  206. Type, "abcd123" as password
  207.  
  208. (NOTE: Once in Administrative Console, you can type "help" for a list of
  209. commands)
  210.  
  211. Type, "passwd" to change the password you just entered to whatever you want
  212.  
  213. When finished resetting password, type
  214. "maxgame [ANY VALUE HIGHER THAN 0]
  215. (example: "maxgame 50")
  216.  
  217. This will allow you to create the specified number of simultaneous Diablo games.
  218. This value is "0" by default, meaning, it won’t allow the creation of any D2 games until it is modified.
  219.  
  220. All done..
  221.  
  222. +-TROUBLE SHOOTING------------------------------------------------------------------+
  223.  
  224. Having trouble with D2 Closed? Re-Check the steps above (especially the Registry related info). Make sure that all D2GS support files are in the D2GS directory (I know you think they are ok, but just re-check). Run Task Manager, and check to make sure the all required processes are running (PvPGN.exe, D2GS.exe, D2DBS.exe, D2CS.exe, if used; MySQL.exe). If a process is not staying in memory, it is closing itself. You will need to check the logs to see what is causing the process to close.
  225.  
  226. PvPGN ---> PvPGN.LOG
  227. D2CS.exe ---> D2CS.LOG
  228. D2DBS.exe ---> D2DBS.LOG
  229. D2GS.exe ---> D2GS.LOG
  230.  
  231. Lastly, the order in which D2 Closed interacts, is another way to determine the problem.
  232. PvPGN ---> D2CS+D2DBS ---> D2GS
  233.  
  234. Can’t connect to you server at all, with any Blizzard game?
  235. Network problems or problem with PvPGN.
  236.  
  237. Connect OK with all Blizzard games, D2 "Open B.Net" working, "Closed Realm" wont work due to "Realm is down"?
  238. D2CS is not connecting to PvPGN, check "realm.conf" & "d2cs" and you may find your problem in one of the LOGs.
  239.  
  240. Connect OK with all Blizzard games, D2 "Open B.Net" working, "Closed Realm" WONT allow any new Diablo 2 games to be created, says "game creation is in que number 1"? (Or Something like that)
  241. Diablo 2 Game Server (D2GS) takes over at this point, and is having trouble. Most commenly the "Maxgames" settings is set to "0".
  242.  
  243. ---------anon's extra troubleshooting pack---------------------------------------=-=--=-=
  244.  
  245. conn destroy spam in char serv?
  246. you're running it twice, stop the service or the gui, same goes for the other programs
  247.  
  248. to use mysql set storage_path = sql:mode=mysql;host=localhost;name=pvpgn;user=root;pass=mysql;default=0 in bnetd.conf
  249.  
  250. 64 bit os? fix the registry
  251. Find: Code: [Select] [HKEY_LOCAL_MACHINE\SOFTWARE\D2Server\D2GS]
  252. Replace With: Code: [Select] [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\D2Server\D2GS]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement