Re: Translating SCI Games
Posted: Wed May 29, 2019 2:28 pm
Quick progress report :
1) I could compile Game.sc by commenting out the Class_255_0 statement referencing global24 only to free it if allocated... except I'm not seeing any other reference to that variable except in Main.sc. Therefore, not feeling TOO bad about removing it, for now.
2) Once doing that, I could compile Class_255_0, but it requires the RESOURCE.xxx file to be repacked with it. It doesn't work with the compiled file exported as a patch. Tricky to figure out, but knowing it did help me make progress. I should have code taking in account the configuration variables for language that ScummVM passes over.
3) I could hack ScummVM into recognizing my patched game as its own thing requiring all the options specific to Japanese, by adding an entry to the detection table, so it would react to my patch files first
1) I could compile Game.sc by commenting out the Class_255_0 statement referencing global24 only to free it if allocated... except I'm not seeing any other reference to that variable except in Main.sc. Therefore, not feeling TOO bad about removing it, for now.
2) Once doing that, I could compile Class_255_0, but it requires the RESOURCE.xxx file to be repacked with it. It doesn't work with the compiled file exported as a patch. Tricky to figure out, but knowing it did help me make progress. I should have code taking in account the configuration variables for language that ScummVM passes over.
3) I could hack ScummVM into recognizing my patched game as its own thing requiring all the options specific to Japanese, by adding an entry to the detection table, so it would react to my patch files first