cleolibrary / CLEO-Redux

Experimental JavaScript runtime for GTA 3D era games/GTA IV/Bully
https://re.cleo.li
Other
213 stars 20 forks source link

[IV] CLEO Redux does not work with FusionFix installed #108

Closed ZH-Hristov closed 2 months ago

ZH-Hristov commented 2 months ago

GTA IV refuses to launch when both CLEO Redux and FusionFix installed. I have tried with both the dinput8.dll provided by FusionFix and the one from the Ultimate ASI Loader repo.

The game outputs no errors and there are no errors in the CLEO log.

ThirteenAG commented 2 months ago

Recent fusion fix hooks two text functions for its gxt loader, maybe that's why?

ZH-Hristov commented 2 months ago

I'll try the previous version and report back.

ZH-Hristov commented 2 months ago

Recent fusion fix hooks two text functions for its gxt loader, maybe that's why?

I tried 2.56 and the game launches fine, so perhaps it is that new feature you mentioned.

x87 commented 2 months ago

@ZH-Hristov with latest FusionFix, try renaming cleo_redux.asi to something like the_cleo_redux.asi. presumably it should make asi loader load CLEO after fusion fix and the order of setting conflicting hooks might be important here. Let us know if it solves the problem

ZH-Hristov commented 2 months ago

@ZH-Hristov with latest FusionFix, try renaming cleo_redux.asi to something like the_cleo_redux.asi. presumably it should make asi loader load CLEO after fusion fix and the order of setting conflicting hooks might be important here. Let us know if it solves the problem

Just tried the_cleo_redux.asi and z_cleo_redux.asi. Sadly it didn't seem to change anything and the game closes itself again.

ZH-Hristov commented 2 months ago

Ah wait, sorry. I should have tried this before posting. It seems to work if I put the CLEO Redux asi in the plugins folder where fusion fix is and also rename it so that it's farther in the alphabetical order.

ZH-Hristov commented 2 months ago

Plugins don't get loaded this way though, even if I place CLEO_PLUGINS in there too.

Edit: Here's the log for that.

17:41:58 [INFO] Loading plugins from E:\SteamLibrary2\steamapps\common\Grand Theft Auto IV\GTAIV\plugins\CLEO\CLEO_PLUGINS
17:41:58 [INFO] Found plugin dylib.cleo
17:41:58 [ERROR] Can't load plugin dylib.cleo: LoadLibraryExW failed
17:41:58 [INFO] Found plugin IdeLoader.cleo
17:41:58 [ERROR] Can't load plugin IdeLoader.cleo: LoadLibraryExW failed
17:41:58 [INFO] Found plugin ImGuiReduxWin32.cleo
17:41:58 [ERROR] Can't load plugin ImGuiReduxWin32.cleo: LoadLibraryExW failed
17:41:58 [INFO] Found plugin IniFiles.cleo
17:41:58 [ERROR] Can't load plugin IniFiles.cleo: LoadLibraryExW failed
17:41:58 [INFO] Found plugin Input.cleo
17:41:58 [ERROR] Can't load plugin Input.cleo: LoadLibraryExW failed
17:41:58 [INFO] Found plugin MemoryOperations.cleo
17:41:58 [ERROR] Can't load plugin MemoryOperations.cleo: LoadLibraryExW failed
17:41:58 [INFO] Found plugin TextLoader.cleo
17:41:58 [ERROR] Can't load plugin TextLoader.cleo: LoadLibraryExW failed
x87 commented 2 months ago

Try to put both ASI in root folder (not plugins), and CLEO plugins in CLEO\cleo_plugins

ZH-Hristov commented 2 months ago

Game launched once, tried a script with text.PrintHelp which I assume is FXT/GXT related and the game crashed (script works on older version of FusionFix).

Now the game just doesn't launch like before.

x87 commented 2 months ago

Ok, I suppose it should be fixed on FusionFix end

ThirteenAG commented 2 months ago

Should be fixed in v3.0.8 then.

ZH-Hristov commented 2 months ago

Yep, fixed now. Thanks!