Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Parsing the raws  (Read 368 times)

ouroborus

  • Bay Watcher
    • View Profile
Parsing the raws
« on: August 29, 2010, 05:06:47 am »

I'm trying to write a parser for the raws files.

Am I right in assuming the anything outside of brackets can be ignored?

It seems that everything follows the form:
Code: [Select]
[OBJECT:object_class]
[object_class:object_id]
...
except in building_custom.txt where it reads:
Code: [Select]
[OBJECT:BUILDING]
[BUILDING_WORKSHOP:SOAP_MAKER]
...

Is this broken, something I need a special case for, or am I just misunderstanding how things are associated?
Logged

3

  • Bay Watcher
    • View Profile
Re: Parsing the raws
« Reply #1 on: August 29, 2010, 05:49:40 am »

Yes, and from what I know off the top of my head, yes, that's the way it works.
Logged

ouroborus

  • Bay Watcher
    • View Profile
Re: Parsing the raws
« Reply #2 on: August 30, 2010, 12:53:44 am »

Well, anyway, if anybody's interested, my current results are on the wiki.
Logged