Python Modding

Thanks this is great
 
I've updated it again. Changes:

-Added superweapons:

You must add a PROJECT_ and a UNIT_ for the following:

  • DEATH_STAR_PROTOTYPE
  • DEATH_STAR
  • DEATH_STAR_II
  • WORLD_DEVASTATOR
  • GALAXY_GUN
  • MASS_SHADOW_GENERATOR
  • DARK_REAPER
  • SUN_CRUSHER
  • CENTERPOINT_STATION

You must also add a PROMOTION_PROCESSING, which is applied to World Devastators once they are processing material from a planet. You can also make this weaken the World Devastator... maybe make it unable to move? And you need to add a FEATURE_GRAVITY_WELL. For now, I suggest using the Black Hole graphics, but maybe resizing it to be smaller (take up less plots) would be good. It should have a high movement cost.

Finally for Superweapons, the following units are "processeable" by the World Devastator and should be in the game:

Code:
		lProcesseableUnits = [	'UNIT_TIE_FIGHTER', 'UNIT_TIE_BOMBER', 'UNIT_TIE_DEFENDER',
								'UNIT_AT-AT', 'UNIT_AT-ST', 'UNIT_DREADNOUGHT','UNIT_INTERDICTOR']

-Added Starbases:

The following Starbase stuff must be added.

  • BUILD_STARBASE_I (Builds IMPROVEMENT_STARBASE)
  • BUILD_STARBASE_II (Builds IMPROVEMENT_STARBASE)
  • BUILD_STARBASE_III (Builds IMPROVEMENT_STARBASE)
  • UNIT_STARBASE_I
  • UNIT_STARBASE_II
  • UNIT_STARBASE_III
  • IMPROVEMENT_STARBASE

You'll also need to add some kind of space construction ship (you could use the Final Fronter unit for that) to be able to build a starbase.

(None of this is in the spoiler on the first post yet. It will be added eventually).
 
I'll get on this as soon as I finish with the new SDK code.
 
Since no one listened to civ_editor when he told them to repost their bugs in respective threads, I'm not sure if this was the only problem reported. But the attached CvEventManager.py below fixes a problem where certain nukes do not do anything.

In regards to the other issues identified as "python" issues:

1. If the Death Star has Force Regenerate, this is an XML issue... Buttons only appear for units with the Force promotions OR with the Ion pulse promotion. Or, Worldbuilder was used to give it those promotions.

2. While a mapscript issue, not a python issue, the reason Deer are in space is because the old Civ IV resources are still in the game. Resource placement is done in XML, not in the mapscript.
 

Attachments

Back
Top Bottom