cleolibrary/CLEO5

CLEO5 can't launch cleo missions installed with modloader.

TheoTTG opened this issue · 10 comments

Cleo 5 doesn't seem to be able to find cleo mission files in modloader, as opposed to Cleo 4.

For example, if there's a cleo mission called testm.cm in '/modloader/test/cleo/', Cleo 4 will be able to find this file when test.cs launches the mission with load_and_launch_custom_mission "testm".

CLEO4:

12/09/2024 19:27:05.456 Searching for cleo scripts
12/09/2024 19:27:05.456 Loading custom script ..\modloader\test\cleo\test.cs...
12/09/2024 19:27:05.456 Registering custom script named test.cs
12/09/2024 19:27:17.957 [0A94] Starting new custom mission testm.cm from thread named test.cs
12/09/2024 19:27:17.957 Loading custom script testm.cm...
12/09/2024 19:27:17.957 Registering custom mission named testm.c
12/09/2024 19:27:18.004 Unregistering custom mission named testing

Cleo 5 on the other hand is unable to do this.

CLEO5:

12/09/2024 19:23:40.521 Listing CLEO scripts:
12/09/2024 19:23:40.521  - 'C:\Rockstar Games\GTASA\cleo\..\modloader\test\cleo\test.cs'
12/09/2024 19:23:40.521 Starting CLEO scripts
12/09/2024 19:23:40.521 Loading custom script C:\Rockstar Games\GTASA\cleo\..\modloader\test\cleo\test.cs...
12/09/2024 19:23:40.522 Registering custom script named test.cs
12/09/2024 19:23:51.982 [0A94] Starting new custom mission C:\Rockstar Games\GTASA\cleo\testm.cm from thread named test.cs
12/09/2024 19:23:51.982 Loading custom script C:\Rockstar Games\GTASA\cleo\testm.cm...
12/09/2024 19:23:51.983 Error during loading of custom script C:\Rockstar Games\GTASA\cleo\testm.cm occured.
Error message: File does not exists
12/09/2024 19:23:51.983 [0A94] Failed to load mission 'C:\Rockstar Games\GTASA\cleo\testm.cm' from script 'test.cs'.
12/09/2024 19:23:55.202 Ending current game
x87 commented

@MiranDMC make a new build. Should be fixed there

x87 commented

@TheoTTG try alpha.69 build

Situation is sitll the same on Alpha.69.

12/09/2024 20:14:03.267 Loading custom script 'C:\Rockstar Games\GTA San Andreas\cleo\MISSIONS\KARMG.cm'...
12/09/2024 20:14:03.267 Error during loading of custom script C:\Rockstar Games\GTA San Andreas\cleo\MISSIONS\KARMG.cm occured.
Error message: File does not exists
12/09/2024 20:14:03.267 [0A94] Failed to load mission 'C:\Rockstar Games\GTA San Andreas\cleo\MISSIONS\KARMG.cm' from script 'main.cs'.
x87 commented

I see, ok. Looks like some extra change is needed

x87 commented

@MiranDMC

auto filename = reinterpret_cast<CCustomScript*>(thread)->ResolvePath(path, DIR_CLEO); // legacy: default search location is game\cleo directory

replace DIR_CLEO with "CLEO" for now. Looks like absolute path to CLEO folder is not recognized by ModLoader

@MiranDMC I was able to download it, but it doesn't seem to make a difference. The result is the same.

@x87 Looks like the issue is resolved with this build. Thanks!

15/09/2024 12:52:09.636 [0A94] Starting new custom mission cleo\MISSIONS\KARMG.cm from thread named main.cs
15/09/2024 12:52:09.636 
15/09/2024 12:52:09.636 Loading custom script 'cleo\MISSIONS\KARMG.cm'...
15/09/2024 12:52:09.655 Registering custom mission named karmg.c
x87 commented

resolved in alpha.70