MOD Problem

Gwydion62

Warlord
Joined
Apr 25, 2004
Messages
193
Location
Austria
Hi,

my Austrian MOD is working nicely so far... :) - even the leaderheads

But now I saw a new problem: my units have the airlift from begin of the game?!?
So I can paratroop eg my warriors in homeland 1 hex :(

I am using the jaegertroop MOD too...

I have no Idea why it happend and what to change. :confused:

Maybe someone can give me a clue? I put my mod as an attchment to this thread...

Thanks and kind regards
Gwydion

Info to the MOD:
I build it out of the Holy Roman Civ MOD - that's the reason for the names. I am so far not able to make my own MOD out of the ModBuddy ;) - and I integrated the Jaegertroop MOD too...
You can use it with all balance MOD's, the Medic MOD and the Economy MOD. R.E.D, the Barbarians and the City state diplomat and UU is also working together.
 
I ran into something similar when I had my icons bleeding into another civ. What it probably means is that something in your mod is named the exact same as something in the other mod.

To test this, delete the other mod (don't worry, you can restore it no probs from the recycle bin) and then run your mod. If everything runs as expected, then go through your XML (just a guess but if all of your units have this promotion, I'd say start with the traits) and give them unique names. After my experience, I've learned to name everything related to my civ, I.E. PrussiaIcon256 or Prussian Panzer Mk IV. It saves a ton of headaches from mod bleed.

I hope this helps :D
 
Thank's, will try it...

An other thing is that I have no idea if it is possible to upgrade a unit to a special Civ Unit?

EG.: My Glefenbürger to Landsknechte (I made them available for Austria as well) - with the normal entry it's not possible. I think that maybe it is because of german_ landsknecht is not a unittyp...

Would be nice to get some ideas :)

regards
 
Thank's, will try it...

An other thing is that I have no idea if it is possible to upgrade a unit to a special Civ Unit?

EG.: My Glefenbürger to Landsknechte (I made them available for Austria as well) - with the normal entry it's not possible. I think that maybe it is because of german_ landsknecht is not a unittyp...

Would be nice to get some ideas :)

regards

Actually, that's very easily done. Here is the XML of my Prussian Panzer IV:

