Map structure: Difference between revisions

From ProjectPokemon Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:


== '''Map Structure''' ==
== '''Map Structure''' ==
Line 17: Line 16:
Here's a table of movements hex byte
Here's a table of movements hex byte


00=Free passage
{| border="1" style="border: 1px solid #999; border-collapse: collapse;"
 
|- style="background: #ccc;" align="center"
02=Grass
! Hex Value (decimal)
 
! Movement type
03=High Grass
|- style="background: #eee;" align="center"
 
| 00
04-09=Free passage
| Free passage
 
|- style="background: #eee;" align="center"
10-12=Surfing
| 02
 
| Grass
13=Waterfall
|- style="background: #eee;" align="center"
 
| 03
14-15=Surfing
| High Grass
 
|- style="background: #eee;" align="center"
16=Go down 1
|04-09
 
| Free passage
17=Water on the foots?
|- style="background: #eee;" align="center"
 
|10-12
18=Free passage
| Surfing
 
|- style="background: #eee;" align="center"
19=Surfing
|13
 
| Waterfall
1A-1B=Free passage
|- style="background: #eee;" align="center"
 
|14-15
1C=Go down
| Surfing
 
|- style="background: #eee;" align="center"
1D-20=Free passage
|16
 
| Go down 1
21 =Foot on sand
|- style="background: #eee;" align="center"
 
|17
22=Surfing
| Water on the foots?
 
|- style="background: #eee;" align="center"
23-29=Free passage
|18
 
| Free passage
2A=Surfing
|- style="background: #eee;" align="center"
 
|19
2B-32=Free passage
| Surfing
 
|- style="background: #eee;" align="center"
33=Blocked
|1A-1B
 
| Free passage
34-35=Free passage
|- style="background: #eee;" align="center"
 
|1C
36-37=Blocked
| Go down
 
|- style="background: #eee;" align="center"
38-39=Free passage
|1D-20
 
| Free passage
3A=Jump up 1
|- style="background: #eee;" align="center"
 
|21
3B = Jump under 1
| Foot on sand
 
|- style="background: #eee;" align="center"
3C-3F=Free passage
|22  
 
| Surfing
40=Rotate right
|- style="background: #eee;" align="center"
 
|23-29
41=Rotate left
| Free passage
 
|- style="background: #eee;" align="center"
42=Rotate up
|2A
 
| Surfing
43=Rotate down
|- style="background: #eee;" align="center"
 
|2B-32
44-48=Free passage
| Free passage
 
|- style="background: #eee;" align="center"
49=Blocked
|33  
 
| Blocked
4A=Free passage
|- style="background: #eee;" align="center"
 
|34-35
4B=Rock Climb
| Free passage
 
|- style="background: #eee;" align="center"
4C-4F=Free passage
|36-37
 
| Blocked
50-53=Surfing
|- style="background: #eee;" align="center"
 
|38-39
54-5D=Free passage
| Free passage
 
|- style="background: #eee;" align="center"
5E=Stairs down
|3A
 
| Jump up 1
5F= Stairs up
|- style="background: #eee;" align="center"
 
|3B
60-63=Free passage
| Jump under 1
 
|- style="background: #eee;" align="center"
64=Go in without animation door
|3C-3F
 
| Free passage
65=Go out of building
|- style="background: #eee;" align="center"
 
|40
66=Free passage
| Rotate right
 
|- style="background: #eee;" align="center"
67=Jump and transport in building
|41
 
| Rotate left
68=Free passage
|- style="background: #eee;" align="center"
 
|42
69= Doors opening
| Rotate up
 
|- style="background: #eee;" align="center"
6A-6D=Free passage
|43
 
| Rotate down
6E=Go in without animation door
|- style="background: #eee;" align="center"
 
|44-48
6F-70=Free passage
| Free passage
 
|- style="background: #eee;" align="center"
71=Be on bike
|49
 
| Blocked
72=Free passage
|- style="background: #eee;" align="center"
 
|4A
73=Surfing
| Free passage
 
|- style="background: #eee;" align="center"
74-77=Free passage
|4B
 
| Rock Climb
78=Surfing
|- style="background: #eee;" align="center"
 
|4C-4F
79-7B=Free passage
| Free passage
 
|- style="background: #eee;" align="center"
7C=Surfing
|50-53
 
| Surfing
7D-82=Free passage
|- style="background: #eee;" align="center"
 
|54-5D
83 = Open pc
| Free passage
 
|- style="background: #eee;" align="center"
84=Free passage
|5E
 
| Stairs down
85 = Open map sinnoh
|- style="background: #eee;" align="center"
 
|5F
86 = Battle Watch(Tv program)
| Stairs up
 
|- style="background: #eee;" align="center"
87-A0=Free passage
|60-63
 
| Free passage
A1=Hiro under snow(Middle)
|- style="background: #eee;" align="center"
 
|64
A3=Hiro under snow(Only hat out)
| Go in without animation door
 
|- style="background: #eee;" align="center"
A4=Hiro under mug(middle)
|65  
 
| Go out of building
A5=Hiro under mug(only hat out)
|- style="background: #eee;" align="center"
 
|66
A6=Grass mug
| Free passage
 
|- style="background: #eee;" align="center"
A7=Under grass mug
|67  
 
| Jump and transport in building
A9=Snow low
|- style="background: #eee;" align="center"
 
|68
AA-D2=Free passage
| Free passage
 
|- style="background: #eee;" align="center"
D3-D9=Ride jump left
|69  
 
| Doors opening
DB=Ride bike
|- style="background: #eee;" align="center"
 
|6A-6D  
DC-DF=Free passage
| Free passage
 
|- style="background: #eee;" align="center"
E0 = It’s lined with Pokemon picture books  
|6E
 
| Go in without animation door
E1 = It’s full of Pokemon book
|- style="background: #eee;" align="center"
 
|6F-70
E2 = Pokemon magazines!  
| Free passage
 
|- style="background: #eee;" align="center"
E4 =The trash can is empty.
|71
 
| Be on bike
E5 =The shelves are jammed with colourful Pokemon Goods
|- style="background: #eee;" align="center"
 
|72
E6-EA=Nothing
| Free passage
 
|- style="background: #eee;" align="center"
EB=There's a ton of convenient item...
|73
 
| Surfing
EC=The shelves brin....
|- style="background: #eee;" align="center"
 
|74-77
ED-FF=Free passage
| Free passage
|- style="background: #eee;" align="center"
|78
| Surfing
|- style="background: #eee;" align="center"
|79-7B
| Free passage
|- style="background: #eee;" align="center"
|7C
| Surfing
|- style="background: #eee;" align="center"
|7D-82
| Free passage
|- style="background: #eee;" align="center"
|83
| Open pc
|- style="background: #eee;" align="center"
|84
| Free passage
|- style="background: #eee;" align="center"
|85
| Open map sinnoh
|- style="background: #eee;" align="center"
|86
| Battle Watch(Tv program)
|- style="background: #eee;" align="center"
|87-A0
| Free passage
|- style="background: #eee;" align="center"
|A1
| Hiro under snow(Middle)
|- style="background: #eee;" align="center"
|A3
| Hiro under snow(Only hat out)
|- style="background: #eee;" align="center"
|A4
| Hiro under mug(middle)
|- style="background: #eee;" align="center"
|A5
| Hiro under mug(only hat out)
|- style="background: #eee;" align="center"
|A6
| Grass mug
|- style="background: #eee;" align="center"
|A7
| Under grass mug
|- style="background: #eee;" align="center"
|A9
| Snow low
|- style="background: #eee;" align="center"
|AA-D2
| Free passage
|- style="background: #eee;" align="center"
|D3-D9
| Ride jump left
|- style="background: #eee;" align="center"
|DB
| Ride bike
|- style="background: #eee;" align="center"
|DC-DF
| Free passage
|- style="background: #eee;" align="center"
|E0
| It’s lined with Pokemon picture books  
|- style="background: #eee;" align="center"
|E1
| It’s full of Pokemon book
|- style="background: #eee;" align="center"
|E2
| Pokemon magazines!  
|- style="background: #eee;" align="center"
|E4
| The trash can is empty.
|- style="background: #eee;" align="center"
|E5  
|The shelves are jammed with colourful Pokemon Goods
|- style="background: #eee;" align="center"
|E6-EA
| Nothing
|- style="background: #eee;" align="center"
|EB
| There's a ton of convenient item...
|- style="background: #eee;" align="center"
|EC
| The shelves brin....
|- style="background: #eee;" align="center"
|ED-FF
| Free passage
|- style="background: #eee;" align="center"

Revision as of 13:47, 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 rapresents movement permission. It's lenght 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 Pokemon picture books
E1 It’s full of Pokemon book
E2 Pokemon magazines!
E4 The trash can is empty.
E5 The shelves are jammed with colourful Pokemon Goods
E6-EA Nothing
EB There's a ton of convenient item...
EC The shelves brin....
ED-FF Free passage