Exploding-Planet.com

Kam Check! - Kamakaze's Weblog

2002-10-13 21:41:45 GMT I impress myself

After not doing much work on voidwars I decided to at least do something for it, so coded a simple addition to our "admin" tools, that listed all the techs required and how how long it would take to get each one including all the sub techs required.

Surprisingly it seemed to work pretty much first time so I left it at that. After looking over it again I then realised that it did vaguely work because of the sequential order of the techs added, ie. later techs have higher id's that techs lower down. The way it worked was that it was supposed to loop through all the techs, marking all the ones that can be done from the current techs available and filling in their costs, then being the loop again marking any techs that are now available to research.

The loop ends when all the techs are marked as completed. However i forgot this loop and just went over the techs once, which resulted in most techs seemingly being in the right place, but leaving the odd tech that must have been inserted later, hanging around with no time required. After fixing some other bugs that appeared I am now much happier about it as I knew I did it far too quickly the first time for it to be correct =)

Add CommentCategories: Voidwars