Version 1.1
Changes:
- Improved the arrow drawing algorithm. Now the view should be less cluttered.
- Removed all the unnecessary code from the library that the mod depended upon. This cut the size of the mod from ~300K to ~30K
- Moved the arrow drawing code into a new file, so that if arrow drawing is changed again, there will be no need to merge existing files, just overwrite the files introduced by the mod.
Version 1.0 Removed after 205 downloads.
This mod will add a new page to the civilopedia, displaying the unit upgrade paths.
It is inspired by this here diagram:
I thought it was very useful and wanted to add a screen to the pedia that does that automatically. The results of my first attempt are shown below:
Mouse over unit portraits to get additional unit info. Click unit portraits to go to the detailed 'Pedia entry on the particular unit.
The view is kinda convoluted, but this is generated automatically, so it will be updated if another mod is applied. Also, I used a very simple graph layout algorithm I wrote myself to put the buttons on. So if you can find an open-source algorithm that works better and is written in Python, feel free to tell me. I might incorporate it into the mod.
Credits go to the NetworkX library, which is what I used to generate the upgrade graphs. (And whose layout algorithms unfortunately depend on a library written in C and I couldn't get pyd files to load, so I ended up rolling my own ...)
Enjoy.
PS: Installation instruction are available in the mod readme.
Changes:
- Improved the arrow drawing algorithm. Now the view should be less cluttered.
- Removed all the unnecessary code from the library that the mod depended upon. This cut the size of the mod from ~300K to ~30K
- Moved the arrow drawing code into a new file, so that if arrow drawing is changed again, there will be no need to merge existing files, just overwrite the files introduced by the mod.
Version 1.0 Removed after 205 downloads.
This mod will add a new page to the civilopedia, displaying the unit upgrade paths.
It is inspired by this here diagram:
I thought it was very useful and wanted to add a screen to the pedia that does that automatically. The results of my first attempt are shown below:
Mouse over unit portraits to get additional unit info. Click unit portraits to go to the detailed 'Pedia entry on the particular unit.
The view is kinda convoluted, but this is generated automatically, so it will be updated if another mod is applied. Also, I used a very simple graph layout algorithm I wrote myself to put the buttons on. So if you can find an open-source algorithm that works better and is written in Python, feel free to tell me. I might incorporate it into the mod.
Credits go to the NetworkX library, which is what I used to generate the upgrade graphs. (And whose layout algorithms unfortunately depend on a library written in C and I couldn't get pyd files to load, so I ended up rolling my own ...)
Enjoy.
PS: Installation instruction are available in the mod readme.
Comment