Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Diablo 2 private server installation guide v1 -by 8/v/ doom2/diablo2 anon
- last upated: 10/3/2016
- pre-requirements:
- -----------------
- -32bit linux (or Windows with 32bit compatibility)
- -Diablo 2 / LoD assets (ie, the installed MPQs, DLLs, EXEs, INIs)
- -WINE (with patched sock.c)
- -SQL server (mysql/mariadb/postgres)
- -PvPGN source (or Windows appropriate binaries)
- -D2GS Windows binaries
- -general linux ability (eg, navigate, edit, compile)
- current system / file information used for this guide:
- ------------------------------------------------------
- -Slackware 14.2 (32bit) available from:
- http://mirrors.slackware.com/slackware/slackware-iso/slackware-14.2-iso/
- -Diablo 2 / Lord of Destruction available from:
- *non/scurv/ link for people with legit CD install problems
- https://battle.net/account/management/download/
- -WINE 1.8.3 with build script from:
- https://slackbuilds.org/repository/14.2/system/wine/
- -WINE sock.c patch from:
- https://bugs.winehq.org/attachment.cgi?id=8866&action=diff
- -PvPGN v.1.99.7.1-PRO available from:
- https://github.com/pvpgn/pvpgn-server
- -D2GS 1.13d-build01 available from:
- http://pvpgn.pro/download/d2gs
- installation:
- -------------
- Step 1) untar/bzip WINE, and manually apply patch to wine/server/sock.c:
- Step 2) tar/bzip WINE, move it to its SlackBuilds directory, and run the build script
- Step 3) install the WINE slackbuild package found in /tmp/
- Step 4) untar/gzip pvpgn, make the build directory, and edit the cmake config to
- build WITH_MYSQL.
- Step 5) cmake, make, then make install pvpgn
- Step 6) edit the following path/etc/pvpgn/bnetd.conf settings appropriately:
- storage_path = "sql:mode=mysql;host=hostname;name=user;pass=pass;default=0;prefix=pvpgn_"
- track = 0
- servername = "diablo 2"
- Step 7) add a realm to path/etc/pvpgn/realm.conf with your IP for d2cs:
- "Name" "d2 server for anons" yourip:6113
- Step 8) edit the following path/etc/pvpgn/d2cs.conf settings appropriately:
- realmname = Name
- servaddrs = yourip:6113
- gameservlist = yourip
- bnetdaddr = yourip:6112
- motd = “optional info”
- Step 9) edit the following path/etc/pvpgn/d2dbs.conf settings appropriately:
- servaddres = yourip:6114
- gameservlist = yourip
- Step 10) unrar D2GS to the same directory as your Diablo 2 assets
- Step 11) run wine regedit, import d2gs.reg, and edit the following keys under
- HKEY_LOCAL_MACHINE/SOFTWARE/D2Server/D2GS:
- D2CSIP = yourip
- D2DBSIP = yourip
- EnableGSLog = 0 (optional, D2GS makes big logz)
- EnableNTMode = 0 (optional, runs D2GS.exe as Windows service)
- MaxGames = 100 (*defaults to 1 so remember to change this!)
- MOTD = “optional info”
- Step 12) create SQL db and grant privileges (db and user info from Step 6)
- Step 13) start the daemons
- in the following order (check logs):
- *in Windows you may need to allow firewall access per app on first run.
- **the linux user running bnetd/d2cs/d2dbs needs r/w permissions to the
- **path/etc/pvpgn and path/var/pvpgn directories.
- a) bnetd (will create db tables very first run)
- b) d2cs
- c) d2dbs
- d) wine D2GS.exe
- Step 666) run Diablo 2 client and join the modified gateway to kill Diablo
- *client setup outside the scope of this guide
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement