average_communism_enjoyer
Chieftain
- Joined
- Apr 2, 2025
- Messages
- 3
I was inspired by St. Leo's work on his linter tool (https://forums.civfanatics.com/threads/tool-civ2lint.693514/) so I wrote a quick and dirty tool for generating a visual graph of a tech tree from RULES.TXT
It is very simple. You load the RULES.TXT and it prints a DOT document you can load in graphviz to generate a directed graph. It isn't very optimized or pretty, but can still be helpful to someone i hope! Next post has a couple examples - the tech tree from the base game and from the DINOSAUR and MOMJR scenarios.
I have tested it with a couple MGE scenarios (and a scenario i'm working on myself). It crashes on the MARS and XCOM scenarios... so there are some bugs!
I put the source code on github, along with compiled linux and windows executables: https://github.com/hoodlm/civ2-tech-tree-visualizer/releases/tag/v0.0.0.0.1
[edit: attachments seem corrupted. i attached them to the reply.]
It is very simple. You load the RULES.TXT and it prints a DOT document you can load in graphviz to generate a directed graph. It isn't very optimized or pretty, but can still be helpful to someone i hope! Next post has a couple examples - the tech tree from the base game and from the DINOSAUR and MOMJR scenarios.
I have tested it with a couple MGE scenarios (and a scenario i'm working on myself). It crashes on the MARS and XCOM scenarios... so there are some bugs!
I put the source code on github, along with compiled linux and windows executables: https://github.com/hoodlm/civ2-tech-tree-visualizer/releases/tag/v0.0.0.0.1
[edit: attachments seem corrupted. i attached them to the reply.]
Last edited: