Changeset 241 for oup/current/Global
- Timestamp:
- Jul 18, 2007, 12:27:16 AM (17 years ago)
- Location:
- oup/current/Global
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Global/DatLinks.pas
r215 r241 359 359 const 360 360 types: array[0..0] of String[4] = 361 (' *');361 ('Impt'); 362 362 var 363 363 i: Integer; … … 426 426 function M3GM(Connection: TDataAccess; FileID: Integer): TDatLinkList; 427 427 const 428 types: array[0.. 7] of String[4] =429 ('PNTA', 'VCRA', 'VCRA', 'TXCA', 'IDXA', 'IDXA', 'TXMP' , '*');428 types: array[0..6] of String[4] = 429 ('PNTA', 'VCRA', 'VCRA', 'TXCA', 'IDXA', 'IDXA', 'TXMP'); 430 430 var 431 431 i: Integer; 432 432 begin 433 433 SetLength(Result, 8); 434 for i := 0 to 7do434 for i := 0 to 6 do 435 435 begin 436 436 Result[i].SrcOffset := $0C + i*4; … … 444 444 const 445 445 types: array[0..0] of String[4] = 446 (' *');446 ('Mtrl'); 447 447 var 448 448 i: Integer; … … 587 587 Result[0].SrcOffset := $8; 588 588 Result[0].DestID := -1; 589 Result[0].PosDestExts := ' *';589 Result[0].PosDestExts := 'ONCV'; 590 590 end; 591 591 … … 730 730 Result[0].SrcOffset := $50; 731 731 Result[0].DestID := -1; 732 Result[0].PosDestExts := ' *';732 Result[0].PosDestExts := 'TXMP'; 733 733 end; 734 734 … … 748 748 Result[i].SrcOffset := $20 + i*8 + 4; 749 749 Result[i].DestID := -1; 750 Result[i].PosDestExts := ' *';750 Result[i].PosDestExts := 'PSpc'; 751 751 end; 752 752 end; … … 1104 1104 Result[0].SrcOffset := $94; 1105 1105 Result[0].DestID := -1; 1106 Result[0].PosDestExts := ' *';1106 Result[0].PosDestExts := 'TXAN'; 1107 1107 Result[1].SrcOffset := $98; 1108 1108 Result[1].DestID := -1; … … 1134 1134 Result[i].SrcOffset := $20 + i*8 + 4; 1135 1135 Result[i].DestID := -1; 1136 Result[i].PosDestExts := ' *';1136 Result[i].PosDestExts := 'PSpc'; 1137 1137 end; 1138 1138 end; -
oup/current/Global/Data.pas
r206 r241 5 5 const 6 6 Version: String = 'v0.35a'; 7 DBVersion: String = '0. 4';7 DBVersion: String = '0.5'; 8 8 CrLf: String[2] = #13 + #10; 9 9 -
oup/current/Global/RawList.pas
r226 r241 44 44 for i := 0 to links - 1 do 45 45 begin 46 Result[i].Name := '<TBD>';46 Result[i].Name := '<TBD>'; 47 47 Result[i].SrcOffset := $20 + i * 4; 48 48 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20 + i * 4, 4, @link); … … 50 50 Result[i].RawSize := 32; 51 51 Result[i].LocSep := False; 52 Result[i].RawType := 'AGDB' + IntToStr(i mod 2); 52 53 end; 53 54 end; … … 66 67 for i := 0 to links - 1 do 67 68 begin 68 Result[i].Name := '<TBD>';69 Result[i].Name := '<TBD>'; 69 70 Result[i].SrcOffset := $20 + i * $74 + $24; 70 71 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $20 + i * $74 + $24, 4, @link); … … 73 74 Result[i].RawSize := link; 74 75 Result[i].LocSep := False; 76 Result[i].RawType := 'AKVA'; 75 77 end; 76 78 end; … … 87 89 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $08, 4, @datasize); 88 90 SetLength(Result, 1); 89 Result[0].Name := 'BinaryData';91 Result[0].Name := 'Binary data'; 90 92 Result[0].SrcOffset := $0C; 91 93 Result[0].RawAddr := link; 92 94 Result[0].RawSize := datasize; 93 95 Result[0].LocSep := not (ConManager.Connection[ConnectionID].DataOS = DOS_WIN); 96 Result[0].RawType := 'BINA'; 94 97 end; 95 98 … … 105 108 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $0C, 4, @link); 106 109 SetLength(Result, 1); 107 Result[0].Name := 'SoundBinaryData';110 Result[0].Name := 'Sound Binary Data'; 108 111 Result[0].SrcOffset := $0C; 109 112 Result[0].RawAddr := link; 110 113 Result[0].RawSize := datasize; 111 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'; 112 116 end; 113 117 … … 133 137 Result[0].SrcOffset := $44; 134 138 end; 135 Result[0].Name := 'SoundData';139 Result[0].Name := 'Sound data'; 136 140 Result[0].RawAddr := link; 137 141 Result[0].RawSize := datasize; 138 142 Result[0].LocSep := False; 143 Result[0].RawType := 'SNDD'; 139 144 end; 140 145 … … 181 186 Result[0].RawSize := Data.Position; 182 187 Result[0].LocSep := False; 188 Result[0].RawType := 'SUBT'; 183 189 end; 184 190 end; … … 208 214 Result[0].RawAddr := link; 209 215 Result[0].RawSize := frames * 4; 216 Result[0].RawType := 'TRAM0'; 210 217 {x-z-pos} 211 218 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $10, 4, @link); … … 214 221 Result[1].RawAddr := link; 215 222 Result[1].RawSize := frames * 8; 223 Result[1].RawType := 'TRAM1'; 216 224 {attacks} 217 225 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $182, 1, @tempb); … … 221 229 Result[2].RawAddr := link; 222 230 Result[2].RawSize := tempb * 32; 231 Result[2].RawType := 'TRAM2'; 223 232 {damage} 224 233 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $183, 1, @tempb); … … 228 237 Result[3].RawAddr := link; 229 238 Result[3].RawSize := tempb * 8; 239 Result[3].RawType := 'TRAM3'; 230 240 {motionblur} 231 241 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $184, 1, @tempb); … … 235 245 Result[4].RawAddr := link; 236 246 Result[4].RawSize := tempb * 12; 247 Result[4].RawType := 'TRAM4'; 237 248 {shortcut} 238 249 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $185, 1, @tempb); … … 242 253 Result[5].RawAddr := link; 243 254 Result[5].RawSize := tempb * 8; 255 Result[5].RawType := 'TRAM5'; 244 256 {throw} 245 257 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $24, 4, @link); … … 248 260 Result[6].RawAddr := link; 249 261 Result[6].RawSize := 24; 262 Result[6].RawType := 'TRAM6'; 250 263 {footstep} 251 264 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $186, 1, @tempb); … … 255 268 Result[7].RawAddr := link; 256 269 Result[7].RawSize := tempb * 4; 270 Result[7].RawType := 'TRAM7'; 257 271 {particle} 258 272 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $187, 1, @tempb); … … 262 276 Result[8].RawAddr := link; 263 277 Result[8].RawSize := tempb * 24; 278 Result[8].RawType := 'TRAM8'; 264 279 {position} 265 280 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $30, 4, @link); … … 268 283 Result[9].RawAddr := link; 269 284 Result[9].RawSize := frames * 8; 285 Result[9].RawType := 'TRAM9'; 270 286 {sound} 271 287 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $154, 2, @tempw); … … 275 291 Result[11].RawAddr := link; 276 292 Result[11].RawSize := tempw * 34; 293 Result[11].RawType := 'TRAM11'; 277 294 {extent} 278 295 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $138, 4, @templ); … … 282 299 Result[12].RawAddr := link; 283 300 Result[12].RawSize := templ * 12; 301 Result[12].RawType := 'TRAM12'; 284 302 285 303 ConManager.Connection[ConnectionID].LoadDatFilePart(fileid, $34, 4, @link); … … 312 330 Result[10].SrcOffset := $34; 313 331 Result[10].RawAddr := link; 332 Result[10].RawType := 'TRAM10'; 314 333 end; 315 334 … … 373 392 Result[0].RawSize := datasize; 374 393 Result[0].LocSep := not (ConManager.Connection[ConnectionID].DataOS = DOS_WIN); 394 Result[0].RawType := 'TXMP'; 375 395 end; 376 396 … … 390 410 Result.RawAddr := -1; 391 411 Result.RawSize := -1; 412 Result.RawType := ''; 392 413 if Length(RawList) > 0 then 393 414 begin … … 402 423 Result.RawSize := RawList[i].RawSize; 403 424 Result.LocSep := RawList[i].LocSep; 425 Result.RawType := RawList[i].RawType; 404 426 Break; 405 427 end; -
oup/current/Global/TypeDefs.pas
r222 r241 82 82 RawSize: Integer; 83 83 LocSep: Boolean; 84 RawType: String; 84 85 end; 85 86 TRawDataList = array of TRawDataInfo;
Note:
See TracChangeset
for help on using the changeset viewer.