Spoiler :
<GameData>
<Units>
<Row>
<Class>UNITCLASS_TANK</Class>
<Type>UNIT_PRUSSIAN_PANZER_IV</Type>
<PrereqTech>TECH_COMBUSTION</PrereqTech>
<Combat>60</Combat>
<Cost>450</Cost>
<Moves>5</Moves>
<CombatClass>UNITCOMBAT_ARMOR</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Description>TXT_KEY_UNIT_PRUSSIAN_PANZER_IV</Description>
<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_PANZER_IV_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_GERMAN_PANZER_IV_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_PANZER_IV</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
<Mechanized>true</Mechanized>
<GoodyHutUpgradeUnitClass>UNITCLASS_MODERN_ARMOR</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>50</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_U_GERMAN_PANZER</UnitArtInfo>
<UnitFlagIconOffset>58</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>39</PortraitIndex>
<MoveRate>WHEELED</MoveRate>
</Row>
</Units>
<Unit_ResourceQuantityRequirements>
<Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<ResourceType>RESOURCE_OIL</ResourceType>
</Row>
</Unit_ResourceQuantityRequirements>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<PromotionType>PROMOTION_CITY_PENALTY</PromotionType>
</Row>
<Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<PromotionType>PROMOTION_NO_DEFENSIVE_BONUSES</PromotionType>
</Row>
<Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<PromotionType>PROMOTION_SIGHT_PENALTY</PromotionType>
</Row>
<Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<PromotionType>PROMOTION_CAN_MOVE_AFTER_ATTACKING</PromotionType>
</Row>
</Unit_FreePromotions>
<Unit_Flavors>
<Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>20</Flavor>
</Row>
<Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>10</Flavor>
</Row>
<Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<FlavorType>FLAVOR_MOBILE</FlavorType>
<Flavor>14</Flavor>
</Row>
</Unit_Flavors>
<Unit_ClassUpgrades>
<Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<UnitClassType>UNITCLASS_MODERN_ARMOR</UnitClassType>
</Row>
</Unit_ClassUpgrades>
<Unit_AITypes>
<Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<UnitAIType>UNITAI_ATTACK</UnitAIType>
</Row>
- <Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<UnitAIType>UNITAI_DEFENSE</UnitAIType>
</Row>
- <Row>
<UnitType>UNIT_PRUSSIAN_PANZER_IV</UnitType>
<UnitAIType>UNITAI_FAST_ATTACK</UnitAIType>
</Row>
</Unit_AITypes>
<Civilization_UnitClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_GERMANY</CivilizationType>
<UnitClassType>UNITCLASS_TANK</UnitClassType>
<UnitType>UNIT_GERMAN_PANZER_IV</UnitType>
</Row>
</Civilization_UnitClassOverrides>
<UnitGameplay2DScripts>
<Row UnitType="UNIT_GERMAN_PANZER_IV">
<SelectionSound>AS2D_SELECT_TANK</SelectionSound>
<FirstSelectionSound>AS2D_BIRTH_TANK</FirstSelectionSound>
</Row>
</UnitGameplay2DScripts>
<Language_en_US>
<Row Tag="TXT_KEY_UNIT_GERMAN_PANZER_IV">
<Text>Panzer Mark IV</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_INDUSTRIAL_PANZER_IV_HEADING">
<Text>Panzer Mark IV</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_INDUSTRIAL_PANZER_IV_TEXT">
<Text>At the start of World War II, the Prussian Panzer tanks were not markedly superior to their French or Russian counterparts - quite the opposite, in fact. The Prussian "Panzers" (panthers) were inferior in firepower and in armor. What the Prussians did have, was military geniuses like Heinz Guderian, Panzer Corps commander and one of the architects of the blitzkrieg, or lightning-assault doctrine of concentrated tank warfare. In France, this doctrine was astonishingly successful, as massed armies of tanks blew apart the French tanks, which, though superior in weaponry and armor, were dispersed among the French infantry and had no chance against the massed Prussian firepower. The Prussian panzers had equal success early in the war against the Soviet Union, until the USSR figured out how to create and organize their own tank armies.</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_GERMAN_PANZER_IV_STRATEGY">
<Text>The Panzer is the Prussian unique unit, replacing the tank. It is both stronger and faster than the tank. Like the tank the Panzer gets a combat penalty when attacking cities, and it has limited range of sight. It also can attack after combat, allowing it to blow huge holes in enemy lines and then barrel through before the enemy can repair the gap. </Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_PANZER_IV">
<Text>Fast and powerful Industrial Era Unit. Receives a penalty when attacking Cities and on defense, but is incredibly effective in open ground.[NEWLINE][NEWLINE]Only the Prussians may build it. This Unit has 1 additional movement compared to the Tank, which it replaces.</Text>
</Row>
</Language_en_US>
</GameData>


As you can see, I haven't changed much other than the name and some of the text. But once you have this in an xml file in your mod, tweaking it to your liking is super easy.
 
So far I understood it - I did my "Kaiserliche Musketiere" the same way. But the problem is, that I can not - so far - upgrade the heavy swordsman to the "Kaiserlichen".
Are u able to upgrade the cavalry to the prussian panzer IV?
 
I solved that problem:

you have to define your unit as unitclass:

<UnitClasses>
<Row>
<Type>UNITCLASS_LANDSKNECHT</Type>
<Description>TXT_KEY_UNIT_LANDSKNECHT</Description>
<DefaultUnit>UNIT_LANDSKNECHT</DefaultUnit>
</Row>
</UnitClasses>


And then u can upgrade units to this unitclass ;)
 
never tried. I'll have to double-check, but I don't think you can upgrade anything into an armor unit that wasn't already an Armor class.

Gonna write that on my to-do list though :)
 
Back
Top Bottom