[Blood] RFS support

Moderator: Raze Developers

User avatar
NightFright
Spotlight Team
Posts: 1375
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

[Blood] RFS support

Post by NightFright »

Right now, Raze does not seem to support .rfs files for Blood. These are especially important for BloodGDX-compatible mods since they define resource folders. Ideally any rfs should be automatically loaded when found within a zipfile, but at least the one having the same name as the zipfile itself. It should work for pretty much anything - sounds, music, voxels...

Example:

Code: Select all

resource "sounds\1003.raw";
resource "music\battle.mid";
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49183
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Blood] RFS support

Post by Graf Zahl »

RFS does work. There have even been some fixes recently for this.
User avatar
NightFright
Spotlight Team
Posts: 1375
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: [Blood] RFS support

Post by NightFright »

Hmmm... how exactly is it supposed to work, then? I am using dev build 49 and if I place the replacement soundtrack for Deathwish into its zipfile (deathwish.zip) with a resource file called deathwish.rfs in the zipfile root, it doesn't seem to do anything.

Example: First level of first DW episode used cblood7 as music track. A replacement midi cblood7.mid is in a "music" subdir within deathwish.zip.

A deathwish.rfs contains
resource "music\cblood7.mid";

Ingame, Blood's original music is played.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49183
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Blood] RFS support

Post by Graf Zahl »

All RFS files I have seen so far have the mod folder first. So I remove the first directory name of the path to find the files. Does BloodGDX accept these shortened paths as well?
User avatar
NightFright
Spotlight Team
Posts: 1375
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: [Blood] RFS support

Post by NightFright »

Well, I tried the same format as e.g. in "Legends of Iconoclasts". BloodGDX seems to handle that just fine.
I guess both methods should work.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49183
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Blood] RFS support

Post by Graf Zahl »

Ok. I will change it accordingly.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49183
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Blood] RFS support

Post by Graf Zahl »

added
User avatar
NightFright
Spotlight Team
Posts: 1375
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

Re: [Blood] RFS support

Post by NightFright »

One observation:
If you keep original filenames (like in my example above), resource files will NOT be replaced. If you rename them and also adjust the names in the ini, it works.

Example:
cblood7.mid will not be replaced if the replacement is located in "music" subdir with same filename and an rfs definition like

Code: Select all

resource music\cblood7.mid";
But it would work if renamed to e.g. dwish7.mid in "music", defined as

Code: Select all

resource music\dwish7.mid"

Return to “Closed Feature Suggestions [Raze]”