TC01
Deity
Last Updated: 9/24/09
So I've been charged with writing the python code that is needed to make this mod work. So this thread is mainly so I don't clutter up the other one.
As I add to the code, I'm going to do it in the original Civ 4 python files (copied over, of course), rather than in the Final Frontier ones. This is mainly so I don't have to mess with the solar system code.
Currently, I've done/am working on:
If someone has a request for what should go into the Star Wars mod python code, post here. I'll tell you if I can do it, if I need to post in the main C&C forum to get other opinions, on how to it, or if you need an SDK/DLL/C++ modder to get done what you want to do. And, if you have a bug in what I have written, post it here.
Below, in spoilers for size, is a list of everything that is referenced in Python that is coded in the XML. Mapscript stuff not included. If you have a question on what something there should do, please ask here.
Credits:
-TC01
-civ_editor11
-Jawa's Revenge
-God-Emperor
-The_J
Latest Version:
So I've been charged with writing the python code that is needed to make this mod work. So this thread is mainly so I don't clutter up the other one.
As I add to the code, I'm going to do it in the original Civ 4 python files (copied over, of course), rather than in the Final Frontier ones. This is mainly so I don't have to mess with the solar system code.
Currently, I've done/am working on:
Code:
-Make mapscript use planets instead of solar systems [COLOR="Red"][Complete][/COLOR]
-Adding python action buttons for "force powers" [COLOR="Red"][Complete][/COLOR]
-Limit building of specific units to specific planets [COLOR="Red"][Complete][/COLOR]
-Add an Ion Pulse python action button to certain fighter craft [COLOR="Red"][Complete][/COLOR]
-Add Superweapons, created by projects, with unique nuke abilities. [COLOR="Red"][Complete][/COLOR]
-Add Starbases from Final Frontier [COLOR="Red"][Complete][/COLOR]
-Make the Star Forge improvement provide units every turn randomly if you control it [COLOR="Red"][In progress][/COLOR]
-Fix any reported bugs
If someone has a request for what should go into the Star Wars mod python code, post here. I'll tell you if I can do it, if I need to post in the main C&C forum to get other opinions, on how to it, or if you need an SDK/DLL/C++ modder to get done what you want to do. And, if you have a bug in what I have written, post it here.
Below, in spoilers for size, is a list of everything that is referenced in Python that is coded in the XML. Mapscript stuff not included. If you have a question on what something there should do, please ask here.
Spoiler :
Units:
This is a nuke that has a special nuke ability.
UNIT_DEATH_STAR
Terrains:
This is space terrain.
TERRAIN_TUNDRA
Features:
Forest is asteroids (see Final Frontier), while Planet Core has no graphics but is important to the mapscript and random planets.
FEATURE_FOREST
FEATURE_PLANET_CORE
Promotions:
Force Ability Prereqs: These promotions form two chains, Light Side and Dark Side. Each should individually be available to a Unit Combat Jedi and Unit Combat Sith. Each ability is a requirement for a certain force ability- but this is handled in python. They should also decrease combat strength of their owners to balance force abilities.
PROMOTION_LIGHT_SIDE_1
PROMOTION_LIGHT_SIDE_2
PROMOTION_LIGHT_SIDE_3
PROMOTION_LIGHT_SIDE_4
PROMOTION_DARK_SIDE_1
PROMOTION_DARK_SIDE_2
PROMOTION_DARK_SIDE_3
PROMOTION_DARK_SIDE_4
PROMOTION_ION_BLAST
Force-Awarded Promotions: All of these promotions should not be awardable to any specific unit. They are all attached via force action abilities and removed on the next turn.
PROMOTION_BATTLE_MEDITATION
PROMOTION_ION_BLASTED
PROMOTION_MIND_TRICKED
PROMOTION_FORCE_CONCEALED
Buildings:
Planetary Buildings: Each is built via python and thus should be unbuildable, but should have a 100% chance to survive invasion. Specific units can be made the prereqs for individual worlds.
BUILDING_BALMORRA
BUILDING_FOEROST
BUILDING_FONDOR
BUILDING_MECHIS_III
BUILDING_MUSTAFAR
BUILDING_NELVAAN
BUILDING_ORD_CESTUS
BUILDING_QUEYTA
BUILDING_SALUECAMI
BUILDING_SKAKO
BUILDING_TAR_MORDEN
BUILDING_TELTI
BUILDING_VULPTER
BUILDING_XAGOBAH
This is a nuke that has a special nuke ability.
UNIT_DEATH_STAR
Terrains:
This is space terrain.
TERRAIN_TUNDRA
Features:
Forest is asteroids (see Final Frontier), while Planet Core has no graphics but is important to the mapscript and random planets.
FEATURE_FOREST
FEATURE_PLANET_CORE
Promotions:
Force Ability Prereqs: These promotions form two chains, Light Side and Dark Side. Each should individually be available to a Unit Combat Jedi and Unit Combat Sith. Each ability is a requirement for a certain force ability- but this is handled in python. They should also decrease combat strength of their owners to balance force abilities.
PROMOTION_LIGHT_SIDE_1
PROMOTION_LIGHT_SIDE_2
PROMOTION_LIGHT_SIDE_3
PROMOTION_LIGHT_SIDE_4
PROMOTION_DARK_SIDE_1
PROMOTION_DARK_SIDE_2
PROMOTION_DARK_SIDE_3
PROMOTION_DARK_SIDE_4
PROMOTION_ION_BLAST
Force-Awarded Promotions: All of these promotions should not be awardable to any specific unit. They are all attached via force action abilities and removed on the next turn.
PROMOTION_BATTLE_MEDITATION
PROMOTION_ION_BLASTED
PROMOTION_MIND_TRICKED
PROMOTION_FORCE_CONCEALED
Buildings:
Planetary Buildings: Each is built via python and thus should be unbuildable, but should have a 100% chance to survive invasion. Specific units can be made the prereqs for individual worlds.
BUILDING_BALMORRA
BUILDING_FOEROST
BUILDING_FONDOR
BUILDING_MECHIS_III
BUILDING_MUSTAFAR
BUILDING_NELVAAN
BUILDING_ORD_CESTUS
BUILDING_QUEYTA
BUILDING_SALUECAMI
BUILDING_SKAKO
BUILDING_TAR_MORDEN
BUILDING_TELTI
BUILDING_VULPTER
BUILDING_XAGOBAH
Credits:
-TC01
-civ_editor11
-Jawa's Revenge
-God-Emperor
-The_J
Latest Version: