Map structure: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 9: | Line 9: | ||
== '''FIRST PART- MOVEMENT PERMISSION''' == | == '''FIRST PART- MOVEMENT PERMISSION''' == | ||
First part | First part represents movement permission. | ||
It's | It's length depends from maps and is characterized by a sequence of | ||
00 XX 00 XX 00 XX... | 00 XX 00 XX 00 XX ... | ||
Here's a table of movements hex byte | Here's a table of movements hex byte | ||
Line 240: | Line 240: | ||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
|E0 | |E0 | ||
| It’s lined with | | It’s lined with Pokémon picture books | ||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
|E1 | |E1 | ||
Line 246: | Line 246: | ||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
|E2 | |E2 | ||
| | | Pokémon magazines! | ||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
|E4 | |E4 | ||
Line 252: | Line 252: | ||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
|E5 | |E5 | ||
|The shelves are jammed with colourful | |The shelves are jammed with colourful Pokémon Goods | ||
|- style="background: #eee;" align="center" | |- style="background: #eee;" align="center" | ||
|E6-EA | |E6-EA |
Revision as of 14:14, 15 February 2009
Map Structure
Maps in Pokemon Diamond and Pearl are stored in fielddata\landdata directory.
Each map is divided in four parts
The first 16 bytes give the sizes of each section (4 bytes each).
FIRST PART- MOVEMENT PERMISSION
First part represents movement permission. It's length depends from maps and is characterized by a sequence of 00 XX 00 XX 00 XX ...
Here's a table of movements hex byte
Hex Value (decimal) | Movement type |
---|---|
00 | Free passage |
02 | Grass |
03 | High Grass |
04-09 | Free passage |
10-12 | Surfing |
13 | Waterfall |
14-15 | Surfing |
16 | Go down 1 |
17 | Water on the foots? |
18 | Free passage |
19 | Surfing |
1A-1B | Free passage |
1C | Go down |
1D-20 | Free passage |
21 | Foot on sand |
22 | Surfing |
23-29 | Free passage |
2A | Surfing |
2B-32 | Free passage |
33 | Blocked |
34-35 | Free passage |
36-37 | Blocked |
38-39 | Free passage |
3A | Jump up 1 |
3B | Jump under 1 |
3C-3F | Free passage |
40 | Rotate right |
41 | Rotate left |
42 | Rotate up |
43 | Rotate down |
44-48 | Free passage |
49 | Blocked |
4A | Free passage |
4B | Rock Climb |
4C-4F | Free passage |
50-53 | Surfing |
54-5D | Free passage |
5E | Stairs down |
5F | Stairs up |
60-63 | Free passage |
64 | Go in without animation door |
65 | Go out of building |
66 | Free passage |
67 | Jump and transport in building |
68 | Free passage |
69 | Doors opening |
6A-6D | Free passage |
6E | Go in without animation door |
6F-70 | Free passage |
71 | Be on bike |
72 | Free passage |
73 | Surfing |
74-77 | Free passage |
78 | Surfing |
79-7B | Free passage |
7C | Surfing |
7D-82 | Free passage |
83 | Open pc |
84 | Free passage |
85 | Open map sinnoh |
86 | Battle Watch(Tv program) |
87-A0 | Free passage |
A1 | Hiro under snow(Middle) |
A3 | Hiro under snow(Only hat out) |
A4 | Hiro under mug(middle) |
A5 | Hiro under mug(only hat out) |
A6 | Grass mug |
A7 | Under grass mug |
A9 | Snow low |
AA-D2 | Free passage |
D3-D9 | Ride jump left |
DB | Ride bike |
DC-DF | Free passage |
E0 | It’s lined with Pokémon picture books |
E1 | It’s full of Pokemon book |
E2 | Pokémon magazines! |
E4 | The trash can is empty. |
E5 | The shelves are jammed with colourful Pokémon Goods |
E6-EA | Nothing |
EB | There's a ton of convenient item... |
EC | The shelves brin.... |
ED-FF | Free passage |
SECOND PART- 3D OBJECTS
In this parts we find 3d objects that are showed in the map. We find a sequence of 0x2f hex number in which we find all information of objects
Hex Value (decimal) | Explanation |
---|---|
0x00-0x01 | Model number |
0x05-0x08 | X coordinates |
0x0E-Ox10 | Y coordinates |
0x1E | Model widht |
0x22 | Model height |
0x25 | Model lenght |