xensik / gsc-tool

A utility to compile & decompile IW engine game scripts.
GNU General Public License v3.0
214 stars 40 forks source link

MWII GSC compile hash name function error #205

Closed ProjectHiNAtyu closed 3 weeks ago

ProjectHiNAtyu commented 1 month ago

When compiling MWII's GSC, if you compile it while including a hashed function such as the function "_id_BD1704B44A1A730E()" in the original source code, the error "stoul argument out of range at ??.gsc" occurs. Can you fix it so that it can be compiled while leaving the functions with hashed names? bandicam 2024-06-02 20-47-51-596

xensik commented 1 month ago

i cant replicate in current version, have you edited the source code of the program?

a
xensik commented 1 month ago

are you using 32 or 64 bits executable?

windows-x64-release.zip
windows-x86-release.zip 
ProjectHiNAtyu commented 1 month ago

I am using the "gsc-tool.exe" included in the unzipped "windows-x64-release.zip" of the latest version. I am attaching the gsc and exe files where the symptoms actually occur. https://drive.google.com/file/d/19VjcOsSBctXmwhhDWoMALOMD6HenPokW/view?usp=sharing

xensik commented 3 weeks ago

there was a bug in the compiler, will be fixed for next release #208