Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wine Blockland server guide for Linux VPS (Debian)
#3
The bash method to patch the EXE to a IMAGE_SUBSYSTEM_WINDOWS_CUI executable is this:

Code:
PatchedExe="Blockland.patched.exe";
cp Blockland.exe $PatchedExe;
printf \\x04\\x00\\x00\\x00 | dd of=$PatchedExe bs=1 count=4 seek=368 conv=notrunc 2>&1;
printf           \\x03\\x00 | dd of=$PatchedExe bs=1 count=2 seek=388 conv=notrunc 2>&1;


If you use the script from this thread, you can insert the above code in the startup script and transparently map the patched EXE into the bwrap namespace using the normal EXE name:
Code:
--ro-bind $server_location/Blockland.exe /home/user/$server/Blockland.exe \

Code:
--ro-bind $server_location/$PatchedExe /home/user/$server/Blockland.exe \

Remember to remove xvfb-run and WineFix.dll.


The guide needs a rewrite since Wine 11 is now the minimum version and several other requirements have disappeared. The distro-supplied Wine versions are now usable as well and this will require a new method.
Reply


Messages In This Thread
RE: Wine Blockland server guide for Linux VPS (Debian) - by Queuenard - 05-27-2026, 03:35 AM