Difference between revisions of "SCUMM/Technical Reference/Room resources"

Jump to navigation Jump to search
no edit summary
 
Line 38: Line 38:
<pre>(256 - 28) / 4 = 57</pre>
<pre>(256 - 28) / 4 = 57</pre>


== Data ==
== Content ==
=== Object image offsets ===
=== Object image offsets ===


Line 46: Line 46:
<tr><td>0x1c</td><td>UInt16LE</td><td>Offset to object 1 image location</td></tr>
<tr><td>0x1c</td><td>UInt16LE</td><td>Offset to object 1 image location</td></tr>
<tr><td>0x1e</td><td>UInt16LE</td><td>Offset to object 2 image location</td></tr>
<tr><td>0x1e</td><td>UInt16LE</td><td>Offset to object 2 image location</td></tr>
<tr><td>...</td><td>UInt16LE</td><td>Repeated objNum times</td></tr>
<tr><td>...</td><td>UInt16LE</td><td>Repeated <code>objNum</code> times</td></tr>
</table>
</table>


Line 56: Line 56:
<tr><td>0x1c + objNum * 2</td><td>UInt16LE</td><td>Offset to object 1 content location</td></tr>
<tr><td>0x1c + objNum * 2</td><td>UInt16LE</td><td>Offset to object 1 content location</td></tr>
<tr><td>0x1e + objNum * 2</td><td>UInt16LE</td><td>Offset to object 2 content location</td></tr>
<tr><td>0x1e + objNum * 2</td><td>UInt16LE</td><td>Offset to object 2 content location</td></tr>
<tr><td>...</td><td>UInt16LE</td><td>Repeated objNum times</td></tr>
<tr><td>...</td><td>UInt16LE</td><td>Repeated <code>objNum</code> times</td></tr>
</table>
</table>


Line 116: Line 116:
'''Note:''' The object code data starts at byte 15, the verb-script pairs part ends with a 0x00 byte. This means that the object name offset value is always an even number between 16 and 254.
'''Note:''' The object code data starts at byte 15, the verb-script pairs part ends with a 0x00 byte. This means that the object name offset value is always an even number between 16 and 254.


==== Object code data ====
==== Object code content ====


Object code data contains 3 sections optional, in this order:
Object code content contains 3 optional sections, in this order:
* 0 or more pairs of verb ids and object script offsets
* 0 or more pairs of verb ids and object script offsets
* The name of the object
* The name of the object
Line 128: Line 128:


The first one is a reference to the verb ID and the second is an offset to the beginning of the object script.
The first one is a reference to the verb ID and the second is an offset to the beginning of the object script.
Multiple verbs can refer to the same offset.


This part ends with a 0x00.
This part ends with a 0x00.
34

edits

Navigation menu