Changes

→‎Crane Instance (cib): Add component properties
Line 118: Line 118:  
| 0x24
 
| 0x24
 
| 0x4
 
| 0x4
| Start address of unknown elements
+
| Start address of component properties
 
|-
 
|-
 
| 0x28
 
| 0x28
 
| 0x4
 
| 0x4
| End address of unknown elements
+
| End address of component properties
 
|-
 
|-
 
| 0x2C
 
| 0x2C
Line 166: Line 166:  
| 0xEC
 
| 0xEC
 
| 0x4
 
| 0x4
| Number of elements at 0x1C40
+
| Number of on-screen prizes
 
|-
 
|-
 
| 0xF0
 
| 0xF0
 
| 0x4
 
| 0x4
| Number of elements at 0x23C0
+
| Number of properties at 0x23C0
 
|-
 
|-
 
| 0xF4
 
| 0xF4
 
| 0x4
 
| 0x4
| Number of elements at 0x2F00
+
| Number of on-screen attachments
 
|-
 
|-
 
| 0xF8
 
| 0xF8
 
| 0x4
 
| 0x4
| Number of elements at 0x3680
+
| Number of on-screen fixed objects
 
|-
 
|-
 
| 0xFC
 
| 0xFC
 
| 0x4
 
| 0x4
| Number of elements at 0x3E00
+
| Number of properties at 0x3E00
 
|-
 
|-
 
| 0x100
 
| 0x100
Line 193: Line 193:  
|-
 
|-
 
| 0x1C40
 
| 0x1C40
|  
+
| 0x2440
| Unknown elements
+
| [[#Component Properties|Component properties]]
 
|}
 
|}
   Line 222: Line 222:     
=== Component Names ===
 
=== Component Names ===
This section has the names of all the components (prizes, attachments and fixed objects) used within a crane instance.
+
This section has the names of all the components (prizes, attachments and fixed objects) used within a crane instance. Attachments are optional, others are unknown.
Attachments are optional, others are unknown.
+
 +
Each list of components is then zero-indexed for later use on setting its properties.
    
{| class="wikitable"
 
{| class="wikitable"
Line 255: Line 256:  
| Optional fixed object name(s)
 
| Optional fixed object name(s)
 
|}
 
|}
 +
 +
=== Component Properties ===
 +
This section has the properties of all the components (prizes, attachments and fixed objects) and sets how many of them are used within a crane instance.
 +
 +
{| class="wikitable"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x1C40
 +
| 0x60
 +
| On-screen prize property
 +
|-
 +
|
 +
| 0x60
 +
| Optional on-screen prize properties
 +
|-
 +
| 0x23C0
 +
| 0x60
 +
| Unknown property (prize related?)
 +
|-
 +
|
 +
| 0x60
 +
| Optional unknown properties (prize related?)
 +
|-
 +
| 0x2F00
 +
| 0x60
 +
| On-screen attachment property
 +
|-
 +
|
 +
| 0x60
 +
| Optional on-screen attachment properties
 +
|-
 +
| 0x3680
 +
| 0x60
 +
| On-screen fixed object property
 +
|-
 +
|
 +
| 0x60
 +
| Optional on-screen fixed object properties
 +
|-
 +
| 0x3E00
 +
| 0x20
 +
| Unknown property
 +
|-
 +
|
 +
| 0x20
 +
| Optional unknown properties
 +
|}
 +
 +
==== On-screen component properties ====
 +
All on-screen properties set the visible components on the crane instance. Each component can be set more than once with different properties.
 +
 +
In case of prizes, this allows the player to get a prize more than once.
 +
 +
Except for the index, all of the properties are saved as float32 values.
 +
 +
{| class="wikitable"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0
 +
| 0x4
 +
| Component index
 +
|-
 +
| 0x4
 +
| 0x4
 +
| Width scale
 +
|-
 +
| 0x8
 +
| 0x4
 +
| Height scale
 +
|-
 +
| 0xC
 +
| 0x4
 +
| Component rotation (clockwise)
 +
|-
 +
| 0x10
 +
| 0x4
 +
| Width position (zero means left)
 +
|-
 +
| 0x14
 +
| 0x4
 +
| Height position (zero means top)
 +
|-
 +
| 0x18
 +
| 0x48
 +
| Unknown properties
 +
|}
 +
 +
The position is calculated using the 3DS screen as a reference (400x240).
    
== Attachment (atb) ==
 
== Attachment (atb) ==
127

edits