Important information: this site is currently scheduled to go offline indefinitely by end of the year.

RAGE .RESOURCES files

The Original Forum. Game archives, full of resources. How to open them? Get help here.
LordRius
n00b
Posts: 17
Joined: Fri Apr 01, 2011 10:48 am

Re: RAGE .RESOURCES files

Post by LordRius »

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?
Pepper
mega-veteran
mega-veteran
Posts: 278
Joined: Thu Apr 17, 2008 3:48 am
Has thanked: 47 times
Been thanked: 40 times

Re: RAGE .RESOURCES files

Post by Pepper »

anyone figured out how to open/decode streamed.resources yet?
Qartar
ultra-n00b
Posts: 3
Joined: Mon Oct 10, 2011 5:12 am
Been thanked: 1 time

Re: RAGE .RESOURCES files

Post by Qartar »

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!!"
User avatar
Chipicao
ultra-veteran
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

Post by Chipicao »

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.
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: RAGE .RESOURCES files

Post by OrangeC »

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.
LordRius
n00b
Posts: 17
Joined: Fri Apr 01, 2011 10:48 am

Re: RAGE .RESOURCES files

Post by LordRius »

Any idea of how repack any file avoiding the filesize control?
JPulowski
beginner
Posts: 30
Joined: Sat Aug 28, 2010 10:39 pm
Has thanked: 3 times

Re: RAGE .RESOURCES files

Post by JPulowski »

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.
LordRius
n00b
Posts: 17
Joined: Fri Apr 01, 2011 10:48 am

Re: RAGE .RESOURCES files

Post by LordRius »

Anyone have the Change File Size tool?

Or anyway to override .resources and use extracted folders and files instead.
JPulowski
beginner
Posts: 30
Joined: Sat Aug 28, 2010 10:39 pm
Has thanked: 3 times

Re: RAGE .RESOURCES files

Post by JPulowski »

Bump.
LordRius
n00b
Posts: 17
Joined: Fri Apr 01, 2011 10:48 am

Re: RAGE .RESOURCES files

Post by LordRius »

Hi guys, any other tool for unpack repack .resources files??
Fallingwater
ultra-n00b
Posts: 4
Joined: Mon Dec 12, 2011 2:39 am

Re: RAGE .RESOURCES files

Post by Fallingwater »

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?
dragbody
veteran
Posts: 126
Joined: Tue Sep 20, 2011 4:33 am
Has thanked: 137 times
Been thanked: 10 times

Re: RAGE .RESOURCES files

Post by dragbody »

-snip-
Last edited by dragbody on Tue Nov 26, 2013 7:36 am, edited 1 time in total.
Fallingwater
ultra-n00b
Posts: 4
Joined: Mon Dec 12, 2011 2:39 am

Re: RAGE .RESOURCES files

Post by Fallingwater »

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.
Fallingwater
ultra-n00b
Posts: 4
Joined: Mon Dec 12, 2011 2:39 am

Re: RAGE .RESOURCES files

Post by Fallingwater »

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...
Fallingwater
ultra-n00b
Posts: 4
Joined: Mon Dec 12, 2011 2:39 am

Re: RAGE .RESOURCES files

Post by Fallingwater »

Desperate bump
Post Reply