whoward69
DLL Minion
G&K added Airships (aka hovering units) for the Steampunk scenario, but the implementation is half-hearted and the usual "just enough" to get the scenario working.
The "Crosses Mountains" trait was also added for Carthage, with units taking 50 damage if they end their turn on a mountain, but the implementation uses a hard-coded damage value, and also (weirdly) applies it to helicopters.
These have bugged me since G&K was released, so my current mission is to rectify some of the short-comings, hard-codings and bugs (mainly in the path finder code that doesn't really allow for damage from mountains and does weird things with embarked helicopers being able to sail through ice-floes!) and also to add some other features (eg, being able to hover over both coastal and ocean ice)
If you would like to experiment with the short term goals, the attached zip contains a sample "Units - Steampunk Airships" (and also the latest DLL mod needed by it) and a saved game with a couple of Airships and a Sky Fortress already to take on your foes!
EDIT: See post #22 for the latest versions
Note 1: There are some table updates in the Airships mod which are only in there during testing - eventually they will be moved out into their own mod(s)
Note 2: The deep water embarked code is bugged in the code attached to this post. If you try to enable it within the options xml file, the DLL will crash the game eventually! The code in post #22 should work correctly.
Short Term Goals - ALL DONE
The "Crosses Mountains" trait was also added for Carthage, with units taking 50 damage if they end their turn on a mountain, but the implementation uses a hard-coded damage value, and also (weirdly) applies it to helicopters.
These have bugged me since G&K was released, so my current mission is to rectify some of the short-comings, hard-codings and bugs (mainly in the path finder code that doesn't really allow for damage from mountains and does weird things with embarked helicopers being able to sail through ice-floes!) and also to add some other features (eg, being able to hover over both coastal and ocean ice)
If you would like to experiment with the short term goals, the attached zip contains a sample "Units - Steampunk Airships" (and also the latest DLL mod needed by it) and a saved game with a couple of Airships and a Sky Fortress already to take on your foes!
EDIT: See post #22 for the latest versions
Note 1: There are some table updates in the Airships mod which are only in there during testing - eventually they will be moved out into their own mod(s)
Note 2: The deep water embarked code is bugged in the code attached to this post. If you try to enable it within the options xml file, the DLL will crash the game eventually! The code in post #22 should work correctly.
Short Term Goals - ALL DONE
- Add configurable terrain damage (like feature damage)
- Replace fixed 50hp damage from mountains with terrain based damage (treat PLOT_MOUNTAIN as TERRAIN_MOUNTAIN)
- Give mountains a configured damage value of 20hp (down from 50hp)
- IgnoreTerrainDamage promotion feature
- IgnoreFeatureDamage promotion feature
- Give ice a configured damage value of 10hp
- Give subs the IgnoreTerrainDamage/IgnoreFeatureDamage promotion features
- Make Helicopters hover over coast, accept they can never embark so cannot enter deep water
- Make hovering units be able to hover over ice (coast or deep water) taking damage
- Add Airship as a graphical variant of the helicopter
- Add Sky Fortress unit which can hover over any terrain taking no damage
- Create a CanCrossMountains promotion feature
- Create an Alpine Corp promotion (can enter mountains without taking damage) for land units
- Create a HalfMoves promotion feature (opposite of double moves)
- Add configurable extra terrain and feature damage
- ExtraTerrainDamage promotion feature
- ExtraFeatureDamage promotion feature
- Create a CanCrossOceans promotion feature (ships may enter the ocean without the required tech)
- Create an Ocean Explorer promotion (CanCrossOceans plus half moves in oceans plus takes damage from oceans)
- Give the Viking Longboat UU the Ocean Explorer promotion (not done)
- Create a DeepWaterEmbarkation promotion feature, such that units embark at the coast/ocean boundary
- Give hovering units the DeepWaterEmbarkation promotion feature
- Option for hovering units to be able to attack coastal ships (not done)
- Create a CanCrossIce promotion feature (done)
- Create an Arctic Corp promotion (can enter ice without taking damage) for land units (done)
- Create an Ice-Breaker promotion for naval units (thanks to Nutty for this one) (done)
- Create a CanCrossIce trait feature (done, needs testing)
- Create a CrossesWithGreatPerson trait feature
- Create a trait Arctic Nation (CanCrossIce) (for the Innuit?) (done, needs testing)
- Enable ice on land (glaciers and ice-sheets) - may already be possible, I haven't checked