[Fixed] [1.1.2+/Blood] RFS file endings

Moderator: Raze Developers

[1.1.2+/Blood] RFS file endings

Postby NightFright » Thu Jun 17, 2021 9:10 am

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 allExpand view
resource "sounds\where.raw";
resource "sounds\wooddoor.raw";
resource "sounds\wthell.raw";

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

User avatar
NightFright
Spotlight Team
 
Joined: 02 May 2008
Location: Germany

Re: [1.1.2+/Blood] RFS file endings

Postby Graf Zahl » Fri Aug 13, 2021 1:45 pm

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


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests