511
SCI Development Tools / Re: Brian's SCI1 Script Compiler
« on: December 19, 2015, 02:59:26 PM »I just noticed that the syntaxFail and semanticFail methods are never called from game code. So they must be called directly by the kernel. Which means it could be making erroneous assumptions about which selectors they correspond to.This is true. The reason for the numbering change-over, btw, is the introduction of support for multiple languages in SCI01. The way it works is that the interpreter chooses between 900/901/902 or 910/911/912 based on the value of the parseLang and printLang properties of the game object. Having two sets of files allowed you to switch languages on the fly. The formats should be identical, but changed from SCI0 to SCI01 (Companion does support loading them; but are you saving them properly?).
The language codes follow the international telephone codes, so in general both selectors should have a value of 1=English.
EDIT: And of course, these selector numbers are hardcoded into the interpreter (it doesn't use VOCAB.994 here).