The unit is a replacement marine for England, for now I have just put the standard marine into the
Art/Units/UKMARINE/Marines.nif</NIF>
CIV4UnitInfos.xml
<UnitInfo>
<Class>UNITCLASS_MARINE</Class>
<Type>UNIT_UKMARINE</Type>
<UniqueNames/>
<Special>NONE</Special>
<Capture>NONE</Capture>
<Combat>UNITCOMBAT_GUN</Combat>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Invisible>NONE</Invisible>
<SeeInvisible>NONE</SeeInvisible>
<Description>TXT_KEY_UNIT_UKMARINE</Description>
<Civilopedia>TXT_KEY_UNIT_UKMARINE_PEDIA</Civilopedia>
<Strategy>TXT_KEY_UNIT_UKMARINE_STRATEGY</Strategy>
<Advisor>ADVISOR_MILITARY</Advisor>
And
<UnitMeshGroups>
<iGroupSize>3</iGroupSize>
<fMaxSpeed>1.75</fMaxSpeed>
<iMeleeWaveSize>3</iMeleeWaveSize>
<iRangedWaveSize>0</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>3</iRequired>
<EarlyArtDefineTag>ART_DEF_UNIT_UKMARINE</EarlyArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>
<Button>,Art/Interface/Buttons/Units/UKMARINE.dds</Button>
<HotKey/>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
I have left the class bit as it is, koz it uses the standard marine class, if I make a unique class for it, then all Civs will be able to build this unit.
CIV4ArtDefines_Unit.xml
<UnitArtInfo>
<Type>ART_DEF_UNIT_UKMARINE</Type>
<fScale>0.44</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<NIF>Art/Units/UKMARINE/Marines.nif</NIF>
<KFM>Art/Units/UKMARINE/Marines.kfm</KFM>
<SHADERNIF>Art/Units/UKMARINE/Marines_FX.nif</SHADERNIF>
<ShadowDef>
<ShadowNIF>Art/Units/01_UnitShadows/UnitShadow.nif</ShadowNIF>
<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
<fShadowScale>1.0</fShadowScale>
</ShadowDef>
<fBattleDistance>0.35</fBattleDistance>
<fRangedDeathTime>0.05</fRangedDeathTime>
<bActAsRanged>1</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>
<UnitArtInfo>
CIV4CivilizationInfos.xml
<Units>
<Unit>
<UnitClassType>UNITCLASS_RIFLEMAN</UnitClassType>
<UnitType>UNIT_ENGLISH_REDCOAT</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_MARINE</UnitClassType>
<UnitType>UNIT_UKMARINE</UnitType>
</Unit>
</Units>
That’s all I have done. I left out all the civilopedia bit out(Text), I don’t think it will effect the game.
do you?
The tutorial left that bit out I’m assuming its ok .
I put the tech require to NONE so I could test this out as soon as I started the game. do you think that will effect it?
I can see the unit is fine, and the button shows in the city build screen, but as soon as I click the marine icon it crashes…
Someone please help
Art/Units/UKMARINE/Marines.nif</NIF>
CIV4UnitInfos.xml
<UnitInfo>
<Class>UNITCLASS_MARINE</Class>
<Type>UNIT_UKMARINE</Type>
<UniqueNames/>
<Special>NONE</Special>
<Capture>NONE</Capture>
<Combat>UNITCOMBAT_GUN</Combat>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Invisible>NONE</Invisible>
<SeeInvisible>NONE</SeeInvisible>
<Description>TXT_KEY_UNIT_UKMARINE</Description>
<Civilopedia>TXT_KEY_UNIT_UKMARINE_PEDIA</Civilopedia>
<Strategy>TXT_KEY_UNIT_UKMARINE_STRATEGY</Strategy>
<Advisor>ADVISOR_MILITARY</Advisor>
And
<UnitMeshGroups>
<iGroupSize>3</iGroupSize>
<fMaxSpeed>1.75</fMaxSpeed>
<iMeleeWaveSize>3</iMeleeWaveSize>
<iRangedWaveSize>0</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>3</iRequired>
<EarlyArtDefineTag>ART_DEF_UNIT_UKMARINE</EarlyArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>
<Button>,Art/Interface/Buttons/Units/UKMARINE.dds</Button>
<HotKey/>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
I have left the class bit as it is, koz it uses the standard marine class, if I make a unique class for it, then all Civs will be able to build this unit.
CIV4ArtDefines_Unit.xml
<UnitArtInfo>
<Type>ART_DEF_UNIT_UKMARINE</Type>
<fScale>0.44</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<NIF>Art/Units/UKMARINE/Marines.nif</NIF>
<KFM>Art/Units/UKMARINE/Marines.kfm</KFM>
<SHADERNIF>Art/Units/UKMARINE/Marines_FX.nif</SHADERNIF>
<ShadowDef>
<ShadowNIF>Art/Units/01_UnitShadows/UnitShadow.nif</ShadowNIF>
<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
<fShadowScale>1.0</fShadowScale>
</ShadowDef>
<fBattleDistance>0.35</fBattleDistance>
<fRangedDeathTime>0.05</fRangedDeathTime>
<bActAsRanged>1</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>
<UnitArtInfo>
CIV4CivilizationInfos.xml
<Units>
<Unit>
<UnitClassType>UNITCLASS_RIFLEMAN</UnitClassType>
<UnitType>UNIT_ENGLISH_REDCOAT</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_MARINE</UnitClassType>
<UnitType>UNIT_UKMARINE</UnitType>
</Unit>
</Units>
That’s all I have done. I left out all the civilopedia bit out(Text), I don’t think it will effect the game.
do you?
The tutorial left that bit out I’m assuming its ok .
I put the tech require to NONE so I could test this out as soon as I started the game. do you think that will effect it?
I can see the unit is fine, and the button shows in the city build screen, but as soon as I click the marine icon it crashes…
Someone please help