I would like to try something on Glulx that would involve modifying the game’s dictionary, specifically adding entries. As I read the spec and parser code, this seems like it should be theoretically possible so long as alphabetical order of the dictionary entries is maintained. However, it looks like trying to extend the table would overwrite other meaningful information.
I’ve combed through the reference addendum, and I don’t see anything that would let this be requested as a compilation parameter, but it seems like it should be pretty simple to implement. Maybe a DICT_WORDS_PADDING=N parameter that would create space for N additional entries (the additional space initially being filled with zeroes) at the end of the table?
Oh, terrific – that will work nicely. Thank you, zarf!
I never thought to check the I6 compiler’s memory map output to see where the dictionary was. (Didn’t it used to say that was only for Z-machine?) I see that the Glulx spec’s section on the memory map doesn’t show something with the granularity of the compiler’s -z output, and the Glulx Inform Technical Reference doesn’t have it, either; it might be worth adding that to the technical reference as an example of the layout of a compiled game (with a note in the spec to see that for more information).