Important information: this site is currently scheduled to go offline indefinitely by end of the year.
RAGE .RESOURCES files
Re: RAGE .RESOURCES files
Using the reimport command in QuickBMS you can repack files, but, you can't exceed the size of the original files or QuickBMS don't repack them. ¿There is any way to skip this and overwrite the files anyway?
Re: RAGE .RESOURCES files
I modified WRS's script to decompress any files that need it. I haven't started working on the model format in earnest but the output looks intelligible (as opposed to what was obviously compressed-gibberish). The long value preceding what WRS was using as the file size was the uncompressed file size, when this is different from the archived size the script decompresses it using deflate, otherwise extracting it as before. The total uncompressed size is approximately 1.84 GB.
Code: Select all
# RAGE .RESOURCES (gameresources.resources)
# QuickBMS script by WRS, modified by Qartar
endian big
comtype deflate_noerror
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 FSIZE long # uncompressed size of file
get CSIZE long # size of file in archive (compressed size)
get EXTRA long
math EXTRA *= 24 # sometimes language names
getdstring DUMMY EXTRA
getdstring DUMMY 20
if CSIZE == 0
print "'%BLOCKNAME%' type has no data (%VALUE1%)"
elif CSIZE != FSIZE
clog VALUE2 OFFSET CSIZE FSIZE
else
log VALUE2 OFFSET CSIZE
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!!"
- Chipicao
- ultra-veteran
- Posts: 476
- Joined: Thu Feb 03, 2011 11:18 am
- Has thanked: 42 times
- Been thanked: 305 times
- Contact:
Re: RAGE .RESOURCES files
Thanks, but I get the exact same error when I try to unpack streamed.resources.
Please post any requests or issues with my tools in the appropriate topics.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.
I'm sorry if I don't reply or if I ignore PMs. My time is very limited.
-
- double-veteran
- Posts: 868
- Joined: Sun Apr 20, 2008 2:58 am
- Has thanked: 5 times
- Been thanked: 41 times
Re: RAGE .RESOURCES files
As far as i can see the streaming resource bank doesn't have any info on the bottom like game resources archive. The headers of the ms adpcm files are in game resources and can be already extracted as .idmsa files. But the actual data is the problem to extract and how to link them up with the header files.
Re: RAGE .RESOURCES files
Currently is there anyway to extract textures, models and audio files? There are several .swf flash files, which can be decompiled. But also there are .bswf files, I could not find any way to convert them to .swf files.
Re: RAGE .RESOURCES files
Anyone have the Change File Size tool?
Or anyway to override .resources and use extracted folders and files instead.
Or anyway to override .resources and use extracted folders and files instead.
-
- ultra-n00b
- Posts: 4
- Joined: Mon Dec 12, 2011 2:39 am
Re: RAGE .RESOURCES files
Hi, I happened on this thread while trying to find a way to modify Rage's stupid 999 ammo limit for all ammo types. I have downloaded the latest script and used quickbms to extract gameresources.resources; I then deleted everything I didn't need (which means everything but the 33 files I needed in "generated -> decls -> ammo -> ammo"). I then edited the files (they're standard text format) changing the ammo limit from 999 to 999999, and removing three indent (tab) characters for every file so as to maintain the same size.
I then ran quickbms reimport according to instructions:
quickbms -w -r rage.bms gameresources.resources <folder where I saved the resources file>
It reimported the files, but while doing so it complained that many other files had no data. Random example:
- SCRIPT's MESSAGE:
'model' type has no data (vehicle/class2/c2buggy.md5)
Here's a complete dump of quickbms' output (for some reason, "SCRIPT's MESSAGE" isn't pasted in the dump): http://pastebin.com/hUEwW6zH
Running the game with the resulting gameresources.resources file caused it to crash after a bit of loading.
I also tried unpacking the original resources file and putting all the folders it created into rage\base, then deleting gameresources.resources, hoping to force it to run on unpacked resources (as it ignores them otherwise), but the game crashed again (and rather faster too). Apparently Rage's files must be in gameresources.resources, or it doesn't work at all.
So what I'm looking for is either a way to let Rage load from unpacked resources, or reimporting the proper files in gameresources.resources in such a way that it'll work.
Any ideas?
I then ran quickbms reimport according to instructions:
quickbms -w -r rage.bms gameresources.resources <folder where I saved the resources file>
It reimported the files, but while doing so it complained that many other files had no data. Random example:
- SCRIPT's MESSAGE:
'model' type has no data (vehicle/class2/c2buggy.md5)
Here's a complete dump of quickbms' output (for some reason, "SCRIPT's MESSAGE" isn't pasted in the dump): http://pastebin.com/hUEwW6zH
Running the game with the resulting gameresources.resources file caused it to crash after a bit of loading.
I also tried unpacking the original resources file and putting all the folders it created into rage\base, then deleting gameresources.resources, hoping to force it to run on unpacked resources (as it ignores them otherwise), but the game crashed again (and rather faster too). Apparently Rage's files must be in gameresources.resources, or it doesn't work at all.
So what I'm looking for is either a way to let Rage load from unpacked resources, or reimporting the proper files in gameresources.resources in such a way that it'll work.
Any ideas?
-
- ultra-n00b
- Posts: 4
- Joined: Mon Dec 12, 2011 2:39 am
Re: RAGE .RESOURCES files
If they're in gameresources.resources or in gameresources_patch(whatever), then you can extract them from the big file. Not sure how to handle them after that, I'm not interested in graphic modding.
If they're in streaming.resources, I haven't find a way to extract it so far - and I'm not likely to even if one exists (doubtful) because I don't really care about the contents of that file as what I need is in the other one.
Sorry I can't be of more help.
If they're in streaming.resources, I haven't find a way to extract it so far - and I'm not likely to even if one exists (doubtful) because I don't really care about the contents of that file as what I need is in the other one.
Sorry I can't be of more help.
-
- ultra-n00b
- Posts: 4
- Joined: Mon Dec 12, 2011 2:39 am
Re: RAGE .RESOURCES files
Nobody? Has interest in this game already dropped to zero? Just by editing the weapon/enemy config files you could do nice things... I can't be the only one interested in getting it to see modified values...
-
- ultra-n00b
- Posts: 4
- Joined: Mon Dec 12, 2011 2:39 am