Unity 3d Assets files
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Unity 3d Assets files
sample?
-
- Posts: 157
- Joined: Sun Aug 24, 2014 8:54 am
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Unity 3d Assets files
Fixed, thanks.
-
- Posts: 157
- Joined: Sun Aug 24, 2014 8:54 am
Re: Unity 3d Assets files
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
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
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Unity 3d Assets files
That one is an ogg file.
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: Unity 3d Assets files
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?
.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.
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Unity 3d Assets files
Use Extractor 2.5 to scan these easily.
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: Unity 3d Assets files
Scanners extract files without names.
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Unity 3d Assets files
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.
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: Unity 3d Assets files
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.
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Unity 3d Assets files
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.
-
- Posts: 157
- Joined: Sun Aug 24, 2014 8:54 am
Re: Unity 3d Assets files
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
sample:
http://www14.zippyshare.com/v/yZWvg0eo/file.html
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Unity 3d Assets files
Any news on this?
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Unity 3d Assets files
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.
I'll see if I can implement it somehow... would be quite cool after all.
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Unity 3d Assets files
GOT IT!!!
See attachment!
See attachment!
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Unity 3d Assets files
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
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Unity 3d Assets files
Well done.
Let me know when everything is complete and tested (wait some days maybe) and then I will put everything in unity.bms
Let me know when everything is complete and tested (wait some days maybe) and then I will put everything in unity.bms
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Unity 3d Assets files
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. :\
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Unity 3d Assets files
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!
- 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!
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Unity 3d Assets files
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:
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