READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

[LB DAT] A simple file but I can't find size & zsize values.

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
albert1905
veteran
Posts: 93
Joined: Wed May 09, 2012 1:13 pm
Has thanked: 11 times
Been thanked: 3 times

[LB DAT] A simple file but I can't find size & zsize values.

Post by albert1905 » Tue Apr 29, 2014 4:50 pm

Hi, guys. I have some problems that I can't find a SIZE and ZSIZE values.
K-33.png

Code: Select all

idstring "LB DAT"
get unknown1 short => I mean 1A 00
get unknown2 short => I mean 64 00 00 00
get null long
for i = 0 < files
get offset long
next i
This file contains 54 files and there are 55 offset values. The end of file offset is 2D AE 17 00. What's wrong with my bms script..?

*All of the files contain LB DAT and 1A 00. But unknown2 is different from files.
ex) 00 02 00 00 or 58 02 00 00 or 00 04 00 00
You do not have the required permissions to view the files attached to this post.

deepshit
advanced
Posts: 76
Joined: Tue Jan 31, 2012 9:43 pm
Has thanked: 41 times
Been thanked: 27 times

Re: [LB DAT] A simple file but I can't find size & zsize val

Post by deepshit » Tue Apr 29, 2014 9:05 pm

There's no file sample but I think unknown 2 is headerSize.
size and zsize could be first two ints of start of each file and I think the first int should be 'and' (&) with 0xFFFFFF.

albert1905
veteran
Posts: 93
Joined: Wed May 09, 2012 1:13 pm
Has thanked: 11 times
Been thanked: 3 times

Re: [LB DAT] A simple file but I can't find size & zsize val

Post by albert1905 » Tue Apr 29, 2014 11:23 pm

deepshit wrote:There's no file sample but I think unknown 2 is headerSize.
size and zsize could be first two ints of start of each file and I think the first int should be 'and' (&) with 0xFFFFFF.
Ok. Here are sample files.
https://www.mediafire.com/?1xtlq0jen96t0gm

albert1905
veteran
Posts: 93
Joined: Wed May 09, 2012 1:13 pm
Has thanked: 11 times
Been thanked: 3 times

Re: [LB DAT] A simple file but I can't find size & zsize val

Post by albert1905 » Thu May 01, 2014 10:42 am

deepshit wrote:There's no file sample but I think unknown 2 is headerSize.
size and zsize could be first two ints of start of each file and I think the first int should be 'and' (&) with 0xFFFFFF.
You mean like this..? But as you know it doesn't work.

Code: Select all

get SIZE long
get ZSIZE long
get HEADERS long
get null long

for i = 0 < files
get offset long
log offset ZSIZE SIZE 0xFFFFFF
next i
*Additional information for example scenario.dat

scenario.dat
1st Offset 14 08 00 00
2nd Offset 50 44 00 00 => 4450-0814=3C3C (packed size) => Actual size A130 (unpacked size) 001.dat
3rd Offset A0 61 00 00 => 61A0-4450=1D50 (packed size) => Actual size 429B (unpacked size) 002.dat
4rd Offset 11 A0 00 00 => A011-61A0=3E71 (packed size) => Actual size 8BD7 (unpacked size) 003.dat

Post Reply