Anyway to get Dwarf info in JSON format?

I am brand new to this game. Loving it so far! I have a question that I figured only the fine people on this sub could answer:

Can I get my Dwarf info [name, jobs, etc...] output into a JSON file? I know that Dwarf Therapist uses some wizardry to get all that info in a nice format, but I am looking for something more rudimentary.

Any advice you can offer me, I appreciate.

Thanks!

Posted Sep 13, 2014, 2:57 AM UTC

22
PeridexisErrant•

What are you trying to do with it?

DFHack is going to be your friend here, since I know there's a number of scripts which access and some that export information. I don't think there's one that exports dwarves to .json, but you could probably write one in lua if you ask for help in the dfhack thread with variable names.

4
KempfCreativeOP•

I wrote a simple Angular template where you can search through a list based on parameters. I was hoping to update it with Dwarf info.

I will definitely check out both DFHack and Lua, as well as the boards.

Thanks for the help.

1