adventurebrew / magos

Tools for editing AGOS games (e.g. Simon the Sorcerer)
GNU General Public License v3.0
2 stars 2 forks source link

Code changes in script result in unstable ScummVM #4

Closed afreickmann closed 11 months ago

afreickmann commented 1 year ago

After compiling, ScummVM gets unstable when I trigger a subtitle twice. In this example it happens e.g. when "talking to" the blacksmith twice.

strings.txt german strings, added 14 lines scripts.txt (changed german code) scripts.txt (original german code)

BLooperZ commented 1 year ago

I think the problem might be that the new strings were added at TEXT30, but the scripts that use them are in TABLE22 I think the game loads only the strings from the matching TEXT "chunk" and the "GAMPC" texts are shared so, please try putting the new texts (in strings.txt) either on TEXT22 or in GAMEPC

BLooperZ commented 11 months ago

Added error handling for detecting such cases when compiling the tables