[1.1.2+/Blood] RFS file endings

Moderator: Raze Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
NightFright
Spotlight Team
Posts: 1379
Joined: Fri May 02, 2008 12:29 pm
Location: Germany

[1.1.2+/Blood] RFS file endings

Post by NightFright »

I don't know if this is a known/intended behavior, but if any .rfs file does not end with an empty line, the last line will not be processed by the game (will complain that it's missing a semicolon even if it's there).

An RFS file with this code will give you a warning, complaining about a missing ";" in the last line:

Code: Select all

resource "sounds\where.raw";
resource "sounds\wooddoor.raw";
resource "sounds\wthell.raw";
This one is processed properly:

Code: Select all

resource "sounds\where.raw";
resource "sounds\wooddoor.raw";
resource "sounds\wthell.raw";

User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49211
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [1.1.2+/Blood] RFS file endings

Post by Graf Zahl »

Since I didn't want to touch the actual parser I just decided to append a line feed when loading the file so that it has a proper ending when being parsed.

Return to “Closed Bugs [Raze]”