[Added] [Blood] RFS support

Moderator: Raze Developers

[Blood] RFS support

Postby NightFright » Thu Apr 15, 2021 9:31 am

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 allExpand view
resource "sounds\1003.raw";
resource "music\battle.mid";
User avatar
NightFright
Spotlight Team
 
Joined: 02 May 2008
Location: Germany

Re: [Blood] RFS support

Postby Graf Zahl » Thu Apr 15, 2021 9:41 am

RFS does work. There have even been some fixes recently for this.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [Blood] RFS support

Postby NightFright » Thu Apr 15, 2021 9:53 am

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
NightFright
Spotlight Team
 
Joined: 02 May 2008
Location: Germany

Re: [Blood] RFS support

Postby Graf Zahl » Thu Apr 15, 2021 9:56 am

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [Blood] RFS support

Postby NightFright » Thu Apr 15, 2021 10:52 am

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
NightFright
Spotlight Team
 
Joined: 02 May 2008
Location: Germany

Re: [Blood] RFS support

Postby Graf Zahl » Thu Apr 15, 2021 11:29 am

Ok. I will change it accordingly.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [Blood] RFS support

Postby Graf Zahl » Sat Apr 17, 2021 3:59 pm

added
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [Blood] RFS support

Postby NightFright » Tue Apr 20, 2021 1:38 am

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 allExpand view
resource music\cblood7.mid";

But it would work if renamed to e.g. dwish7.mid in "music", defined as
Code: Select allExpand view
resource music\dwish7.mid"
User avatar
NightFright
Spotlight Team
 
Joined: 02 May 2008
Location: Germany


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests