Difference between revisions of "FF8/Main wm2"
< FF8
Jump to navigation
Jump to search
my_wiki>MaKiPL (→Useful notes) |
my_wiki>MaKiPL (→Structure) |
||
Line 16: | Line 16: | ||
! style="background:rgb(204,204,204)" | Description | ! style="background:rgb(204,204,204)" | Description | ||
|- | |- | ||
− | | 0 | + | | 0,1 |
− | | | + | | int_12 |
− | | | + | | FieldX |
− | | | + | | Operates FieldX* |
|- | |- | ||
− | | 2 | + | | 1,2 |
− | | | + | | int_12 |
− | | | + | | FieldY |
− | | | + | | Operates FieldY* |
+ | |- | ||
+ | | 3,4 | ||
+ | | int_12 | ||
+ | | Field_Z | ||
+ | | Operates FieldZ*? | ||
|- | |- | ||
| 4 | | 4 | ||
− | | | + | | int_4 |
− | | | + | | UNK_1 |
− | | | + | | Unknown |
|- | |- | ||
− | | | + | | 5 |
| uint_16 | | uint_16 | ||
| FieldID | | FieldID | ||
| ID of field | | ID of field | ||
|- | |- | ||
− | | | + | | 7 |
− | | | + | | 17 bytes |
− | | | + | | UNKNOWN |
− | | | + | | Unknown |
|} | |} | ||
− | + | ||
+ | ==Field location== | ||
+ | The field location is obtained from three bytes. | ||
+ | |||
+ | '''Example''': | ||
+ | 9A 00 E7 10 | ||
+ | To get X axis: 9A 00 (9A 00) | ||
+ | |||
+ | Cheat engine X axis: A0 09 | ||
+ | |||
+ | To get Y axis: E7 00 (E7 10) [0 is leftover, and 0 from 10] | ||
+ | |||
+ | Cheat engine Y axis: 70 0E | ||
+ | |||
+ | '''Another example''': | ||
+ | 12 04 23 F7 | ||
+ | To get X axis: 12 04 (12 04) | ||
+ | |||
+ | Cheat engine X axis: 20 41 | ||
+ | |||
+ | To get Y axis: 23 07 (23 F7) [0 is leftover, and 7 from F7] | ||
+ | |||
+ | Cheat engine Y axis: 3F 27 | ||
==Useful notes== | ==Useful notes== |
Revision as of 19:42, 20 April 2016
By MaKiPL
Contents
Info
wm2field.tbl is file that handles the world map to field warping.
Structure
File is 1728 bytes. Where every entry is 24 bytes. Though 1728/24 = 72 entries
One entry:
Offset | SizeOf | Name | Description |
---|---|---|---|
0,1 | int_12 | FieldX | Operates FieldX* |
1,2 | int_12 | FieldY | Operates FieldY* |
3,4 | int_12 | Field_Z | Operates FieldZ*? |
4 | int_4 | UNK_1 | Unknown |
5 | uint_16 | FieldID | ID of field |
7 | 17 bytes | UNKNOWN | Unknown |
Field location
The field location is obtained from three bytes.
Example:
9A 00 E7 10
To get X axis: 9A 00 (9A 00)
Cheat engine X axis: A0 09
To get Y axis: E7 00 (E7 10) [0 is leftover, and 0 from 10]
Cheat engine Y axis: 70 0E
Another example:
12 04 23 F7
To get X axis: 12 04 (12 04)
Cheat engine X axis: 20 41
To get Y axis: 23 07 (23 F7) [0 is leftover, and 7 from F7]
Cheat engine Y axis: 3F 27
Useful notes
First entry is Balamb Garden
Second entry is Balamb City