Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Raw Files  (Read 495 times)

Porpoisepower

  • Bay Watcher
  • For Surely he is the Cuisinart Hat Rack
    • View Profile
Raw Files
« on: September 25, 2010, 09:35:19 am »

Hey probably stupid question but... why isn't Toady using XML for the RAWs?
Logged
That's what DF needs, The gutbuster brigade.  Screw that elf and his cat. Thibbledorf Pwent is the real hero.

Gearheart

  • Bay Watcher
    • View Profile
Re: Raw Files
« Reply #1 on: September 25, 2010, 10:37:22 am »

I would imagine it's based on .txt files so that players can edit things as they like.
Logged

GaxkangtheUnbound

  • Bay Watcher
  • To the skies!
    • View Profile
Re: Raw Files
« Reply #2 on: September 25, 2010, 12:26:02 pm »

I would imagine it's based on .txt files so that players can edit things as they like.
Why not XML for the hardcoded stuff, then?
Logged
Proud of my heritage.
Prepare to lose your sanity.

Porpoisepower

  • Bay Watcher
  • For Surely he is the Cuisinart Hat Rack
    • View Profile
Re: Raw Files
« Reply #3 on: September 26, 2010, 12:10:31 am »

I would imagine it's based on .txt files so that players can edit things as they like.
Why not XML for the hardcoded stuff, then?

XML is plain text ;)
Logged
That's what DF needs, The gutbuster brigade.  Screw that elf and his cat. Thibbledorf Pwent is the real hero.

rex mortis

  • Bay Watcher
    • View Profile
Re: Raw Files
« Reply #4 on: September 26, 2010, 01:56:19 am »

So it is inherently neither better, nor worse than the current raws.
Logged
Because death is peaceful and magma is lovely.

Porpoisepower

  • Bay Watcher
  • For Surely he is the Cuisinart Hat Rack
    • View Profile
Re: Raw Files
« Reply #5 on: September 26, 2010, 09:09:03 am »

I see a couple advantages...

Minor point: There are a freely available parsers for XML that might provide more efficient parsing, and could simplify his code. Granted, Raw file parsing peformance wouldn't likely be noticable. And I doubt Toady's had to touch his parsing code in years.

3. The real benefit would be that an XML version of the raws would be much more readable. Not only in structure, but also most text editors built for writing XML provide text formatting, that make it easy to identify tags, and values.
Logged
That's what DF needs, The gutbuster brigade.  Screw that elf and his cat. Thibbledorf Pwent is the real hero.