Tech tree generator

For AI and campaign script related discussions and questions
Post Reply
User avatar
Berserk Cyborg
Code contributor
Code contributor
Posts: 655
Joined: 26 Sep 2016, 19:56

Tech tree generator

Post by Berserk Cyborg » 09 Jan 2019, 20:17

Introduced a decade ago in ticket #423, a little python script was made to generate a visual graphic of a research tree. Somehow got the tech tree generator to work with the JSON stat files (been years since I last did something in python, lol).

Don't know if it can be used anymore to update the beta guide research graphic, but if not, oh well. Requires pydot and graphviz. I used python 3 (3.6.7 is on my system) and it seemed to generate everything fine.

patch_and_graphic.zip
(77 KiB) Downloaded 1 time

Edit: Cleaned it up and linted it to remove several warnings. Accidentally used researchPower instead of researchPoints with the first patch, so fixed.

Edit2: Fixed plasma-cannon and emp weapon edge colors.
Edit3: Should generate the graph a little bit quicker now.

User avatar
Berg
Regular
Regular
Posts: 2063
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Tech tree generator

Post by Berg » 10 Jan 2019, 05:22

Berserk Cyborg wrote:
09 Jan 2019, 20:17
Introduced a decade ago in ticket #423, a little python script was made to generate a visual graphic of a research tree. Somehow got the tech tree generator to work with the JSON stat files (been years since I last did something in python, lol).

Don't know if it can be used anymore to update the beta guide research graphic, but if not, oh well. Requires pydot and graphviz. I used python 3 (3.6.7 is on my system) and it seemed to generate everything fine.


patch_and_graphic.zip
Well done mister

Post Reply