DisUnity - An extractor for Unity games

General game file tools that are useful for more than one game
User avatar
Haoose
mega-veteran
mega-veteran
Posts: 281
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 70 times
Been thanked: 189 times
Contact:

Re: DisUnity - An extractor for Unity games

Post by Haoose » Sun Jan 19, 2014 9:47 am

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 » Thu Apr 03, 2014 11:18 pm

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: 300 times

Re: DisUnity - An extractor for Unity games

Post by finale00 » Fri Apr 04, 2014 9:08 pm

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 » Thu Apr 17, 2014 3:39 am

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: 62
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 » Sat Apr 19, 2014 3:31 pm

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 » Sun Apr 20, 2014 1:05 pm

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 » Thu May 15, 2014 2:00 am

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 » Wed May 21, 2014 4:31 pm

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.

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 » Sat May 24, 2014 3:32 am

zaphiel wrote: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.
DisUnity should automatically locate and load the corresponding .resS files for every asset file. If you have a pair of files that doesn't seem to work, you may have to send them to me for investigation.

And I also just noticed that the log message is broken, the placeholder {0} should actually contain the audio clip name. Shall be fixed. :D

Edit: It turns out that the whole .resS loading system is currently broken in 0.3.0. It will be fixed in 0.3.1.

mappy2012
advanced
Posts: 62
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 » Fri Aug 01, 2014 9:46 am

hi~~barracuda

i use DisUnity0.31 extract Pineview Drive game, sharedassets2.assets,
not work,get some error。

merlinsvk
ultra-veteran
ultra-veteran
Posts: 411
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 117 times

Re: DisUnity - An extractor for Unity games

Post by merlinsvk » Fri Aug 01, 2014 11:22 am

Probably the same error as I get. I have only 2GB of RAM and this error occurs only with files ~500MB big (or bigger).

Code: Select all

[info] Processing sharedassets2.assets
[error] DisUnityProcessor: Can't process sharedassets2.assets, caused by java.io.IOException: Map failed
        at sun.nio.ch.FileChannelImpl.map(Unknown Source)
        at info.ata4.io.buffer.ByteBufferUtils.openReadOnly(ByteBufferUtils.java:156)
        at info.ata4.io.buffer.ByteBufferUtils.openReadOnly(ByteBufferUtils.java:170)
        at info.ata4.unity.asset.AssetFile.load(AssetFile.java:93)
        at info.ata4.unity.asset.AssetFile.open(AssetFile.java:58)
        at info.ata4.unity.cli.DisUnityProcessor.processAsset(DisUnityProcessor.java:239)
        at info.ata4.unity.cli.DisUnityProcessor.run(DisUnityProcessor.java:119)

        at info.ata4.unity.cli.DisUnityCli.run(DisUnityCli.java:119)
        at info.ata4.unity.cli.DisUnityCli.main(DisUnityCli.java:55)

Caused by: java.lang.OutOfMemoryError: Map failed
        at sun.nio.ch.FileChannelImpl.map0(Native Method)
        ... 9 more

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: 300 times

Re: DisUnity - An extractor for Unity games

Post by finale00 » Wed Aug 06, 2014 3:44 am

I want to get the compiled scripts.
The game I'm looking at uses monoscript so a dll is generated.

How can I extract the DLL?

EDIT: got it, I used bundle-extract

Starlow
beginner
Posts: 32
Joined: Wed Oct 08, 2014 12:26 am

Re: DisUnity - An extractor for Unity games

Post by Starlow » Mon Nov 24, 2014 3:21 am

can it unpack anim files and 3d models yet?

Jim Di
ultra-n00b
Posts: 1
Joined: Mon Jan 16, 2012 8:50 am

Re: DisUnity - An extractor for Unity games

Post by Jim Di » Tue Dec 16, 2014 6:25 am

Hi! Thx for useful tool.

Sometimes extractor crhases while working Texture2D data with command 'extract',

Code: Select all

[error] DisUnityCli: Fatal error, caused by java.lang.OutOfMemoryError: Java heap space
        at java.util.ArrayList.<init>(Unknown Source)
        at info.ata4.unity.serdes.Deserializer.readArray(Deserializer.java:238)
        at info.ata4.unity.serdes.Deserializer.readCollection(Deserializer.java:250)
        at info.ata4.unity.serdes.Deserializer.readValue(Deserializer.java:126)
        at info.ata4.unity.serdes.Deserializer.readObject(Deserializer.java:95)
        at info.ata4.unity.serdes.Deserializer.readValue(Deserializer.java:134)
        at info.ata4.unity.serdes.Deserializer.readObject(Deserializer.java:95)
        at info.ata4.unity.serdes.Deserializer.deserialize(Deserializer.java:72)
        at info.ata4.unity.cli.extract.AssetExtractor.extract(AssetExtractor.java:160)
        at info.ata4.unity.cli.cmd.ExtractCmd.processAsset(ExtractCmd.java:43)
        at info.ata4.unity.cli.cmd.AssetCommand.processAssetFile(AssetCommand.java:100)
        at info.ata4.unity.cli.cmd.AssetCommand.processFile(AssetCommand.java:90)
        at info.ata4.unity.cli.cmd.FileCommand.processPath(FileCommand.java:58)
        at info.ata4.unity.cli.cmd.FileCommand.run(FileCommand.java:76)
        at info.ata4.unity.cli.DisUnityCli.run(DisUnityCli.java:110)
        at info.ata4.unity.cli.DisUnityCli.main(DisUnityCli.java:123)
but all ok with command 'extract-raw'

User avatar
Slandey
beginner
Posts: 22
Joined: Wed Sep 10, 2014 4:20 am
Location: BEHIND YOU
Has thanked: 2 times
Been thanked: 3 times

Re: DisUnity - An extractor for Unity games

Post by Slandey » Sat Mar 07, 2015 8:13 pm

Starlow wrote:can it unpack anim files and 3d models yet?
Anims: NO
3D Models: YES
Image

Post Reply