Here's something I threw together that might be useful. It will let you modify the tech tree using the Lua console.
Usage instructions: Extract these two files into the lua folder of your test of time installation. Load an instance of the scenario you wish to modify, open the lua console, press the load script button, and select techTree.lua (the default folder should be the lua folder in your TOT directory, where we extracted this to). This will give you access to a couple functions
This command will print the entire CIVILIZE rules for the current scenario to the console. If you've made any changes to technologies in the console, they will be reflected in the new ruleset. Most LUA changes to stuff found in the rules.txt don't 'stick' after a re-load, including all changes to the tech tree, so this command prints new rules that you can cut and paste over the current ones. However, while the game is still open, you can see the modifications, for example in the civlopedia.
This will open a menu to choose a technology. Use in place of civ.getTech(id), if you don't know the id off the top of your head.
Let's you change the prerequisites of a technology by using three menus instead of writing the lines of code.
You can make other changes by typing code into the Lua console. For example, the line
Code:
civ.getTech(0).aiValue = 3
Changes the aiValue of technology 0. If you wanted to select the technology from a menu, you would write
and a menu would appear to let you select the technology. Unfortunately, due to a limitation of TOTPP, you can't change the name of the technology in the console. See the
Lua Function Reference for the changes that can be made.
Limitations:
1. You can't change tech names, unfortunately.
2. TOTPP Lua can't distinguish between nil and no prerequisites, so all no prereqs are changed to nil when printing out the new rules.
3. This has had almost no testing, so you might find bugs.
If this is useful, I might do some more work on it.