Page 1 of 1

Luminous Arc 1 files

Posted: Fri Nov 13, 2009 5:13 am
by floral
The contents of this post was deleted because of possible forum rules violation.

Re: Luminous Arc 1 files

Posted: Fri Nov 13, 2009 1:19 pm
by chrrox
i looked at the bin file for a little bit it contains a name table in the beggining with a matching offset table.
Some of the files might be unicode or sometype of compression like lzss.
its a very wierd offset table but the firstfile starts at 0x1f80
I think the table goes something like file start offset file end offset
a lot of the files begin with 10 00 06 00


the .iear looks like a model format.

Re: Luminous Arc 1 files

Posted: Sat Nov 14, 2009 7:27 pm
by floral
It is a japanese game, sorry i should have mentioned that. shift jis encode will allow you to see the japanese characters. Can you get at the files? extract them? it sounds like you figured out some of what they are.

Re: Luminous Arc 1 files

Posted: Sun Nov 15, 2009 1:17 am
by GameZelda
A small script for .BIN files.

Code: Select all

# script for QuickBMS http://aluigi.org/papers.htm#quickbms

# Main Block
Get OFF_FILENAMES_BLOCK long
Get SIZE_FILENAMES_BLOCK long
Get OFF_OFFSETS_BLOCK long
Get SIZE_OFFSETS_BLOCK long

Set NUM_FILES SIZE_OFFSETS_BLOCK
Math NUM_FILES /= 8

# Filenames block
Math OFF_FILENAMES_BLOCK += 0x08
GoTo OFF_FILENAMES_BLOCK
Math OFF_FILENAMES_BLOCK -= 0x08

Get OFF_FILENAMES_BLOCK_DATA long
Math OFF_FILENAMES_BLOCK_DATA += OFF_FILENAMES_BLOCK

# Offsets block & extract files
Set OFF_NEXT_FILENAME OFF_FILENAMES_BLOCK_DATA
Set OFF_NEXT_OFFSET OFF_OFFSETS_BLOCK

For I = 0 < NUM_FILES
	# Get the file offset
	GoTo OFF_NEXT_OFFSET
	Get START_OFFSET long
	Get END_OFFSET long
	SavePos OFF_NEXT_OFFSET

	# Calculate the size
	Set SIZE END_OFFSET
	Math SIZE -= START_OFFSET

	# Get the file name
	GoTo OFF_NEXT_FILENAME
	Do
		Get FILENAME_LENGTH byte
	While FILENAME_LENGTH == 0 # Zero = End of a folder. Not handled, ATM.
	
	GetDString FILENAME FILENAME_LENGTH
	SavePos OFF_NEXT_FILENAME

	# Extract the file
	Log FILENAME START_OFFSET SIZE
Next I
All files have 5 bytes + LZSS compressed data block.

Re: Luminous Arc 1 files

Posted: Sun Nov 15, 2009 11:53 am
by aluigi
if you refer to the files extracted from the BIN archive, no they don't use lzss and they look even not compressed at all

Re: Luminous Arc 1 files

Posted: Sun Nov 15, 2009 2:35 pm
by GameZelda
aluigi wrote:if you refer to the files extracted from the BIN archive, no they don't use lzss and they look even not compressed at all
They are compressed with LZ77 (Wii). I always confuse LZSS and LZ77 :roll:
http://wiibrew.org/wiki/LZ77

BTW, there are just 4 bytes before the LZ77 block, the 5th byte is the first LZ77 flags.

Re: Luminous Arc 1 files

Posted: Sun Nov 15, 2009 4:51 pm
by aluigi
are you aware of other compression algorithms widely used in consoles like this one?

Re: Luminous Arc 1 files

Posted: Sun Nov 15, 2009 5:09 pm
by GameZelda
NDS games also use the same LZ77 implementation frequently. Other than that, no.

Re: Luminous Arc 1 files

Posted: Sun Nov 15, 2009 5:18 pm
by aluigi
good, it will be added in the next version of quickbms