Modular Modding

ComradeKristov

Warlord
Joined
Dec 30, 2009
Messages
170
Location
Chicago,Il
is there any way to stop a unit form upgading to another unit? For instance I don't want cavalry to upgrade to gunships anymore so I tried this:
<UnitInfo>
<Class>UNITCLASS_CAVALRY</Class>
<Type>UNIT_RUSSIA_COSSACK</Type>
<UnitClassUpgrades>
<UnitClassUpgrade>
<UnitClassUpgradeType>UNITCLASS_GUNSHIP</UnitClassUpgradeType>
<bUnitClassUpgrade>0</bUnitClassUpgrade>
</UnitClassUpgrade>
</UnitClassUpgrades>
</UnitInfo>
but it didn't work is there any way of doing this modularly, without altering the original UnitInfos?
 
Unfortunately WoC does not support this. You can change a <bUnitClassUpgrade>0</bUnitClassUpgrade> to <bUnitClassUpgrade>1</bUnitClassUpgrade> but not the other way around. It was a design decision that is causing a few of us problems. :(
 
Wasn't there recently a ForceOverwrite tag or some such added that in fact does let you do just this?
 
I don't think ikt has been implemented yet. I asked the question of the WoC team about over writing 1 with 0 less than a month ago and they did not mention it.

Hmm, sounds like something you should ask Grand Master (of RoM Mod-modding) Afforess to help out with, then. ;)
 
is there any way to stop a unit form upgading to another unit? For instance I don't want cavalry to upgrade to gunships anymore so I tried this:
Code:
<UnitInfo>
                                     <Class>UNITCLASS_CAVALRY</Class>
                                     <Type>UNIT_RUSSIA_COSSACK</Type>
                                     <UnitClassUpgrades>
                                              <UnitClassUpgrade>
                                                        <UnitClassUpgradeType>UNITCLASS_GUNSHIP</UnitClassUpgradeType>
                                                       <bUnitClassUpgrade>0</bUnitClassUpgrade>
                                            </UnitClassUpgrade>
                                     </UnitClassUpgrades>
</UnitInfo>
but it didn't work is there any way of doing this modularly, without altering the original UnitInfos?

You could probably do this(You might be able to go into the UnitInfos.xml and do this).
Code:
                <UnitInfo>
	 		<Class>UNITCLASS_CAVALRY</Class>
			<Type>UNIT_RUSSIA_COSSACK</Type>
			<UnitClassUpgrades/>
		</UnitInfo>
 
Back
Top Bottom