Difference between revisions of "FF8/Main wm2"
< FF8
Jump to navigation
Jump to search
my_wiki>MaKiPL (→Field location) |
my_wiki>Albeoris (Created page with "By MaKiPL <br /> == Info == '''wm2field.tbl''' is file that handles the world map to field warping. == Structure == File is 1728 bytes. Where every entry is 24 bytes. Tho...") |
||
Line 1: | Line 1: | ||
By MaKiPL | By MaKiPL | ||
+ | <br /> | ||
+ | |||
+ | == Info == | ||
− | |||
'''wm2field.tbl''' is file that handles the world map to field warping. | '''wm2field.tbl''' is file that handles the world map to field warping. | ||
− | ==Structure== | + | == Structure == |
File is 1728 bytes. Where every entry is 24 bytes. Though 1728/24 = 72 entries | File is 1728 bytes. Where every entry is 24 bytes. Though 1728/24 = 72 entries | ||
One entry: | One entry: | ||
− | {| | + | |
− | ! | + | {| class="wikitable" |
− | ! | + | ! Offset |
− | ! | + | ! SizeOf |
− | ! | + | ! Name |
+ | ! Description | ||
|- | |- | ||
| 0 | | 0 | ||
Line 42: | Line 45: | ||
|} | |} | ||
+ | <br /> | ||
+ | |||
+ | == Field location == | ||
− | |||
Old wiki page about wm2field stated, that X Y Z coordinates are based on 12 bits. No, they aren't, I made a mistake. They are normal WORDs with sign-extension for X and Y and Z is normal WORD copying and no cmp(0x7FFF), so it's unsigned. The axis are indeed X Y Z, not X-ZY as everywhere else in FF8. Byte after fieldID is some sort of pointer, currently unknown what is it purpouse. | Old wiki page about wm2field stated, that X Y Z coordinates are based on 12 bits. No, they aren't, I made a mistake. They are normal WORDs with sign-extension for X and Y and Z is normal WORD copying and no cmp(0x7FFF), so it's unsigned. The axis are indeed X Y Z, not X-ZY as everywhere else in FF8. Byte after fieldID is some sort of pointer, currently unknown what is it purpouse. | ||
− | ==Useful notes== | + | == Useful notes == |
+ | |||
First entry is Balamb Garden | First entry is Balamb Garden | ||
Second entry is Balamb City | Second entry is Balamb City |
Revision as of 16:05, 24 March 2018
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 | short | FieldX | Operates FieldX |
2 | short | FieldY | Operates FieldY |
4 | ushort (yes) | Field_Z | Operates FieldZ |
6 | ushort | FieldID | ID of field |
8 | 16 bytes | UNKNOWN | Unknown |
Field location
Old wiki page about wm2field stated, that X Y Z coordinates are based on 12 bits. No, they aren't, I made a mistake. They are normal WORDs with sign-extension for X and Y and Z is normal WORD copying and no cmp(0x7FFF), so it's unsigned. The axis are indeed X Y Z, not X-ZY as everywhere else in FF8. Byte after fieldID is some sort of pointer, currently unknown what is it purpouse.
Useful notes
First entry is Balamb Garden
Second entry is Balamb City