43 |
|
SetLength(Result, links); |
44 |
|
for i := 0 to links - 1 do |
45 |
|
begin |
46 |
< |
Result[i].Name := '<TBD>'; |
46 |
> |
Result[i].Name := '<TBD>'; |
47 |
|
Result[i].SrcOffset := $20 + i * 4; |
48 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20 + i * 4, 4, @link); |
49 |
|
Result[i].RawAddr := link; |
50 |
|
Result[i].RawSize := 32; |
51 |
|
Result[i].LocSep := False; |
52 |
+ |
Result[i].RawType := 'AGDB' + IntToStr(i mod 2); |
53 |
|
end; |
54 |
|
end; |
55 |
|
|
66 |
|
SetLength(Result, links); |
67 |
|
for i := 0 to links - 1 do |
68 |
|
begin |
69 |
< |
Result[i].Name := '<TBD>'; |
69 |
> |
Result[i].Name := '<TBD>'; |
70 |
|
Result[i].SrcOffset := $20 + i * $74 + $24; |
71 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20 + i * $74 + $24, 4, @link); |
72 |
|
Result[i].RawAddr := link; |
73 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20 + i * $74 + $28, 4, @link); |
74 |
|
Result[i].RawSize := link; |
75 |
|
Result[i].LocSep := False; |
76 |
+ |
Result[i].RawType := 'AKVA'; |
77 |
|
end; |
78 |
|
end; |
79 |
|
|
88 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $0C, 4, @link); |
89 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $08, 4, @datasize); |
90 |
|
SetLength(Result, 1); |
91 |
< |
Result[0].Name := 'BinaryData'; |
91 |
> |
Result[0].Name := 'Binary data'; |
92 |
|
Result[0].SrcOffset := $0C; |
93 |
|
Result[0].RawAddr := link; |
94 |
|
Result[0].RawSize := datasize; |
95 |
|
Result[0].LocSep := not (ConManager.Connection[ConnectionID].DataOS = DOS_WIN); |
96 |
+ |
Result[0].RawType := 'BINA'; |
97 |
|
end; |
98 |
|
|
99 |
|
|
107 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $08, 4, @datasize); |
108 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $0C, 4, @link); |
109 |
|
SetLength(Result, 1); |
110 |
< |
Result[0].Name := 'SoundBinaryData'; |
110 |
> |
Result[0].Name := 'Sound Binary Data'; |
111 |
|
Result[0].SrcOffset := $0C; |
112 |
|
Result[0].RawAddr := link; |
113 |
|
Result[0].RawSize := datasize; |
114 |
< |
Result[0].LocSep := not (ConManager.Connection[ConnectionID].DataOS = DOS_WIN); |
114 |
> |
Result[0].LocSep := not (ConManager.Connection[ConnectionID].DataOS = DOS_WIN); |
115 |
> |
Result[0].RawType := 'OSBD'; |
116 |
|
end; |
117 |
|
|
118 |
|
|
136 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $44, 4, @link); |
137 |
|
Result[0].SrcOffset := $44; |
138 |
|
end; |
139 |
< |
Result[0].Name := 'SoundData'; |
139 |
> |
Result[0].Name := 'Sound data'; |
140 |
|
Result[0].RawAddr := link; |
141 |
|
Result[0].RawSize := datasize; |
142 |
|
Result[0].LocSep := False; |
143 |
+ |
Result[0].RawType := 'SNDD'; |
144 |
|
end; |
145 |
|
|
146 |
|
|
185 |
|
Result[0].RawAddr := baselink; |
186 |
|
Result[0].RawSize := Data.Position; |
187 |
|
Result[0].LocSep := False; |
188 |
+ |
Result[0].RawType := 'SUBT'; |
189 |
|
end; |
190 |
|
end; |
191 |
|
end; |
213 |
|
Result[0].SrcOffset := $0C; |
214 |
|
Result[0].RawAddr := link; |
215 |
|
Result[0].RawSize := frames * 4; |
216 |
+ |
Result[0].RawType := 'TRAM0'; |
217 |
|
{x-z-pos} |
218 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $10, 4, @link); |
219 |
|
Result[1].Name := 'x-z-pos'; |
220 |
|
Result[1].SrcOffset := $10; |
221 |
|
Result[1].RawAddr := link; |
222 |
|
Result[1].RawSize := frames * 8; |
223 |
+ |
Result[1].RawType := 'TRAM1'; |
224 |
|
{attacks} |
225 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $182, 1, @tempb); |
226 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $14, 4, @link); |
228 |
|
Result[2].SrcOffset := $14; |
229 |
|
Result[2].RawAddr := link; |
230 |
|
Result[2].RawSize := tempb * 32; |
231 |
+ |
Result[2].RawType := 'TRAM2'; |
232 |
|
{damage} |
233 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $183, 1, @tempb); |
234 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $18, 4, @link); |
236 |
|
Result[3].SrcOffset := $18; |
237 |
|
Result[3].RawAddr := link; |
238 |
|
Result[3].RawSize := tempb * 8; |
239 |
+ |
Result[3].RawType := 'TRAM3'; |
240 |
|
{motionblur} |
241 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $184, 1, @tempb); |
242 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $1C, 4, @link); |
244 |
|
Result[4].SrcOffset := $1C; |
245 |
|
Result[4].RawAddr := link; |
246 |
|
Result[4].RawSize := tempb * 12; |
247 |
+ |
Result[4].RawType := 'TRAM4'; |
248 |
|
{shortcut} |
249 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $185, 1, @tempb); |
250 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20, 4, @link); |
252 |
|
Result[5].SrcOffset := $20; |
253 |
|
Result[5].RawAddr := link; |
254 |
|
Result[5].RawSize := tempb * 8; |
255 |
+ |
Result[5].RawType := 'TRAM5'; |
256 |
|
{throw} |
257 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $24, 4, @link); |
258 |
|
Result[6].Name := 'Throw'; |
259 |
|
Result[6].SrcOffset := $24; |
260 |
|
Result[6].RawAddr := link; |
261 |
|
Result[6].RawSize := 24; |
262 |
+ |
Result[6].RawType := 'TRAM6'; |
263 |
|
{footstep} |
264 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $186, 1, @tempb); |
265 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $28, 4, @link); |
267 |
|
Result[7].SrcOffset := $28; |
268 |
|
Result[7].RawAddr := link; |
269 |
|
Result[7].RawSize := tempb * 4; |
270 |
+ |
Result[7].RawType := 'TRAM7'; |
271 |
|
{particle} |
272 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $187, 1, @tempb); |
273 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $2C, 4, @link); |
275 |
|
Result[8].SrcOffset := $2C; |
276 |
|
Result[8].RawAddr := link; |
277 |
|
Result[8].RawSize := tempb * 24; |
278 |
+ |
Result[8].RawType := 'TRAM8'; |
279 |
|
{position} |
280 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $30, 4, @link); |
281 |
|
Result[9].Name := 'Position'; |
282 |
|
Result[9].SrcOffset := $30; |
283 |
|
Result[9].RawAddr := link; |
284 |
|
Result[9].RawSize := frames * 8; |
285 |
+ |
Result[9].RawType := 'TRAM9'; |
286 |
|
{sound} |
287 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $154, 2, @tempw); |
288 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $38, 4, @link); |
290 |
|
Result[11].SrcOffset := $38; |
291 |
|
Result[11].RawAddr := link; |
292 |
|
Result[11].RawSize := tempw * 34; |
293 |
+ |
Result[11].RawType := 'TRAM11'; |
294 |
|
{extent} |
295 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $138, 4, @templ); |
296 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $13C, 4, @link); |
298 |
|
Result[12].SrcOffset := $13C; |
299 |
|
Result[12].RawAddr := link; |
300 |
|
Result[12].RawSize := templ * 12; |
301 |
+ |
Result[12].RawType := 'TRAM12'; |
302 |
|
|
303 |
|
ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $34, 4, @link); |
304 |
|
if link > 0 then |
329 |
|
Result[10].Name := 'BodyParts Animation'; |
330 |
|
Result[10].SrcOffset := $34; |
331 |
|
Result[10].RawAddr := link; |
332 |
+ |
Result[10].RawType := 'TRAM10'; |
333 |
|
end; |
334 |
|
|
335 |
|
|
391 |
|
Result[0].Name := 'ImageData'; |
392 |
|
Result[0].RawSize := datasize; |
393 |
|
Result[0].LocSep := not (ConManager.Connection[ConnectionID].DataOS = DOS_WIN); |
394 |
+ |
Result[0].RawType := 'TXMP'; |
395 |
|
end; |
396 |
|
|
397 |
|
|
409 |
|
Result.SrcOffset := -1; |
410 |
|
Result.RawAddr := -1; |
411 |
|
Result.RawSize := -1; |
412 |
+ |
Result.RawType := ''; |
413 |
|
if Length(RawList) > 0 then |
414 |
|
begin |
415 |
|
for i := 0 to High(RawList) do |
422 |
|
Result.RawAddr := RawList[i].RawAddr; |
423 |
|
Result.RawSize := RawList[i].RawSize; |
424 |
|
Result.LocSep := RawList[i].LocSep; |
425 |
+ |
Result.RawType := RawList[i].RawType; |
426 |
|
Break; |
427 |
|
end; |
428 |
|
end; |