problem

Shade_89

Chieftain
Joined
Nov 12, 2005
Messages
31
when I addnew unit to game and enter to the world builder
I tried to place this new unit on map but is error and civilization broke to the windows
 
Shade_89 said:
when I addnew unit to game and enter to the world builder
I tried to place this new unit on map but is error and civilization broke to the windows

That usually means the unit arit isnt linked correctly.
 
Yeah, CTDs like that are caused by an ART_DEFINE issue. We'll need more info to help you diagnose.
 
first unit samurai knight
<UnitArtInfo>
<Type>ART_DEF_UNIT_SAMURAI_KNIGHT</Type>
<fScale>0.42</fScale>
<fInterfaceScale>0.9</fInterfaceScale>
<NIF>Art/Units/Knight/Knight.nif</NIF>
<KFM>Art/Units/Knight/Knight.kfm</KFM>
<SHADERNIF>Art/Units/samkni/knight_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>0</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>

second unit cataphract
<UnitArtInfo>
<Type>ART_DEF_UNIT_CATAPHRACT</Type>
<fScale>0.42</fScale>
<fInterfaceScale>0.9</fInterfaceScale>
<NIF>Art/Units/Scenario/Companion_Cavalry/Companion_Cavalry.nif</NIF>
<KFM>Art/Units/Scenario/Companion_Cavalry/Companion_Cavalry.kfm</KFM>
<SHADERNIF>Art/Units/Scenario/Companion_Cavalry/Companion_Cavalry_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>0</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>
 
Shade_89 said:
first unit samurai knight


second unit cataphract

Are you sure that the knight should have samkni on the shadernif but not on the others?

<UnitArtInfo>
<Type>ART_DEF_UNIT_SAMURAI_KNIGHT</Type>
<fScale>0.42</fScale>
<fInterfaceScale>0.9</fInterfaceScale>
<NIF>Art/Units/Knight/Knight.nif</NIF>
<KFM>Art/Units/Knight/Knight.kfm</KFM>
<SHADERNIF>Art/Units/samkni/knight_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>0</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>

The Cataphract looks okay to me. Can you attach the unit definition that uses it.

<UnitArtInfo>
<Type>ART_DEF_UNIT_CATAPHRACT</Type>
<fScale>0.42</fScale>
<fInterfaceScale>0.9</fInterfaceScale>
<NIF>Art/Units/Scenario/Companion_Cavalry/Companion_Cavalry.nif</NIF>
<KFM>Art/Units/Scenario/Companion_Cavalry/Companion_Cavalry.kfm</KFM>
<SHADERNIF>Art/Units/Scenario/Companion_Cavalry/Companion_Cavalry_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>0</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>
 
I wish it would post an error or do the red blob thing when the art definition was bad. These CTD's because some city somewhere made a unit with the def wrong is a pain.
 
Kael said:
I wish it would post an error or do the red blob thing when the art definition was bad. These CTD's because some city somewhere made a unit with the def wrong is a pain.
Hmmm - SimCutie posted a fix for something similar which might cover this as well. Check out this thread.
 
The Great Apple said:
Hmmm - SimCutie posted a fix for something similar which might cover this as well. Check out this thread.

Ohhh.. I hadn't seen that, thanks.
 
Back
Top Bottom