nukeykt / NBlood

Reverse-engineered ports of Build games using EDuke32 engine technology and development principles (NBlood/Rednukem/PCExhumed)
598 stars 74 forks source link

[Feature] Blood: load additional RFS files #814

Closed fgsfds closed 3 months ago

fgsfds commented 3 months ago

Add -rfs FILE.RFS command line parameter to load additional RFS files for Blood.

These are usually used to add new sounds to mods.

// Resource script file generated by BARF script extractor
// Copyright 1997, Monolith Productions.  All Rights Reserved

 // SFX data format
 //    int    relVol;      volume, 0-255
 //    int    pitch;       pitch change (fixed point)
 //    int    pitchrange;  range of random pitch (fixed point)
 //    int    format;      format of audio 1=11025 5=22050
 //    int    loopStart;   loop position (-1 means no looping)
 //    char   rawName[9];  name of RAW resource

resource "RAW\AMB1.RAW";
data "AMB1.SFX" as 1:   80, 0x10000, 0x0, 1, -1, "amb1";
resource "RAW\AMB2.RAW";
data "AMB2.SFX" as 2:   80, 0x10000, 0x0, 1, -1, "amb2";
resource "RAW\AMB3.RAW";
data "AMB3.SFX" as 3:   80, 0x10000, 0x0, 1, -1, "amb3";
resource "RAW\AMB4.RAW";
data "AMB4.SFX" as 4:   80, 0x10000, 0x0, 1, -1, "amb4";

resource "SEQ\BEST1I1.seq" as 10496;
resource "SEQ\BEST1D1.seq" as 10497;
resource "SEQ\BEST1D1.seq" as 10498;
resource "SEQ\BEST1D3.seq" as 10499;
resource "SEQ\BEST1D3B.seq" as 10508;
resource "SEQ\BEST1E1.seq" as 10500;
CommonLoon102 commented 3 months ago

Maybe rather open this in NotBlood :D Would get implemented sooner.

tmyqlfpir commented 3 months ago

Also reported here. #664

Maybe rather open this in NotBlood :D Would get implemented sooner.

I don't know enough about the issue or what to fix to even start, so I must decline. All I know is that EDuke's filesystem code is a mess.

fgsfds commented 3 months ago

I'm closing it in favor of https://github.com/nukeykt/NBlood/issues/664