So I'm quite excited about the SDK and immediately dove into learning how modding works for this new game.
A couple of questions immediately arose that I could not find any answer to.
<Row>
<Class>UNITCLASS_MECH</Class>
<Type>UNIT_MECH</Type>
<PrereqTech>TECH_NUCLEAR_FUSION</PrereqTech>
<Combat>150</Combat>
<Cost>1000</Cost>
<Moves>3</Moves>
<CombatClass>UNITCOMBAT_ARMOR</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Description>TXT_KEY_UNIT_MECH</Description>
<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_MODERN_MECH_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_MECH_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_MECH</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
<Mechanized>true</Mechanized>
<AdvancedStartCost>80</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_MECH</UnitArtInfo>
<UnitFlagIconOffset>83</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>36</PortraitIndex>
<MoveRate>ROBOT</MoveRate>
</Row>
In the following code I can't figure out exactly where one modifies what resource (if any) is required to build said unit, or where the unit's name information is displayed in the game.
I'm working on a mod that is going to involve several different classes/types of mechs with different abilities and what not so figuring these things out is going to be pretty vital. Most everything else seems to be common sense.
Thanks for reading.
A couple of questions immediately arose that I could not find any answer to.
<Row>
<Class>UNITCLASS_MECH</Class>
<Type>UNIT_MECH</Type>
<PrereqTech>TECH_NUCLEAR_FUSION</PrereqTech>
<Combat>150</Combat>
<Cost>1000</Cost>
<Moves>3</Moves>
<CombatClass>UNITCOMBAT_ARMOR</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Description>TXT_KEY_UNIT_MECH</Description>
<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_MODERN_MECH_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_MECH_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_MECH</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
<Mechanized>true</Mechanized>
<AdvancedStartCost>80</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_MECH</UnitArtInfo>
<UnitFlagIconOffset>83</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>36</PortraitIndex>
<MoveRate>ROBOT</MoveRate>
</Row>
In the following code I can't figure out exactly where one modifies what resource (if any) is required to build said unit, or where the unit's name information is displayed in the game.
I'm working on a mod that is going to involve several different classes/types of mechs with different abilities and what not so figuring these things out is going to be pretty vital. Most everything else seems to be common sense.
Thanks for reading.

on normal speed. I cannot find this value defined anywhere in the XML, so I surmise that it may well be hard-coded somewhere. In fact, if you increase speed to marathon, the cost goes up to 268 instead of 267. I only did a rather cursory check of other units and buildings, but they all seemed to be multiplying up correctly, which suggests that there is some manner of hacky bodge job going on there, resulting in rounding errors or some other such nonsense.