Speaking of disabling: We add a the functionality to display big red crosses when an item is disabled. Also, some squares will be disabled for 30 out of 31 civilizations, but whatever. Unfortunately, this means that it gets even wider than the original version(s). Instead, we create a “master” technology tree which contains the elements of all technology trees in the game. Next we notice that some civilizations have unique units, which move parts of the tree around when they are inserted.Ĭrestfallen, we exclaim “Oh no!” and scrap the idea of an accurate representation of the in-game tech tree, because while we are rather motivated, we are first and foremost lazy programmers.
We devise a clever algorithm to recreate the desired layout that contains the data we collected before. Our next step is to collect all available building, unit and technology names. We start by analyzing the layout of the in-game technology tree:
Sometimes, players wish to access the technology tree for one or more civilizations without having the game open, to see which units, buildings or technologies are available to a civilization. The leftmost part of the Japanese technology tree