Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Visualizing DFHack/df-structures  (Read 706 times)

seyedaed

  • Bay Watcher
  • In honor of Zutthan Govoslorbam
    • View Profile
    • Twitchin
Visualizing DFHack/df-structures
« on: February 16, 2019, 09:46:36 am »

Hi everyone,

I was curious to see if there was an easier way to go through DFHack/df-structures rather than searching the xml files.  I read a couple of posts from others wanting to find ways to navigate them easier but didn't come across anything I was really looking for.

Anyway, I was able to get a small hacky script to look at some of the things I was curious about.  I wanted to share some things in case anyone else is interested or maybe has better ways of doing this. 

I'm sharing a few of the images I created in case they might be useful or if they might help with other ideas.

Please make sure use the zoom in button.  Also if anyone knows a better way to host svgs it will be appreciated.

This is a preview of df.global.world.units its not as sexy as the SVGs

Spoiler (click to show/hide)

The following were made with two different lua scripts for interacting with graphviz.

The first was made using lua-graphviz and some custom coding.  lua-graphviz is available here: https://github.com/Nymphium/lua-graphviz

https://www.dropbox.com/s/5m7ry46v019s5fy/dfglobalworlduserdata.svg

The second two were created using lua microscope. Microscope is fairly easy to start.  However, it sometimes results in very large files and data that might be too extensive for modding. Also, I couldn't find an easy way to recurse the tables.  Microscope is available here: http://siffiejoe.github.io/lua-microscope/
 
https://www.dropbox.com/s/f23kirxpejhikkv/dfglobalworldmeta.svg

https://www.dropbox.com/s/z3fmi3hf8yc1eqt/dfglobalmeta.svg

I hope someone might find some this as useful as I had fun playing with it. Feel free to hit me up, if you want more information about this.

Also, I might have an error in my code, so some items might be missing or referenced weird.
« Last Edit: February 16, 2019, 09:54:22 am by seyedaed »
Logged
We honor Zutthan Govoslorbam: "For having one of the most exciting, yet boring lives ever."

Gitlab:   https://gitlab.com/deadeyesisnewb/
Twitch:   https://www.twitch.tv/seyedaed/
Twitter:  https://twitter.com/adwarfslife

seyedaed

  • Bay Watcher
  • In honor of Zutthan Govoslorbam
    • View Profile
    • Twitchin
Re: Visualizing DFHack/df-structures
« Reply #1 on: February 16, 2019, 09:54:41 am »

These are better links for the SVGs. Warning these images are huge.

dfglobalworlduserdata
Spoiler (click to show/hide)

dfglobalworlduserdata
Spoiler (click to show/hide)

dfglobalmeta
Spoiler (click to show/hide)
« Last Edit: February 16, 2019, 10:03:49 am by seyedaed »
Logged
We honor Zutthan Govoslorbam: "For having one of the most exciting, yet boring lives ever."

Gitlab:   https://gitlab.com/deadeyesisnewb/
Twitch:   https://www.twitch.tv/seyedaed/
Twitter:  https://twitter.com/adwarfslife