ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Dec 11, 2017 7:41 am

All times are UTC




Post new topic  Reply to topic  [ 36 posts ]  Go to page 1 2 Next
Author Message
 Post subject: Disney Infinity 3.0
PostPosted: Thu Oct 29, 2015 11:23 pm 

Joined: Sun May 31, 2015 2:23 am
Posts: 251
Well this game was just released for the PC and I was excited to have a look at the filesystem and try for models and textures...boy was I surprised...and disappointed. It's nothing like the first two, and there's no real way for me to figure out just what is what, and how to extract it. Folders upon folders of files without extensions. I was hoping someone could shed some light on this situation for me, so I can get the models of Grievous, Ultron...and maybe Vader and Sidious if he's in it...
Here's one folder with many folders within.
https://www.dropbox.com/s/b8rhjt0lgnf10cs/3f594f4f.zip?dl=0


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Sat Oct 31, 2015 8:54 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7221
Here we go :D
http://aluigi.org/bms/disney_infinity.bms

From the notes in the script:
Quote:
# Notes:
# Many files from the ZIP archives (PK\xff\xff -> PK\x03\x04) can't be
# decompressed correctly. This limitation may be fixed later with a new
# verison of the script. All the other files are perfect.
#
# The kb2 files are Bink videos.


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Sat Oct 31, 2015 10:52 pm 

Joined: Sun May 31, 2015 2:23 am
Posts: 251
Is there any way we can get it to ignore those 'broken' files when doing a mass extraction?


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Sat Oct 31, 2015 11:15 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7221
Unfortunately I found no way.
I guess it's something related to what parts of the archive can be decrypted or not because many dds are partially valid like 9653cf49\assertscreen_0.tbuf.
It looks like it needs more work.

Anyway the other files and archives (like DBNK and bink videos) are all ok so I suspect that it's something specific of these PK archives.

In the meantime I have updated the script for removing the usage of arrays when handling the PK archives for being faster.


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Sun Nov 01, 2015 12:39 am 

Joined: Sun Aug 30, 2015 12:51 pm
Posts: 44
Luigi, could you please make a separate BMS script for just decryption/encryption of ZIP files?

Thanks in advance.


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Sun Nov 01, 2015 10:15 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7221
That's not possible because it's not an unique normal ZIP archive, it's like a sequence of multiple 1-file only ZIP archives.

Technically:
read 8 bytes: PK ff ff + FILES
read 8 * FILES
(reset encryption)
go to each offset and read 0x1e (PK 03 04), name and data.


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Sun Nov 01, 2015 10:49 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7221
I did it :D
Script 0.2
http://aluigi.org/bms/disney_infinity.bms


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Sun Nov 01, 2015 10:58 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7221
Ah in case you ask, yes the files of 0 bytes are really 0 bytes (method 8, comp_size 2, uncomp_size 0).
You should launch quickbms with the -D option selecting the whole folder for extracting ALL the archives.
Over 12 Gb of compressed archives is really huge.


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Sun Nov 01, 2015 11:16 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7221
If someone is interested to know where the AES key comes from:
Code:
    unsigned char   key_original[16] = "\xEA\x94\x1B\xF9\x99\x01\xA5\x63\x51\xBE\xB7\x68\x88\x14\x16\x04",
                    key[16];
    int     i, x = 0;
    for(i = -5; i < 0x6b; i += 7) {
        key[x++] = key_original[i & 0xf];
    }


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Mon Nov 02, 2015 12:24 am 

Joined: Sun Jan 25, 2015 4:15 pm
Posts: 26
the script is powerful! it works perfectly!! Thanks aluigi!!!
using the Cra0kalo tool I tried several figures and are all broken
Attachment:
1.jpg [33.67 KiB]
Not downloaded yet

well! they are olaf and luke :shock:
someone got better results?


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Mon Nov 02, 2015 10:58 pm 

Joined: Sun Aug 30, 2015 12:51 pm
Posts: 44
I know the reimporting function is experimental, but unfortunately it doesn't work here :(

Still no way to export compressed chunks and then encrypt them back?


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Tue Nov 03, 2015 2:28 am 

Joined: Sun May 31, 2015 2:23 am
Posts: 251
Well if anyone is interested in figuring out the remaining formats...

Here's the other topics relating to them.

http://zenhax.com/viewtopic.php?f=5&t=1686

http://zenhax.com/viewtopic.php?f=7&t=1687


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Tue Nov 03, 2015 9:26 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7221
Reimporting the files extracted from the PK archives it's not possible.


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Wed Nov 04, 2015 3:56 am 

Joined: Sun May 31, 2015 2:23 am
Posts: 251
Any chance for the textures?


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Wed Nov 04, 2015 5:12 am 

Joined: Sun May 31, 2015 2:23 am
Posts: 251
Sorry for the double post, but I thought I should bring up the tablet versions archives are different formatting.

Here's a few samples.

https://www.dropbox.com/s/arplbohtjtevxot/DI3-APK.zip?dl=0


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Wed Nov 04, 2015 11:45 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7221
Just fixed in script 0.2.1.
The reason was simply the usage of lzma to compress the files instead of deflate, copy&paste from zip.bms did the job :D


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Fri Nov 06, 2015 1:56 pm 

Joined: Fri Nov 06, 2015 1:54 pm
Posts: 40
The script works great, however I run into the point where the script stops and doesn't continue because of an error with a few files. I've seen that you said to use the -D command, but whenever i use the cmd with quickbms, quickbms says there is a wrong command-line argument when I write the name of the .bms file. I can't figure out why because everything is correct. Any help would be appreciated, I believe I'm missing some textures because of the error popping up before it finishes extracting.


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Fri Nov 06, 2015 2:25 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7221
What's the exact command-line you are using?
The correct one is: quickbms -D script.bms input_folder output_folder
You can even create a shortcut to quickbms.exe with -D appnded in the Target property.

What are the errors you get with those few files?


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Fri Nov 06, 2015 4:08 pm 

Joined: Fri Nov 06, 2015 1:54 pm
Posts: 40
That is what I am using, mine was:

D:\qbms>quickbms -D "C:\Users\name\Desktop\disney_infinity.bms" "C:\Program Files (x86)\Steam\steamapps\common\Disney Infinity 3.0\assets\*" "C:\Users\name\Desktop\DI output 2"

I'm not entirely sure how to do the appending of -D in the target property.

And the error i get is the following:

Image

I think the file that it is giving an error on isn't needed for models/textures, but it stops the script from continuing which may be causing me to miss files.


Top
   
 Post subject: Re: Disney Infinity 3.0
PostPosted: Fri Nov 06, 2015 4:18 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7221
remove the final \* from the input folder and it will work:
quickbms -D "C:\Users\name\Desktop\disney_infinity.bms" "C:\Program Files (x86)\Steam\steamapps\common\Disney Infinity 3.0\assets" "C:\Users\name\Desktop\DI output 2"

That error is interesting because that file is completely encrypted and not only its first 0x200 bytes.
I will check it.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 36 posts ]  Go to page 1 2 Next

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited