BC46 / freelancer-hd-edition

Freelancer: HD Edition is a mod that aims to improve every aspect of the game Freelancer (2003) while keeping the look and feel as close to vanilla as possible.
https://www.moddb.com/mods/freelancer-hd-edition
168 stars 15 forks source link

x86 executables? #134

Closed lippmaje closed 1 year ago

lippmaje commented 1 year ago

Is it possible to also build an executable for x86? I wanted to try the mod on a XP SP3 rig.

BC46 commented 1 year ago

By executable I'm guessing you mean the installer? The HDE installer was created using Inno Setup and by default it should support both x86 and x64 out of the box. However, Inno stopped supporting Windows XP quite a while ago, so the HDE installer won't run on there regardless of the CPU architecture.

If you'd like to run the mod on XP, you should be able to perform a simple installation as described here: https://github.com/BC46/freelancer-hd-edition/wiki/Freelancer:-HD-Edition-installation-instructions#simple-installation-not-recommended.

It might be possible to build the installer using version 5.x of Inno (latest major version that supports XP). Though I'm not sure if doing this could cause any incompatibilities with some of the features that the installer offers.

lippmaje commented 1 year ago

I ran the installer in Windows 7 (on a vanilla 1.1 FL folder) and tried to run the HD mod from within XP but got an exception: 'The procedure entry point InitializeCriticalSectionEx could not be located in the dynamic link libray KERNEL32.dll.' Also two errors related to a missing msvcp140.dll which I could fix by installing vc_redist.x86.exe. The first exception, however, sticks. I assume the call is statically linked into one of the DLLs and not related to the installer. I'll have to try the manual installation you provided later, but maybe this update will provide some useful information.

BC46 commented 1 year ago

Inside your HD Edition installation directory, open the EXE folder. Try renaming the d3d8.dll file in there to d3d8_bak.dll. If the game runs without issues after that, then that means the selected Graphics API option from the installer is not supported on XP.

Edit: This issue could also be caused by one or more plugins that have never been tested on XP. If the above solution didn't help, let me know.

lippmaje commented 1 year ago

This did it, works like a treat now in XP with 16:9 resolution and hi res textures. I'll add status updates if something gets weird.