African Spearman (04/09/06)

  • Thread starter Thread starter Rabbit, White
  • Start date Start date
R

Rabbit, White

Guest
When I was working on the spears I got the idea for this unit.

africanspearmanpic21sl.jpg


Download

I think this would work very well as a "semi-unique" unit for any african or african-related civ in the game, as a replacement for the basic warrior (as far as I know this is the most common type of warrior in Africa going back to the pre-historic times), but of course feel free to use it for anything. Heck, if I know woodelf, he'll probably slap one of my helmets on this guy and put him on the moon :lol:

Here's another screenshot


There are couple of issues with this unit. First, it doesn't support teamcolor, there was just no other way of making it work. Second, the spear that flies during combat is the regular Mali Skirmisher spear, as oppose to the wooden one. If you want the wooden spear to fly then you need to edit the skirmisher spear nif file and replace the spear there with this one, and the saved file put in the skirmisher folder (i.e. something like mod/assets/art/units/unique/mali/skirmisher), not the african spearman folder. However, in this case the mali skirmisher will also have the wooden spear flying during combat.

Oh and of course, this guy uses the Mali Skirmisher animations so point to the appropriate KFM file in the art definition for the unit. (If you're not sure how to add new units to the game, check out this thread.)

Enjoy :thumbsup:
 

Attachments

Another great unit, great job Rabbit!!!
 
WOW I have been so busy with work and baseball (big fan) , so I havent been able to play or download Civ content lately. This is a must and one of the best units Ive seen.

GOOD JOB
 
I hope this finds it's way into TAM or another mod somewhere. Nice unit Rabbit.
 
i love you for doing that model, i wished for one with an head(without anything attached to it) and no backpack! and no skirt, weehaa well, lets see what i can do out of him :P

P.S: The skin really is well drawn or modified or something
 
Wyz_sub10 said:
This is a terrific piece of work, and is near-perfect for a replacement for my Malagasy Menelamba (the current one just isn't "right").

The issue with Team Colour - you're speaking solely to colour on the unit, right?
Thanks Wyz_sub10. The team color issue applies to the entire unit (including the weapon). Basically you cannot modify the texture in any way to have the team color show up anywhere on the unit. However, if you're thinking of maybe pairing this guy with some other unit (through XML, like settlers for example) then the other unit will have team colors. If you're thinking of replacing the weapon with one that supports team color then I don't know if it'll work, it might as long as you properly create regular and FX versions but I haven't tried it so can't be sure.
 
Rabbit -- great work as always. Keep 'em coming. This little guy is going into my SevoMod (along with about 10 of your units).
 
Hi Rabbit,

I have implemented your African Warrior into the Realism Mod. There is a crash problem though.
What I did was first to copy all the Skirmisher files into my African_spearman folder, then I have extracted your African_Spearman in it and overwrote some files.

Thsi is the code I am using, what might have caused the crash you think?

Code:
<UnitArtInfo>
			<Type>ART_DEF_UNIT_AFRICAN_WARRIOR</Type>
			<fScale>0.44</fScale>
			<fInterfaceScale>1.0</fInterfaceScale>
			<NIF>Art/Units/african_spearman/african_spearman.nif</NIF>
			<KFM>Art/Units/african_spearman/MaliSkirmisher.kfm</KFM>
			<SHADERNIF>Art/Units/african_spearman/african_spearman.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.31</fRangedDeathTime>
			<bActAsRanged>1</bActAsRanged>
			<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
			<AudioRunSounds>
				<AudioRunTypeLoop/>
				<AudioRunTypeEnd/>
			</AudioRunSounds>
		</UnitArtInfo>
 
See, that's what happens when you "improvise" ;)

First of all try to reference _fx version in SHADERNIF but in general I provide all the files that are needed, so just put the contents of the zip into an empty folder (without the skirmisher stuff in it) then in the art file reference the original skirmisher KFM file, i.e.
Code:
<NIF>Art/Units/african_spearman/african_spearman.nif</NIF>
<KFM>Art/Units/Unique/Mali/Skirmisher/MaliSkirmisher.kfm</KFM>
<SHADERNIF>Art/Units/african_spearman/african_spearman_fx.nif</SHADERNIF>
and it should work.
 
Rabbit said:
See, that's what happens when you "improvise" ;)

First of all try to reference _fx version in SHADERNIF but in general I provide all the files that are needed, so just put the contents of the zip into an empty folder (without the skirmisher stuff in it) then in the art file reference the original skirmisher KFM file, i.e.
Code:
<NIF>Art/Units/african_spearman/african_spearman.nif</NIF>
<KFM>Art/Units/Unique/Mali/Skirmisher/MaliSkirmisher.kfm</KFM>
<SHADERNIF>Art/Units/african_spearman/african_spearman_fx.nif</SHADERNIF>
and it should work.


Ahhh the problem is that you have provided a separate _fx file. :) I have overlooked it. I am no expert in Unit grafics, but I think the way I did it, I could have the wooden spear being thrown rather than the Mali spear, because all the needed files are locally and are pointing to the local ones. Don't you think? I mean this is way most units are actually made, like the Ansar Warrior, they copy the Horse_Immortal unit locally and work with them.

Code:
<NIF>Art/Units/african_spearman/african_spearman.nif</NIF>
<KFM>Art/Units/african_spearman/Skirmisher/MaliSkirmisher.kfm</KFM>
<SHADERNIF>Art/Units/african_spearman/african_spearman_fx.nif</SHADERNIF>
 
Houman said:
Ahhh the problem is that you have provided a separate _fx file. :) I have overlooked it. I am no expert in Unit grafics, but I think the way I did it, I could have the wooden spear being thrown rather than the Mali spear, because all the needed files are locally and are pointing to the local ones. Don't you think? I mean this is way most units are actually made, like the Ansar Warrior, they copy the Horse_Immortal unit locally and work with them.

Code:
<NIF>Art/Units/african_spearman/african_spearman.nif</NIF>
<KFM>Art/Units/african_spearman/Skirmisher/MaliSkirmisher.kfm</KFM>
<SHADERNIF>Art/Units/african_spearman/african_spearman_fx.nif</SHADERNIF>
It still wouldn't throw its own spear because the KF file for attack animation references an effect defined in XML, which in turn references the mali skirmisher spear NIF file, in its original location. So that spear nif in the african_spearman folder is being ignored. I tried fixing that btw - there is a way to edit at least parts of the KF files, however, while it worked in terms of having the same spear used in attack, it also created unwanted side effects and bugs, which I have yet to resolve.

Given that, why would you want to duplicate the KFM resource if you can use the original one? :)
 
Back
Top Bottom