Unity 3d Assets files

Do you know a tool, link or website for working on a specific game files or to help game research? Let's collect them here!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unity 3d Assets files

Post by aluigi »

sample?
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Re: Unity 3d Assets files

Post by happyend »

aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unity 3d Assets files

Post by aluigi »

Fixed, thanks.
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Re: Unity 3d Assets files

Post by happyend »

find script not support load audio streams from .resS files ,get some error

offset filesize filename
--------------------------------------

Error: incomplete input file 0: D:\temptemp\sharedassets0.assets.resS
Can't read 1 bytes from offset b09a98ad.
Anyway don't worry, it's possible that the BMS script has been written
to exit in this way if it's reached the end of the archive so check it
or contact its author or verify that all the files have been extracted.
Please check the following coverage information to know if it's ok.

coverage file 0 0% 16 9443247

Last script line before the error or that produced the error:
52 get DUMMY byte


sample:
http://www11.zippyshare.com/v/w5ekCnz6/file.html
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unity 3d Assets files

Post by aluigi »

That one is an ogg file.
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: Unity 3d Assets files

Post by spider91 »

aluigi

.resS files normally are stored sounds without TOC. All the TOC information seems to be stored in .assets file with the same name. Does your script extract them?
Last edited by spider91 on Sat Apr 04, 2015 11:04 pm, edited 1 time in total.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unity 3d Assets files

Post by AlphaTwentyThree »

Use Extractor 2.5 to scan these easily.
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: Unity 3d Assets files

Post by spider91 »

Scanners extract files without names.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unity 3d Assets files

Post by AlphaTwentyThree »

spider91 wrote:Scanners extract files without names.

resS files don't contain any names. Look at one of those with a Hex editor to see for yourself.
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: Unity 3d Assets files

Post by spider91 »

spider91 wrote:aluigi

.resS files normally are stored sounds without TOC. All the TOC information seems to be stored in .assets filewith the same name . Does your extract them?


I'm not pretty shure, but unity studio somehow extracts these files.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unity 3d Assets files

Post by AlphaTwentyThree »

spider91 wrote:
spider91 wrote:aluigi

.resS files normally are stored sounds without TOC. All the TOC information seems to be stored in .assets filewith the same name . Does your extract them?


I'm not pretty shure, but unity studio somehow extracts these files.

Hm, there are TYPE 83 files in the assets files that correspond to the contents of the resS files but I can't make a connection to the individual offsets. I'll take another look at another example. Would be cool if it was actually possible to get the names.
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Re: Unity 3d Assets files

Post by happyend »

unity studio not support Unity 5.0,Unity 5.0 Audio use fsb5 Format,.resource,there are TYPE 83,snd files in the assets files that correspond to the contents of the .resource files,Is there no way to get fsb filenames?

sample:
http://www14.zippyshare.com/v/yZWvg0eo/file.html
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unity 3d Assets files

Post by AlphaTwentyThree »

Any news on this?
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unity 3d Assets files

Post by AlphaTwentyThree »

Well... actually there is a solution to this - the "empty" .snd contain size and offset of the according resS file.
I'll see if I can implement it somehow... would be quite cool after all. :)
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unity 3d Assets files

Post by AlphaTwentyThree »

GOT IT!!! :D :D :D

See attachment!
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unity 3d Assets files

Post by AlphaTwentyThree »

Here's a version that skips the .snd file if there is a corresponding file in the resS (paste in line 161):

Code: Select all

   if EXT == ".snd"
      if SIZE == 0x18 # probably corresponding audio file in resS archive
         get ONAME filename
         string ONAME += ".resS"
         open FDSE ONAME 1 EXISTS
         if EXISTS == 1
            savepos MYOFF 0
            callfunction getresS 1
            goto MYOFF 0
         else
            log FNAME OFFSET SIZE 0
         endif
      endif
   else
      log FNAME OFFSET SIZE 0
   endif
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unity 3d Assets files

Post by aluigi »

Well done.
Let me know when everything is complete and tested (wait some days maybe) and then I will put everything in unity.bms
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unity 3d Assets files

Post by AlphaTwentyThree »

I just tested the script on multiple Unity games and noticed something: Not all the files inside the resS archives have corresponding .snd files inside the .assets file. That means that if you extract the .assets file, chances may be that not all the files from the resS are extracted. :\
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unity 3d Assets files

Post by AlphaTwentyThree »

Well, there's a pseudo-workaround which works in some cases:
- put each size/offset combination from a resS extraction in an array
- after the extraction of the main files, sort the array by offset
- test if there are any gaps
- if so, write the gaps to disk
Of course this doesn't take into account all cases where there are two or more files in one gap. We'd need yet ANOTHER workaround for this... I don't have the patience for this at the moment to be honest. ;) If somebody wants to give it a shot, please post your results here!
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unity 3d Assets files

Post by AlphaTwentyThree »

Ok, I've run some other tests. I made a mistake - the files actually DID extract correctly and completely.
I've included a little test to see if this is the case:

Code: Select all

set SIZE_RESS 0
for i = 0 < FILES
...
   if EXT == ".snd"
      if SIZE == 0x18 # probably corresponding audio file in resS archive
         get ONAME filename
         string ONAME += ".resS"
         open FDSE ONAME 1 EXISTS
         if EXISTS == 1
            savepos MYOFF 0
            math a += 1
            callfunction getresS 1
            goto MYOFF 0
            math SIZE_RESS += SIZE2
         endif
      endif
   endif
open FDSE ONAME 0 EXISTS
   if EXISTS == 1
      get FSIZE asize
      if FSIZE == SIZE_RESS
         print "All sound files from resS extracted!"
      else
         print "Warning: unextracted data in resS!"
      endif
   endif