Napoleonic Sets

They don't need a kfm file, since they use the vanilla rifleman animations. I would change
Code:
<KFM>Art/Units/Continental_Regular/Continental_Regular.kfm</KFM>
to
Code:
<KFM>Art/Units/Rifleman/rifleman.kfm</KFM>
 
Purple just means that the texture is missing (the material which is wrapped around the figure to make it look like an actual character). Try to reinstall all files supplied with the unit to the folder you're using. Textures are in .dds format, I believe.
 
I restarted and kept the file names given in the zip.

The animations work but it just seems to be the ordinary rifleman ani. It doesn't have the dark blue american guy.

Here is the text file now

<UnitArtInfo>
<Type>ART_DEF_UNIT_CONTINENTAL_REGULAR</Type>
<Button>,Art/Units/US_Regular/US_Regular.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,4,2</Button>
<fScale>0.44</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<bActAsLand>0</bActAsLand>
<bActAsAir>0</bActAsAir>
<NIF>Art/Units/US_Regular/US_Regular.nif</NIF>
<KFM>Art/Units/Rifleman/rifleman.kfm</KFM>
<SHADERNIF>Art/Units/Rifleman/rifleman_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>

the files in the folder are rifleman_128.dds, US_Regular.dds, US_regular.nif, USShako.dds
 
Use the normal .nif for the shadernif or change it to
PHP:
<SHADERNIF/>


In civ, there are 2 versions of models: Normal ones and the more beautiful ones with shaders. If your computer is not ancient, then your settings are probably not set to low, so you get the shader version...and well...look what you've put in the XML, you get the normal rifleman as shader version ;).
 
I tried changing it to <SHADERNIF/> and it now only gives a bright red blob.

What is the normal nif. What do I type in to get the normal nif.
 
Then you don't point it to the right file.
Make sure that it is where it should be, and that you've really typed the right names into the files.

Why didn't I see that straight away too!!?? Aargh!!! I've pasted hundreds of units and didn't see that! :mad::mad::mad:

;):lol:

Hey, if we always saw the problem, we would not have them :D.
 
What is the shader nif file it should point to. The only files in the unit directory I have are rifleman_128.dds, US_Regular.dds, US_regular.nif, USShako.dds.

Can I do without a shader file?
 
I copied and pasted the line in but it only shows a red blob.

The text is

<UnitArtInfo>
<Type>ART_DEF_UNIT_WORKER_SOUTH_AMERICA</Type>
<Button>,Art/Interface/Buttons/Units/Worker.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,3,5</Button>
<fScale>0.44</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<bActAsLand>0</bActAsLand>
<bActAsAir>0</bActAsAir>
<NIF>Art/Units/Worker_South_America/Worker_South_America.nif</NIF>
<KFM>Art/Units/Worker_South_America/Worker.kfm</KFM>
<SHADERNIF>Art/Units/Worker_South_America/Worker_South_America_fx.nif</SHADERNIF>
<ShadowDef>
<ShadowNIF>Art/Units/01_UnitShadows/UnitShadow.nif</ShadowNIF>
<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
<fShadowScale>0.9</fShadowScale>
</ShadowDef>
<fBattleDistance>0.35</fBattleDistance>
<fRangedDeathTime>0.31</fRangedDeathTime>
<bActAsRanged>0</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>
<UnitArtInfo>
<Type>ART_DEF_UNIT_CONTINENTAL_REGULAR</Type>
<Button>,Art/Units/US_Regular/US_Regular.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,4,2</Button>
<fScale>0.44</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<bActAsLand>0</bActAsLand>
<bActAsAir>0</bActAsAir>
<NIF>Art/Units/US_Regular/US_Regular.nif</NIF>
<KFM>Art/Units/Rifleman/rifleman.kfm</KFM>
<SHADERNIF>Art/Units/US_Regular/US_Regular.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>

The files cureently in the US regular folder are

rifleman_128.dds
US_Regular.dds
US_regular.nif
USShako.dds
 
Did you write the correct line of code in the unit's ArtDefineTag? (located in the UnitInfos xml file)
 
Also. The file name has to be exact. Check that it's exactly correctly spelled. Be sure to check Upper- and Lower case letters and such too!
 
Progress :) Maybe. I made sure every text entry was now usregular (smallcase). Folder name is now usregular (smallcase) and filenames are usregular (small case). I can now see a proper body but it is purple except is head and hat which is normal.

Also when he attacks he doesn't use his rifle.
 
Why are ther 3 dds files with the unit however the only one used is the usregular.dds?

Some one mentioned earlier that the purple issue is a dds issue.
 
and filenames are usregular (small case). I can now see a proper body but it is purple except is head and hat which is normal.

...hhmm....first one might be causing the second one.
I don't know if the loading system is case sensitive, but it would explain it why it does not load the files after changing the names.

Would like to look into the files myself, but nifskope is crashing at the account which i use atm :mad:.
 
@The_J: Have you restarted your computer? My NifSkope would do that occasionally do that too, I would simply restart my compy.
 
Back
Top Bottom