Vadus
pretend the impossible
current Version : 0.1
Hi all,
let me present you the Unit Sandbox, with which you can rename and prepromote Units. These units can be built beside the original units.
The good thing is, that this system isn't touching the xml structure. Only GlobalContext is used, so that this ModComponent can be added to another mod easily
Because this UnitSandbox will be a part of my SpaceMod, you will find some scifi designations in the files, e.g. the most important class , which is called : SpaceMod.py . But anyone is free to use this UnitBox for his mod.
Changes in bigger files are surrounded with a comment containing the word 'Vadus' or 'SpaceMod' .
here are some screenshots explaining, how the Sandbox is working:
http://www.vadus.de/images/civ4Unitsandbox01.jpg
http://www.vadus.de/images/civ4Unitsandbox02.jpg
http://www.vadus.de/images/civ4Unitsandbox03.jpg
http://www.vadus.de/images/civ4Unitsandbox04.jpg
Many Thanks to talchas, Belizan, Kael and 12monkeys for answering my questions here
Installation
Unzip the file to your Civ4 Mod folder, and start the Mod 'Vadus' .
Current Problems :
1. Don't swich from civ to windows, while you have the SandBox Screen open,
because internal variables will be reinitialized (which means that the civ variables will be refreshed, and the SpaceMod internals deleted), and the SandBox System won't work anymore
2. I can't find the code lines for setting the name of the unit, which is currently built by a city, at the cities textbars on the map (not in city screen) ! So, where you can see the city name and the current production...
3. Same thing with the unit name of the city production bar in the cityscreens header.
Future Features
1. UnitList of predefined units will be saved, too, so that the player will get the old unitlists when he loads a game.
2. Buttons of the UnitSandbox Screen : Remove and Replace a predefined unit
3. Change the unit costs, depending on the amount of promotions
4. Change the List of Available Promotions by regarding the promotions dependencies
5. Set the Unit MaxHitpoints with the Sandbox, if possible
It would be great, if anyone wants to help me out a bit, because I have only time in the late evening to do something. And with my hole spacemod project, changes to this will take much much time ..
Hi all,
let me present you the Unit Sandbox, with which you can rename and prepromote Units. These units can be built beside the original units.
The good thing is, that this system isn't touching the xml structure. Only GlobalContext is used, so that this ModComponent can be added to another mod easily

Because this UnitSandbox will be a part of my SpaceMod, you will find some scifi designations in the files, e.g. the most important class , which is called : SpaceMod.py . But anyone is free to use this UnitBox for his mod.
Changes in bigger files are surrounded with a comment containing the word 'Vadus' or 'SpaceMod' .
here are some screenshots explaining, how the Sandbox is working:
http://www.vadus.de/images/civ4Unitsandbox01.jpg
http://www.vadus.de/images/civ4Unitsandbox02.jpg
http://www.vadus.de/images/civ4Unitsandbox03.jpg
http://www.vadus.de/images/civ4Unitsandbox04.jpg
Many Thanks to talchas, Belizan, Kael and 12monkeys for answering my questions here

Installation
Unzip the file to your Civ4 Mod folder, and start the Mod 'Vadus' .
Current Problems :
1. Don't swich from civ to windows, while you have the SandBox Screen open,
because internal variables will be reinitialized (which means that the civ variables will be refreshed, and the SpaceMod internals deleted), and the SandBox System won't work anymore
2. I can't find the code lines for setting the name of the unit, which is currently built by a city, at the cities textbars on the map (not in city screen) ! So, where you can see the city name and the current production...
3. Same thing with the unit name of the city production bar in the cityscreens header.
Future Features
1. UnitList of predefined units will be saved, too, so that the player will get the old unitlists when he loads a game.
2. Buttons of the UnitSandbox Screen : Remove and Replace a predefined unit
3. Change the unit costs, depending on the amount of promotions
4. Change the List of Available Promotions by regarding the promotions dependencies
5. Set the Unit MaxHitpoints with the Sandbox, if possible
It would be great, if anyone wants to help me out a bit, because I have only time in the late evening to do something. And with my hole spacemod project, changes to this will take much much time ..