Community
SCI Programming => SCI Development Tools => Topic started by: ZvikaZ on January 24, 2022, 09:57:42 AM
-
Hi.
I'm trying to understand the scripts' format (with the help of https://wiki.scummvm.org/index.php?title=SCI/Specifications/SCI_virtual_machine/Introduction (https://wiki.scummvm.org/index.php?title=SCI/Specifications/SCI_virtual_machine/Introduction)), and I don't understand the exports segment.
Let's take SQ1VGA, script 103.
ScummVM's debugger ("dissect_script 103"), says that its exports segment is:
Obj type #7, size 0xa: Exports
000004: 01 00 22 03 00 00 |.."... |
According to the Wiki, it means that there is one exported function, at address 0x322.
But 0x322 is the middle of the Object 'rm103'. I expected it be something in a code block.
What's going on?
-
The export table points to objects and code. For a script that is a room, the first entry in the export table should point to the room object.