Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Raw to XML  (Read 737 times)

madk

  • Bay Watcher
    • View Profile
    • pineapplemachine
Raw to XML
« on: July 24, 2012, 12:50:37 pm »

How useful would it be to modders if there were a tool to convert raws to XML and back? I'm working on a raws parser for no reason in particular and thought I should make it useful.

IndigoFenix

  • Bay Watcher
  • All things die, but nothing dies forever.
    • View Profile
    • Boundworlds: A Browser-Based Multiverse Creation and Exploration Game
Re: Raw to XML
« Reply #1 on: July 24, 2012, 02:19:29 pm »

I could see that as being useful for mod-maker-makers.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Raw to XML
« Reply #2 on: July 24, 2012, 03:37:05 pm »

I seem to recall that such a tool already exists. A quick search turns up this and this, and there's probably more.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Toxicshadow

  • Bay Watcher
    • View Profile
    • github
Re: Raw to XML
« Reply #3 on: July 24, 2012, 04:04:21 pm »

Why would you need XML for DF Tokens?
I guess if you were writing a program that could read/write to XML but for some reason not square brackets, it'd be helpful, but idk.

Also, what are you writing it in, and will you release the source code? lol
Logged
Quote
'ere the Chias get hungry...

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Raw to XML
« Reply #4 on: July 24, 2012, 07:53:11 pm »

Raw Explorer actually has an internally implemented Raw Parser.  It parses in to a strongly typed object model rather than XML.  If there is interest I could package that up and release it as a library for others.  I'm not sure what language your's would be, but this would work with anything .NET based.
« Last Edit: July 24, 2012, 08:44:10 pm by BradUffner »
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0