Rise And Fall Development
TechTree.dat: This file will be escentially the same as I have stated before. (below) The only major difference is the description is going to be included in this file. I am going to keep it fairly close to the civ tech tree type. Techs will only have a max of 2 prerequisits. I was thinking of more, but I donít want to complicate things more than they should be, and on average 2 prerequisits will do. The file will contain this data: Tech Name, Tech Discription, AI stuff, Prerequisits, an Epoch, a category, what races can have it, and any special events or bonuses for having it.
TechTree.txt: This file will contain the following information. I am going to keep it fairly close to the civ tech tree type. Techs will only have a max of 2 prerequisits. I was thinking of more, but I donít want to complicate things more than they should be, and on average 2 prerequisits will do. Each line in the file will contain a list like this.
TechNumber, TechName, AI, Modifier, PreReq1, PreReq2, Epoch, Category, RaceCanHave?, picture
TechNumber: This is a number, place holder for users making tech trees. It is used by the PreReq1, and PreReq2, to save having to build a tree in my program using the tech names.
1 "Gun Powder" 10 2 0 0 3 4 11112200 "techGunPowder.jpg"
This basically says that the bullet can be researched once you research gun powder and metalworking. It also says that race 5 and 6 can only steal gunpowder and metalworking, but can research bullet after words. And it also says that race 7 can only steal the bullet.
It is important to notice that the tech tree dosenít actually do anything, but allow players to research and learn new technologies. Links in other places will allow for these technologies to be used. For example, an item in the Units.txt file will only allow players to make riflemen after the bullet is researched. It is possible that later I may add a flags list the TechTree.txt file that will allow some things to happen based on a tech research, but there is a limit on the number of flags that need to be added. Requirements make things easier than flags.