[3.4.1] bug with multiline strings and braces in MAPINFO

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom 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.
Post Reply
User avatar
InsanityBringer
Posts: 3386
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

[3.4.1] bug with multiline strings and braces in MAPINFO

Post by InsanityBringer »

Moonsong shipped with this in its MAPINFO, containing a typo:

Code: Select all

cluster 1
{
   flat = "FLOOR4_8"
   music = "$MUSIC_READ_M"
   exittext =     "First, the base becomes cold and dark,",
                "then the moon grows huge,",
                "and now demonic artifacts",
                "lay outside the base.",
                " ",
                "As you step into the gate,",
                "what's happening on earth",
                "becomes the least of your worries",
                "as you fall into a fiery hell.",
                " ",
                "Where ever you ended up, demons",
                "lie in wait. They have learned",
                "about you and are ready to fight.",
                " ",
                "Ultimately, you're going to have to",
                "fight your way out",
}
The last line has an extra , left by mistake, so it includes the } as part of the string, since individual words can be included with commas. (I didn't notice since the doom smallfont doesn't have {}). However, even stranger, the } still seems to be processed as the closing brace, so the file still reads and is parsed with no errors. I asked around a little bit, since this is so strange, and many seemed to suggest its a bug, so here's a report.

if it is a bug I'll be willing to release an update to Moonsong that corrects the broken MAPINFO.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [3.4.1] bug with multiline strings and braces in MAPINFO

Post by Graf Zahl »

Yes it was a bug in the parser. Fixed.
Post Reply

Return to “Closed Bugs [GZDoom]”