Better information in the techboxes of the techtrees
Steps to introduce informations about specialists, new forms of agreements, embassies, sea- and ocean-trade, communication-trade, pacts, resources and other stuff directly in the techtree (but first make copies from all files you edit !).
A) Common steps for all additional infos appearing in the techtree:
1. Create an era-none tech
2. Create a special improvement (imp) that only can be built with that era-none tech.
3. Add the new info for the techtree as new improvement in the editor:
a) Do the pediaicon-entry for the new building (like you would do it with a normal imp.)
b) Put the icons (lg and sm) for the new info in the folder civilopedia/icons/buildings
c) Do the civilopedia-entry for this “building” (BLDG_***)
4. Make the “era-none “-improvement (=>step 2) a perequisite for the “info-imp.”
5. Connect the “info-imp” with the proper advance in the editor
B) Additional steps for special civilopedia-graphics still existing but normally not viewing up in the techbox of the techtree (especially resources). In the editor you can´t change the entry for resources from GOOD_ to BLDG_ without a crash of the game. The entry GOOD_ in the editor (not in the civilopedia) seems necessairy, that the game treats the resource as a resource in gameplay.
As you can´t change the entry above for resources in the editor and the computer makes its hardcoded entry on the “GOOD_ level”, you have two strings of information in the civilopedia, if you do the above steps 1 – 5 for creating a “resource-info-imp. Fix:
1. The techbox shows the resource from the “info-imp.
2. When clicking on that techbox, this resource appears twice on the
info-page:
a) In the improvement-column appears the resource icon from
the “info-imp”.
b) In the resource-column appears the hardcoded resource icon
3. Elimination of the hardcoded resource icon:
a) 5 (or more) units given by that advance or 5 (or more) normal
improvements eliminate the hardcoded resource icon from the
advance-info page.
b) Make the info-imp-icon the first if you have more improvements in
the improvement-column of that advance, by typing the space tab
in front of the name of the “info-imp in the editor.
C) The prime advantage with this methode is, that you can see
important additional information in the techboxes of the techtree
when you decide what to research next. The additional advantage
of this methode is, that you avoid the resource-overflow-bug,
when you click in the techbox and than in the (corrected)
resource info as you don´t use the hardcoded resource-page any
longer. Manoeuvring through the civilopedia in the traditional way
(ctrl-C) is still possible, but here the resource-overflow-bug still
exists. Third advantage: The new info-icons are lookin cool.
Edited: Step 3d) was deleted after PCHighway posting (#19)