ZDoom MAPINFO comment parsing

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE/EDuke32/Raze? Did your computer break? Ask here.

Moderator: GZDoom Developers

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
Post Reply
User avatar
Death Egg
Posts: 198
Joined: Tue Aug 14, 2012 10:16 pm

ZDoom MAPINFO comment parsing

Post by Death Egg »

Hi, I'm currently implementing a parser for a source port that is capable of reading both old and new style ZDoom MAPINFO. While I'm aware MAPINFO's current commenting style is C-style (//) there was mention of previous standards possibly supporting semicolons instead. Was this a thing, and if so how should I account for it? Should I just consider both valid comments at any time?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: ZDoom MAPINFO comment parsing

Post by Graf Zahl »

The original Hexen parser did indeed use semicolons for comments, so for the old format you need to handle semicolons as comments that span the rest of the line.
The parse mode for the new format does not recognize this as comment.
Post Reply

Return to “Technical Issues”