cleolibrary / CLEO5

CLEO 5 for GTA San Andreas
https://cleo.li
MIT License
47 stars 4 forks source link

CLEO5 can't launch cleo missions installed with modloader. #186

Closed TheoTTG closed 3 days ago

TheoTTG commented 5 days ago

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 5 days ago

@MiranDMC make a new build. Should be fixed there

x87 commented 5 days ago

@TheoTTG try alpha.69 build

TheoTTG commented 5 days ago

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 5 days ago

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

x87 commented 5 days ago

@MiranDMC

https://github.com/cleolibrary/CLEO5/blob/0ac620fc42778f8ce80dead6e6dd322dfbed0ab8/source/CCustomOpcodeSystem.cpp#L879

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

MiranDMC commented 5 days ago

@TheoTTG https://github.com/cleolibrary/CLEO5/actions/runs/10838351274/artifacts/1926928930 Are you able to download and test it?

TheoTTG commented 5 days ago

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

x87 commented 3 days ago

@TheoTTG try with this build https://github.com/cleolibrary/CLEO5/actions/runs/10864785973/artifacts/1933518550

TheoTTG commented 3 days ago

@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 3 days ago

resolved in alpha.70