DisUnity - An extractor for Unity games

General game file tools that are useful for more than one game
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 273 times

Re: DisUnity - An extractor for Unity games

Post by howfie »

anyone happen to know what type of swizzling Unity uses?
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1398 times

Re: DisUnity - An extractor for Unity games

Post by chrrox »

its not morton order?
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 273 times

Re: DisUnity - An extractor for Unity games

Post by howfie »

yes, it is some kind of morton, but the morton i use didnt work perfect (though it works for other games like neptunia that use morton). i could see chopped patterns after reordering. is there more than one way to implement z-order? i post sample pics when i get home.
barracuda
beginner
Posts: 30
Joined: Sat Nov 24, 2012 2:15 pm
Has thanked: 3 times
Been thanked: 27 times

Re: DisUnity - An extractor for Unity games

Post by barracuda »

SILENTpavel wrote:Sorry for double post, but finally i figured out how to work with multiple files. So, in my game i have "download_root" folder with 1608 files without names and extensions, only named with hashes.
first three files:

Code: Select all

0005fa49ffbf99e77797b64ab47d2010
000da68fbdc216e002ebc5bad84db238
00380e3b27f7aed490969dd980a98d71
  • 1. start total commander, select all 1608 files, click "File - Multi-Rename Tool" and set custom extensions same for all files, like ".file"
    will be like:

    Code: Select all

    0005fa49ffbf99e77797b64ab47d2010.file
    000da68fbdc216e002ebc5bad84db238.file
    00380e3b27f7aed490969dd980a98d71.file
  • 2. again select all 1608 files in TC and click "mark - copy selected names to clipboard"
  • 3. start notepad++, create new file, paste all names inside from clipboard, then push and hold "Alt+Shift+DownKey" on the first string at the beginning of all, then keep holding Alt+Shift push downkey many times to the end of the text file (don't select all text, be careful with last string), then unhold buttons and press "Alt+c", paste "java -jar disunity.jar " (WITH ONE SPACE white space i mean - after) and press ok button, you will see something like:

    Code: Select all

    java -jar disunity.jar 000da68fbdc216e002ebc5bad84db238.file
    java -jar disunity.jar 0005fa49ffbf99e77797b64ab47d2010.file
    java -jar disunity.jar 00380e3b27f7aed490969dd980a98d71.file
  • 4. Save your txt file as "run.bat" in tool directory, place all 1608 files files with custom extensions inside directory of this tool "disunity_v0.1.3", start run.bat and wait...
  • 5. you will see many directories with extracted stuff, you can use windows 7 search tool to copy all textures in one directory by searching with ".dds" tag, view .dds files with Xnview tool, it's fastest way.
(attached result) he he
That's a complicated way to do it. Wildcards should work, too:

Code: Select all

java -jar disunity.jar *
Or:

Code: Select all

disunity.bat *
("should", because there's a bug in the JVM I'm currently using which disallows wildcards when using quotes in the arguments)

And the files you've got are asset bundles, which normally have .unity3d as file extension. Luckily, DisUnity parses the actual header and ignores the extension. ;)
amzerof6
advanced
Posts: 57
Joined: Sat Oct 23, 2010 3:50 pm
Has thanked: 2 times
Been thanked: 2 times

Re: DisUnity - An extractor for Unity games

Post by amzerof6 »

This is a great tools,but anyone know how to open those ktx files?
Epik
ultra-n00b
Posts: 5
Joined: Thu Jan 02, 2014 8:18 am
Has thanked: 3 times

Re: DisUnity - An extractor for Unity games

Post by Epik »

absolutely fantastic!
nice works with webplayer files

sad that there are no repacking support
barracuda
beginner
Posts: 30
Joined: Sat Nov 24, 2012 2:15 pm
Has thanked: 3 times
Been thanked: 27 times

Re: DisUnity - An extractor for Unity games

Post by barracuda »

amzerof6 wrote:This is a great tools,but anyone know how to open those ktx files?
PVRTexTool
User avatar
Haoose
mega-veteran
mega-veteran
Posts: 280
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 70 times
Been thanked: 192 times
Contact:

Re: DisUnity - An extractor for Unity games

Post by Haoose »

Epik wrote:sad that there are no repacking support
Try:
http://www.zoneofgames.ru/forum/index.p ... opic=29884
-= GP-team =-
Image
mazor
advanced
Posts: 44
Joined: Tue Jun 07, 2011 9:22 pm
Has thanked: 157 times
Been thanked: 2 times

Re: DisUnity - An extractor for Unity games

Post by mazor »

Does this tool support the extraction of .resS files?
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 303 times

Re: DisUnity - An extractor for Unity games

Post by finale00 »

I've got a 2 gig resource archive.
Tried to open it, managed to do it, but it ate up 3 gigs of memory and was hitting the heap size. Really slow during extraction process due to JVM doing all the swapping to disk.

Should I just ignore the GUI? lol
barracuda
beginner
Posts: 30
Joined: Sat Nov 24, 2012 2:15 pm
Has thanked: 3 times
Been thanked: 27 times

Re: DisUnity - An extractor for Unity games

Post by barracuda »

mazor wrote:Does this tool support the extraction of .resS files?
Yes. These files are linked with .asset files and are loaded automatically when extracting sounds.
finale00 wrote:I've got a 2 gig resource archive.
Tried to open it, managed to do it, but it ate up 3 gigs of memory and was hitting the heap size. Really slow during extraction process due to JVM doing all the swapping to disk.

Should I just ignore the GUI? lol
Is the resource archive a .unity3d file? I haven't seen files that large so far... what game uses such files?
mappy2012
advanced
Posts: 61
Joined: Sun Jul 03, 2011 4:40 am
Has thanked: 51 times
Been thanked: 1 time

Re: DisUnity - An extractor for Unity games

Post by mappy2012 »

barracuda wrote:
mazor wrote:Does this tool support the extraction of .resS files?
Yes. These files are linked with .asset files and are loaded automatically when extracting sounds.

hi~~barracuda

How to extract. ResS files?
use java -jar disunity.jar extract resources.assets
resources.assets.resS not work
barracuda
beginner
Posts: 30
Joined: Sat Nov 24, 2012 2:15 pm
Has thanked: 3 times
Been thanked: 27 times

Re: DisUnity - An extractor for Unity games

Post by barracuda »

You can't extract .resS files on their own, they're just headerless files that contain concatenated audio data. If you extract all sounds from resources.assets, resources.resS will be extracted as well.
audreyisme
ultra-n00b
Posts: 2
Joined: Tue May 13, 2014 5:03 am
Has thanked: 1 time

Re: DisUnity - An extractor for Unity games

Post by audreyisme »

Hello there Barracuda, I hope that you do not mind me reposting the PM I sent you prior. Best wishes.

A very fine day to you Barracuda,

I do hope that this message finds you well.

Thank you for having shared your Disunity tool. I have no programming experience what so ever however, stumbled across your post in my ongoing attempts to source the 3D mesh and textures elements from an online Unity project.

I will be straight forward. I am a full time medical student with next to no income and am seeking to obtain for personal study use only the elements from either here:

https://www.primalpictures.com/regional ... ltime.aspx

or even here:

http://www.3dscience.com/3D_Models/Huma ... ection.php

If I had the finance I would without question make payment for the Real Time anatomy set however, both sources are completely beyond my scope and whilst there are 'cheaper' anatomical model elements online, only the Primal Pictures anatomy set comes closer to anatomic accuracy, obviously important to me.

So why am I troubling you with such things?

Well in an aim to at the very least view the Real Time 3D elements offline I have been able to locate 'some' of what I believe to be the .unity3d files for the Real Time project. One example is attached although there are a number of essential more and I was simply wondering if you might be willing to assist me in trying to extract/obtain the 3D objects (i.e. mesh/textures) from these files for the sole purpose of my own study requirements.

I have attached one such example file however, it may not even be the right type. I have attempted to use your Disunity tool and managed to extract/expand various elements from it but none appear to be the files I need. I even tried to run the .unity3d file locally through placing a script on a .html page however, I only managed to get so far as to run the page with a message indicating that I must run the .unity3d file on the owners website. Understandable.

I am also prepared to provide a small monetary sum if you feel that you might be able to assist me in this and again in no way seek to commercialize nor profit from this request nor pirate the material. I simply want it for my own study means.

Either way I wish you the very best in all your own endeavors and thank you for your time.

with regards.
zaphiel
ultra-n00b
Posts: 1
Joined: Sat Jan 21, 2012 2:11 am

Re: DisUnity - An extractor for Unity games

Post by zaphiel »

Hi barracuda,

First up, let me thank you for creating DisUnity. I am a soundtrack junkie so now I can finally get my mitts on the music from the games I play.

I'm having some trouble with .resS files. When I try to extract a sharedassets#.assets file with a corresponding resS file, I get "Audio clip {0} uses an external .resS file that doesn't exist!" for each file. Does DisUnity only find the .resS files for resources.assets?
All .assets and .resS files are in the same directory, by the way.
Post Reply