Hello everyone,
I read that the translation team for NEW LOVE PLUS+ has problems with reinserting files back into one big archive file. I got curious because I knew there was an unpacker with source for the archive file (img.bin (~600mb)). I thought it can't be this hard to write a reinserter with the sourcecode of the unpacker but it looks like the unpacker "only" searches for PACK files in the archive and extracts them. So I have no information about how the files are accessed by the game.
It looks like there is some kind of header and a table in the img.bin but I could not make much sense out of it. Byteorder is littleendian.
Offsets:
0x800 = start of a table
0x10 uint32 = number of entries in the table
0x14 uint32 + 0x800 = offset to the end of the table (or start off a second file)
0x24 uint32 + 0x800 = offset to the end of the second table (or start off a third file)
The first real file (a PACK file) seems to start at 0x28000
Can someone please take a look at the (img.bin) and explain its structure if possible?
[3DS] NEW LOVE PLUS+ - img.bin
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: [3DS] NEW LOVE PLUS+ - img.bin
The truth is that there is no offset for the files and so scanning the "PACK" magic is the only way to get everything.
Luckily the other non-PACK files are just a few so who cares.
Script:
http://aluigi.org/bms/new_love_plus.bms
Luckily the other non-PACK files are just a few so who cares.
Script:
http://aluigi.org/bms/new_love_plus.bms
-
- Posts: 23
- Joined: Sat Aug 09, 2014 2:28 pm
Re: [3DS] NEW LOVE PLUS+ - img.bin
aluigi wrote:The truth is that there is no offset for the files and so scanning the "PACK" magic is the only way to get everything.
Luckily the other non-PACK files are just a few so who cares.
Script:
http://aluigi.org/bms/new_love_plus.bms
Thank you.
So there is no reference to where the PACK-files are located in the img.bin. Do I got this right?
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: [3DS] NEW LOVE PLUS+ - img.bin
Right, the only 32bit field available (I called it "SIZE" at line 32) was strange, because it was the real size for one of the non-pack files but didn't match the pack sizes.
-
- Posts: 23
- Joined: Sat Aug 09, 2014 2:28 pm
Re: [3DS] NEW LOVE PLUS+ - img.bin
I wonder how the game indexes the files then. Since I could not find any other file that looks like a filetable, I guess it must be in the code itself. I could not find anything tough...