Another Quake3 BSP entity parser

A forum to store posts deemed exceptionally wise and useful
Post Reply
XargoL
Posts: 22
Joined: Sun Aug 01, 2004 7:55 pm

Another Quake3 BSP entity parser

Post by XargoL »

CEntityReader: http://home.no.net/evegard/entityReader.zip

This class is used for extracting the entity data from Quake 3 BSP files. Not very great, and may need some
work, but at least it's something to start with.

Missing features/should be done/bugs:
  • As it is now, the code assumes that the first property/value pair in each entity block in the BSP is the 'classname' property. That's not the case with some of the BSP files I've tried, so you may need to make some kind of temporary data structure during the parsing, and then copy over the data to a CEntity class at a later stage when the 'classname' is known. (If you got my point :S)
  • Missing functions for searching through the linked lists, but that should be a piece of cake to add.
  • Lots of cout's during the code for debugging, which you'd want to remove.
Of course there may be other things as well.

If you use something of this, I'd appreciate a mention in the credits or something. Besides that, do whatever you
want with it. :)
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

great work. No matter how it is; as you said, it's a start.

the important thing is to start something, not let everything happen in front of you
Image
Post Reply