Page 2 of 4
Re: RAGE .RESOURCES files
Posted: Thu Oct 06, 2011 10:38 pm
by Savage
473354e2 7582 generated/buildgame/game/wasteland2/sewer_level_09.mapreso
urces
Error: incomplete input file number 0, can't read 4 bytes.
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
Re: RAGE .RESOURCES files
Posted: Thu Oct 06, 2011 11:09 pm
by OrangeC
That's Apparently suppose to happen according to WRS.
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 12:43 am
by WRS
sorry about the script confusion - i should have enabled the script to work on the full .resource file
i took a quick look at streaming.resource but have no idea of the audio (?) formats otherwise they could be ripped like that if there really are no offsets near the footer
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 1:06 am
by OrangeC
Ahh so the current script didn't dump all files afterall?
What interests me is that the audio data is in another file and the actual names and pathways are in the main resource file.
Yes i got same error as well.
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 1:10 am
by WRS
some of the file entries have extra data for different languages which could explain the audio thing:
english, french, italian, german, spanish, russian, japanese
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 1:32 am
by Pepper
pretty sure he means how all the audio files are *edit*under*edit* 1kb, its a redirect to the streamed.resources or something
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 2:14 am
by WRS
fixed the script error
Code: Select all
# RAGE .RESOURCES (gameresources.resources)
# QuickBMS script by WRS
endian big
get DUMMY long
get FOFFSET long
goto FOFFSET
get FILES long
for i = 0 < FILES
endian little
# file number (equal to i) - big endian
get FILENUM long
# data type names ("image", "material", ect)
get STRLEN long
getdstring BLOCKNAME STRLEN
# source data or file
get STRLEN long
getdstring VALUE1 STRLEN
# filename (could be blank)
get STRLEN long
getdstring VALUE2 STRLEN
endian big
# file entry data
get OFFSET long # relative, from 16
get DUMMY long
get FSIZE long
get EXTRA long
math EXTRA *= 24 # sometimes language names
getdstring DUMMY EXTRA
getdstring DUMMY 20
if FSIZE == 0
print "'%BLOCKNAME%' type has no data (%VALUE1%)"
else
log VALUE2 OFFSET FSIZE
endif
# debug/filelist
#print "%OFFSET%\t%BLOCKNAME%\n %VALUE1%\n %VALUE2%"
next i
get SIZE asize
savepos POS
if POS != SIZE
print "!! other footer data here !!"
endif
print "Completed!!"
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 2:36 am
by OrangeC
Thanks it worked!
Now just how to link these sound files from the compress folder to the audio in the streaming bank.
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 2:42 am
by Zelex
Still not extracting everything? generated dir is only 400mb or so.
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 2:48 am
by OrangeC
It did extract everything in the bigfile, since now the folder reads 1gig in total.
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 5:37 am
by Chipicao
The contents of this post was deleted because of possible forum rules violation.
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 7:50 am
by Savage
For textures Is it possible they use the same structure?
For me textures looks crypted (maybe im wrong)
And the audio looks xwb-raw
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 5:18 pm
by OrangeC
Audio is adpcm but i don;t think its xwb since theres no header indication that it is. unless the beginning part is a filetable of some sorts and its just missing the Beginning DWORD.
I looked at the strings in the game resource archive and it has the .idmsa extension which stands for ID Microsoft ADPCM. But i don't understand how the strings link to the files inside the streamed resources since i looked at the individual strings in hex and it showed really nothing useful.
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 7:55 pm
by michalss
Is there any chance to do a repacker please ?
Re: RAGE .RESOURCES files
Posted: Fri Oct 07, 2011 8:50 pm
by Zelex
Savage wrote:
For textures Is it possible they use the same structure?
For me textures looks crypted (maybe im wrong)
And the audio looks xwb-raw
The textures are HD-Photo compressed. Page lines probably contains an offset (8 bytes) and size (2-4 bytes?) for each page, however those files themselves look compressed as they are too small to hold all the data they actually need to hold. The wasteland likely contains a 128k by 128k texture, and with 128x128 pages that breaks down to 1m pages.
Also, it looks like the decl files are compressed as well - likely huffman coded with a static dictionary.