Page 1 of 1

DL2 GOG Patch for Windows 8 and WINE

Posted: Mon Jul 21, 2014 2:16 am
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.

Re: DL2 GOG Patch for Windows 8 and WINE

Posted: Wed Nov 26, 2014 7:42 pm
by Tggtt
Update:
Please read this topic by Osarusan as it could provide you a better solution.