11 Holland Units

I've been making these units into a custom civ including buttons i'll upload when it is finished.

I am however stuck at the unit that replaces the Horsearcher.

I am using the original Horsearcher defines_unit to edit but it crashes when I want to add the unit using worldbuilder on the map. (unlike all the other units which work fine - inc buttons/animations)
I am using the Mercenaries module as buildingblock.

What am I doing wrong?

Code:
<UnitArtInfo>
			<Type>ART_DEF_UNIT_HORSEMAN_HOLLAND</Type>
			<Button>Modules/Custom Civilizations/Holland/Flavor/Horseman_Holland/button.dds</Button>
			<fScale>0.42</fScale>
			<fInterfaceScale>1.0</fInterfaceScale>
			<bActAsLand>0</bActAsLand>
			<bActAsAir>0</bActAsAir>
			<NIF>Modules/Custom Civilizations/Holland/Flavor/Horseman_Holland/LightCavalry.nif</NIF>
			<KFM>Modules/Custom Civilizations/Holland/Flavor/Horseman_Holland/LightCavalry.kfm</KFM>
			<SHADERNIF>Modules/Custom Civilizations/Holland/Flavor/Horseman_Holland/LightCavalry_FX.nif</SHADERNIF>
			<ShadowDef>
				<ShadowNIF>Art/Units/01_UnitShadows/HorseShadow.nif</ShadowNIF>
				<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
				<fShadowScale>1.0</fShadowScale>
			</ShadowDef>
			<fBattleDistance>0.35</fBattleDistance>
			<fRangedDeathTime>0.31</fRangedDeathTime>
			<bActAsRanged>1</bActAsRanged>
			<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
			<AudioRunSounds>
				<AudioRunTypeLoop/>
				<AudioRunTypeEnd/>
			</AudioRunSounds>
		</UnitArtInfo>

Am I supposed to use the cavalry define and edit that? (have not yet tried that)
What is making it choke, the other units still work. :confused:


*edit* It appears it uses it's own animation, should that be defined in another xml? I'm assuming it does.
 
I am using the original Horsearcher defines_unit to edit but it crashes when I want to add the unit using worldbuilder on the map. (unlike all the other units which work fine - inc buttons/animations)

crashes usually are due to you having a typo, i.e. the <Type>ART_DEF_UNIT_HORSEMAN_HOLLAND</Type> is different from the one you used in CIV4UnitArtStyleTypeInfos.xml and thus the art is not found.

I am using the Mercenaries module as buildingblock.

What am I doing wrong?

Assuming you copied over the kfm and its corresponding *.kf files, there should be nothing wrong (apart from my typo assumption).

Otherwise you should refer to <KFM>Art/Units/Charlemagne_LightCavalry/LightCavalry.kfm</KFM>. Referring to a non-existant kfm will not result in a crash though, so that should not be the issue, my bet still is on the typo.
 
I have triple checked everything and it looks ok.
I am now reinstalling a "clean" version because this happened after I installed bluemarble.

Deinstalling that didn't do the trick, so I decided to reinstall clean (and keep a copy of that on my hdd) and work my way up from there.

I'll post some info if I know more.
 
Back
Top Bottom