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

support "long strings" in III and VC if CLEO library is present #102

Open x87 opened 1 year ago

x87 commented 1 year ago

III/VC CLEO supports type 0xE and var-length strings, and does not support fixed-length (null-terminated) strings for its opcode. It leads to a crash for

Fs.DoesFileExist("gta-vc.exe")

Note that currently CLEO Redux always uses native encoding and for VC it encodes the string as

"g" "t" "a" "-" "v" "c" "." 00

It should also use 0xE if CLEO is present and this is a CLEO opcode (0AAB, for example)

x87 commented 1 year ago

Relevant CLEO ticket https://github.com/cleolibrary/III.VC.CLEO/issues/29