The rules have been updated, read them now: Rules!

Repacking/Rebuilding .bin/.idx files? (Dynasty Warriors 8 Empires PC)

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
User avatar
rosalba
ultra-n00b
Posts: 6
Joined: Fri Apr 24, 2020 1:21 am
Has thanked: 3 times

Repacking/Rebuilding .bin/.idx files? (Dynasty Warriors 8 Empires PC)

Post by rosalba » Fri Mar 26, 2021 1:56 pm

I've done some research around the internet and found that Koei Tecmo's games share similar containers (.bin paired with an .idx file), at least as I've seen with Dynasty Warriors games, AOT, Hyrule Warriors, and Dragon Quest.

There are several bms scripts that can extract the many versions of Koei's .bin files, but I'm wondering if there's a way to repack/rebuild the .bin file? Several topics across several forums seem to imply that it's possible for other Koei games, but unfortunately not for Dynasty Warriors. I've seen a tutorial that allows for extracting and rebuilding Hyrule Warriors' .bin file, and tool (OPPW3_ResWork/Unpacker) that allows the same thing.

OPPW3_ResWork runs into a "Out of Memory" error when I use it for DW8E, though. And the tutorial for HWL doesn't work with DW8E for obvious reasons.

So, while it is indeed possible to repack the .bin/.idx file, is there a way to do the same for DW8E? I want to try and mod the game, though this idea is relatively rare in DW, aside from the re-color of the models in DW8XL, changing normal running speeds to god-like zooms (rather entertaining), and some model swaps.

Any help will be appreciated!

User avatar
ikskoks
Moderator
Posts: 813
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 473 times
Been thanked: 216 times
Contact:

Re: Repacking/Rebuilding .bin/.idx files? (Dynasty Warriors 8 Empires PC)

Post by ikskoks » Fri Mar 26, 2021 2:37 pm

Please upload some BIN/IDX samples.

User avatar
rosalba
ultra-n00b
Posts: 6
Joined: Fri Apr 24, 2020 1:21 am
Has thanked: 3 times

Re: Repacking/Rebuilding .bin/.idx files? (Dynasty Warriors 8 Empires PC)

Post by rosalba » Fri Mar 26, 2021 5:20 pm

ikskoks wrote:
Fri Mar 26, 2021 2:37 pm
Please upload some BIN/IDX samples.
Here's the .idx/.bin files: https://drive.google.com/file/d/12bxcv7 ... sp=sharing
The game only has one pair of .idx and .bin files, so the above sample file is 7GB big (in comparison to some KT games that have linkdata_a.bin, linkdata_b.bin, etc. or subdivided by parts).

However, there's a folder named "RES" in the installation folder filled with similar .bin files minus the .idx file, with sizes ranging from 1KB to 118MB. Should I also upload a sample of one of those files?

User avatar
ikskoks
Moderator
Posts: 813
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 473 times
Been thanked: 216 times
Contact:

Re: Repacking/Rebuilding .bin/.idx files? (Dynasty Warriors 8 Empires PC)

Post by ikskoks » Sun Mar 28, 2021 10:44 pm

I have checked your samples and here are the results
http://wiki.xentax.com/index.php/Dynast ... es_BIN_IDX

I have also created a tool to extract data
https://github.com/bartlomiejduda/Tools ... DX_Tool.py


As for repacking, it could be difficult, becasue as I saw some files are using custom ZLIB compression. I've tried to use offzip on them, but it is not working properly. Other files could be probably packed with new quickbms script or custom tool, because structure of the archive isn't that complicated.

I can also tell you that these BIN/IDX files are different that the ones from other Koei Tecmo/Arc System Works games like for example Hokuto No Ken which I had checked earlier this month http://wiki.xentax.com/index.php/Hokuto_no_Ken_BIN_IDX


So to sum this up - more research needs to be done here, but I think that packing of some files is possible now.

User avatar
rosalba
ultra-n00b
Posts: 6
Joined: Fri Apr 24, 2020 1:21 am
Has thanked: 3 times

Re: Repacking/Rebuilding .bin/.idx files? (Dynasty Warriors 8 Empires PC)

Post by rosalba » Mon Mar 29, 2021 10:19 am

ikskoks wrote:
Sun Mar 28, 2021 10:44 pm
I have checked your samples and here are the results
http://wiki.xentax.com/index.php/Dynast ... es_BIN_IDX

I have also created a tool to extract data
https://github.com/bartlomiejduda/Tools ... DX_Tool.py


As for repacking, it could be difficult, becasue as I saw some files are using custom ZLIB compression. I've tried to use offzip on them, but it is not working properly. Other files could be probably packed with new quickbms script or custom tool, because structure of the archive isn't that complicated.

I can also tell you that these BIN/IDX files are different that the ones from other Koei Tecmo/Arc System Works games like for example Hokuto No Ken which I had checked earlier this month http://wiki.xentax.com/index.php/Hokuto_no_Ken_BIN_IDX


So to sum this up - more research needs to be done here, but I think that packing of some files is possible now.
Oh lord thank you so much for looking into the files and providing a way to extract its contents! It might take a while to be able to rebuild this particular data compression, but this is a good step to learning more about this kind of stuff.

I'm still a beginner when it comes to things like this, but I hope to learn as much as I could :D
Thank you again! I hope there'll be more progress in the future on this.

Post Reply