Author Topic: Decompiler mysteries 2  (Read 921 times)

0 Members and 1 Guest are viewing this topic.

Offline troflip

Decompiler mysteries 2
« on: June 14, 2016, 04:19:12 AM »
Also in QFG2... The decompiler produces a bunch of "--invalid--" tokens in Said strings. It turns out (of course), that these *are* valid. They just correspond to duplicate words in the vocab resource.

For example, QFG2 has:
word group 451:    open       verb
word group 1246:  open       verb/noun

When Companion loads the vocab resource, it assembles a dictionary of word -> group, and assumes each word is unique. So one word goes missing, and the decompiler can't map from word group to word.

So the questions are:
- Is that intended behavior for Sierra to have duplicate words? Was it used for different words in other languages maybe? (someone could probably test this)
- How did their compiler disambiguate them? 'open, open>'   -> how does it know the first open is 451, and the second one is 1246?


Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline troflip

Re: Decompiler mysteries 2
« Reply #1 on: June 14, 2016, 05:16:35 PM »
My guess is that the source code just had 'open'. The compiler probably saw more than one entry for it, and then compiled it with all the entries (separated by ',').
Check out my website: http://icefallgames.com
Groundhog Day Competition


SMF 2.0.14 | SMF © 2017, Simple Machines
Simple Audio Video Embedder

Page created in 0.097 seconds with 23 queries.