DL2 GOG Patch for Windows 8 and WINE

Ask here for technical assistance with installing, running, etc. Forum related issues should be reported here, too.
Post Reply
User avatar
Tggtt
Mighty Colony Leader
Mighty Colony Leader
Posts: 244
Joined: Sun Oct 06, 2013 8:08 pm

DL2 GOG Patch for Windows 8 and WINE

Post by Tggtt »

Disclaimer: No Warranty. Use at your own risk.

Since you have been asking for it, I have been trying to create a patch for the Deadlock 2 GOG version that allows it to be run without glitches on Windows 8 and WINE.
This is my best result so far and I believe it should be enough.
The whole idea here was to downgrade DL2 1.20 to 1.00 and make it run with the local files instead of looking for the CD.
It seems to be working fine, and as I have pointed earlier, this version is multiplayer-compatible to any other DL2 version.

The patch file is attached, you need BSPATCH to apply it to DEADLOCK.EXE.

Get yourself bspatch (usually comes with bsdiff).
Windows version links:
https://www.pokorra.de/coding/bsdiff.html (Compiled with GCC 3, for old Windows 32-bit versions)
https://github.com/cnSchwarzer/bsdiff-win/ (Compiled with VC 2015, requires recent Windows versions)
http://sites.inka.de/tesla/download/bsdiff4.3-win32.zip (Old link)

Run bspatch using cmd or other console/terminal tool like this:

Code: Select all

bspatch deadlock.exe deadlockpatched.exe  dl2downpathgog.zip
Hint: extract bspatch.exe from the Windows version zip to Deadlock's folder then run a cmd.exe at that path.

Then run deadlockpatched.exe on Windows 8 and Wine. Please post here if it works.

Side notes:
GOG version was based on version 1.20 while this is a downgrade to 1.00, therefore some bugs from the original version may reappear. Also, there's no map editor in this version.

Thanks to RenanSPH for confirming the offsets.

[Edit] There are better solutions by using DLL wrappers for Direct Draw, check the rest of the thread.
Attachments
dl2downpathgog.zip
File Patch for Deadlock 2 GOG version 2.0.0.2

Not a real zip, renamed for the forum, you need bspatch to apply.
(116.04 KiB) Downloaded 940 times
User avatar
Tggtt
Mighty Colony Leader
Mighty Colony Leader
Posts: 244
Joined: Sun Oct 06, 2013 8:08 pm

Re: DL2 GOG Patch for Windows 8 and WINE

Post by Tggtt »

Update:
Please read this topic by Osarusan as it could provide you a better solution.
Post Reply