1
DF Dwarf Mode Discussion / Re: Dorf Genealogy a.k.a. I have no life
« on: November 02, 2013, 09:18:23 am »I actually used myheritage to build a family tree for one of my games in Crusader Kings I, which didn't have an in-game gui for that, beyond showing the selected characters parents, siblings, children, and IIRC grandparents and grandchildren.When I saw this my first thought was "oh yeah, I did that too but I scripted it instead" because manual labor is for dwarves. I don't think it's my code on the CK forums though, but I know that somebody did something similar.
Anyway, back on track: It shouldn't be too complex to code a family tree generator (somebody did one for CKI, I think), although I probably wouldn't be able to do it myself, at least not just with what I know now. Assuming the dfhack dwarfexport command includes familial relations (and if it doesn't, can a similar script be made?), it shouldn't be much more than first identifying dwarfs based on their names, then recording the relations they have in their descriptions, then building the family tree off of comparing those links. I initially thought 2 dwarves with the same name might cause trouble, but they'd of course have different family ties.
I might have to look into how dfhack looks and works -- I've been away from the game for... oh, 2 years? and just now returned. Parsing the file shouldn't be much harder than CK2's save files. At least I hope it's not.
Edit: oh well, someone already did something. I guess that means I'm off the hook.


