-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.ksy
262 lines (246 loc) · 4.95 KB
/
map.ksy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
meta:
id: map
endian: le
imports:
- len_str
types:
graphic:
seq:
- id: unk
type: u4
- id: graphic_name
type: len_str
- id: graphic_direction
type: u1
- id: graphic_frame
type: u1
- id: graphic_opacity
type: u1
- id: graphic_render_mode
type: u1
cond:
enums:
type:
0: confirm_key
1: autorun
2: paralle_process
3: player_touch
4: event_touch
operator:
0: gt
8: gte
16: eq
24: lte
32: lt
40: ne
48: bit_and
types:
flag:
seq:
- id: flag
type: u1
instances:
operator:
value: flag >> 1
enum: operator
enable:
value: (flag & 1) != 0
seq:
- id: type
type: u1
enum: type
- id: flags
type: flag
repeat: expr
repeat-expr: 4
- id: vars
type: u4
repeat: expr
repeat-expr: 4
- id: values
type: u4
repeat: expr
repeat-expr: 4
move_route:
enums:
type:
0: dont_move
1: custom
2: random
3: toward_hero
types:
options:
seq:
- id: flag
type: u1
instances:
idle_animation:
value: (flag & 1) != 0
move_animation:
value: ((flag >> 1) & 1) != 0
fixed_direction:
value: ((flag >> 2) & 1) != 0
slip_through:
value: ((flag >> 3) & 1) != 0
above_hero:
value: ((flag >> 4) & 1) != 0
square_hitbox:
value: ((flag >> 5) & 1) != 0
place_half_step_up:
value: ((flag >> 6) & 1) != 0
custom_route_options:
seq:
- id: flag
type: u1
instances:
repeat_actions:
value: (flag & 1) != 0
skip_impossible_moves:
value: ((flag >> 1) & 1) != 0
wait_until_done:
value: ((flag >> 2) & 1) != 0
route:
seq:
- id: type
type: u1
- id: u4_arg_len
type: u1
- id: u4_arg
type: u4
repeat: expr
repeat-expr: u4_arg_len
- id: u1_arg_len
type: u1
- id: u1_arg
type: u1
repeat: expr
repeat-expr: u1_arg_len
seq:
- id: anim_speed
type: u1
- id: move_speed
type: u1
- id: move_freq
type: u1
- id: type
type: u1
enum: type
- id: options
type: options
- id: custom_route_options
type: custom_route_options
- id: route_len
type: u4
- id: routes
type: route
repeat: expr
repeat-expr: route_len
cmd:
seq:
- id: num_arg_len
type: u1
- id: num_arg
doc: 'first item: cmd type'
type: u4
repeat: expr
repeat-expr: num_arg_len
- id: indent
type: u1
- id: str_arg_len
type: u1
- id: str_arg
type: len_str
repeat: expr
repeat-expr: str_arg_len
- id: has_move_route
type: u1
valid:
any-of:
- 0
- 1
- id: move_route
type: move_route
if: has_move_route >= 1
page:
seq:
- id: check
type: u1
valid: 0x79
- id: graphic
type: graphic
- id: cond
type: cond
- id: move_route
type: move_route
- id: cmd_len
type: u4
- id: cmd
type: cmd
repeat: expr
repeat-expr: cmd_len
- id: unk_len
type: u4
- id: unk
size: unk_len
- id: check2
type: u1
valid: 0x7a
event:
seq:
- id: check1
type: u1
valid: 0x6f
- id: check2
type: u4
valid: 0x3039
- id: event_id
type: u4
- id: name
type: len_str
- id: x
type: u4
- id: y
type: u4
- id: page_len
type: u4
- id: unk_len
type: u4
- id: unk
size: unk_len
- id: pages
type: page
repeat: expr
repeat-expr: page_len
- id: check3
type: u1
valid: 0x70
seq:
- id: magic
contents: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'WOLFM', 0, 0, 0, 0, 0]
- id: len
type: u4
- id: check
type: u1
valid: 0x65
- id: unk
type: len_str
- id: tileset_id
type: u4
- id: width
type: u4
- id: height
type: u4
- id: event_size
type: u4
- id: map
doc: 'map[layer][w][h]'
type: u4
repeat: expr
repeat-expr: width*height*3
- id: events
type: event
repeat: expr
repeat-expr: event_size
- id: check3
type: u1
valid: 0x66