News for hackers. Stuff that matters.
Re:Hacking a 25 Year Old Game to Make It Work [video] by ryandrake on Monday November 13, 2023 @11:29AM (#38252013)
Looks like the main blocking problem was that the game was stuck in a loop looking for a multimedia system DLL that was missing, because it assumed there would always be a CDROM available. OP lucked out that the code that called winmm.dll had a GitHub link and he could just patch it.

Too bad Microsoft has kind of softened and lost its reputation for Windows's impeccable backward compatibility. This seems like it could have been easily avoided on the OS side.

Re:Hacking a 25 Year Old Game to Make It Work [video] by goosedragons on Monday November 13, 2023 @01:20PM (#38253310)
It's always been a slow rot. Even in the XP days you'd run into issues. I remember Alpha Centauri did NOT like my dual core Athlon and it wasn't even a decade old at the time.
Re:Hacking a 25 Year Old Game to Make It Work [video] by j1elo on Monday November 13, 2023 @03:22PM (#38254869)
If this was a web service, the popular solution would be Docker!

But the joke might make more sense than it appears. Just like a server that was coded to work on a given version of Red Hat or Debian, wouldn't be expected to run without changes on modern versions 10 years later, I guess we shouldn't expect old games to run without a VM that replicates the system they were written to run on.

Re:Hacking a 25 Year Old Game to Make It Work [video] by thrdbndndn on Monday November 13, 2023 @10:36PM (#38258771)
> Looks like the main blocking problem was that the game was stuck in a loop looking for a multimedia system DLL that was missing, because it assumed there would always be a CDROM available. OP lucked out that the code that called winmm.dll had a GitHub link and he could just patch it.

Not quite, from my understanding.

The DLL was already patched in GOG version (using the one from GitHub) to redirect any resources from CD-ROM to a local one; however the patch isn't working in Win10 due to some relative path issues (which I'm not sure why; it ha a system32/ prefix at various places, which Win10 do have?). He patched the DLL again by removing these system32/, and it works again.

Re:Hacking a 25 Year Old Game to Make It Work [video] by rasz on Tuesday November 14, 2023 @12:12AM (#38259423)
Microsoft used to keep a really good Shim library to hot patch troublesome applications. Application Compatibility Toolkit (ACT)/Microsoft Windows Application Compatibility Infrastructure.

https://learn.microsoft.com/en-us/windows/deployment/plannin...

This hack could be accomplished with one of those. In fact here is something that might work https://ryanwill.com/create-and-use-shims-with-microsoft-app...

>CorrectFilePaths – These are similar to symbolic links, but are defined per .EXE instead of system wide

Re:Hacking a 25 Year Old Game to Make It Work [video] by pathartl on Tuesday November 14, 2023 @11:34AM (#38265586)
I've been working with getting games from 1995+ working on modern systems over the past two years, and honestly the biggest incompatibilities I've seen have been in the registry. Combined with some redirected filesystem calls, I really think you could get 98% of games working in a portable fashion.

The problem I have with some of these GoG releases is they just patch out buttons for things like networking, when features like local IPX multiplayer can still work with shims.