1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. Photobucket has changed its policy concerning hotlinking images and now requires an account with a $399.00 annual fee to allow hotlink. More information is available at: this link.
    Dismiss Notice
  3. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  4. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  5. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  6. Dismiss Notice
  7. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

African Spearman (04/09/06)

Discussion in 'Civ4 - Unit Graphics' started by Rabbit, White, Apr 9, 2006.

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



    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:
     

    Attached Files:

  2. TheLopez

    TheLopez Chieftain

    Joined:
    Jan 16, 2006
    Messages:
    2,525
    Location:
    Oregon
    Another great unit, great job Rabbit!!!
     
  3. Cafegio

    Cafegio Chieftain

    Joined:
    Sep 1, 2005
    Messages:
    177
    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
     
  4. woodelf

    woodelf Bard

    Joined:
    Jun 12, 2003
    Messages:
    15,036
    Location:
    Gallery
    I hope this finds it's way into TAM or another mod somewhere. Nice unit Rabbit.
     
  5. C.Roland

    C.Roland FFH Art team member

    Joined:
    Nov 26, 2005
    Messages:
    2,112
    Location:
    Quebec
  6. Cimbri

    Cimbri Chieftain

    Joined:
    Jul 1, 2002
    Messages:
    2,589
    Location:
    Cold Harbor, VA
    Wicked. Hello Numidian skirmisher. :goodjob:


    Very nice work.
     
  7. Thanks guys :)
     
  8. Dual

    Dual Gun Mage

    Joined:
    Mar 28, 2005
    Messages:
    492
    Location:
    The Gateway to the West
  9. seZereth

    seZereth FfH´s art monk(ey)

    Joined:
    Feb 3, 2006
    Messages:
    3,900
    Location:
    Bayreuth
    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
     
  10. Chalid

    Chalid Black Dragon

    Joined:
    Nov 24, 2005
    Messages:
    1,742
    Location:
    Munich, Germany
    You can have the guy throw the spear he has and the Skirmisher throw his own spear. I have written somthing for this matter into the Fire-Mage thread
     
  11. Wyz_sub10

    Wyz_sub10 CIV Gold - Project Lead

    Joined:
    Nov 26, 2001
    Messages:
    2,424
    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?
     
  12. 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.
     
  13. Sevo

    Sevo Leaf on the Wind

    Joined:
    Nov 26, 2005
    Messages:
    511
    Location:
    Chicago, IL
    Rabbit -- great work as always. Keep 'em coming. This little guy is going into my SevoMod (along with about 10 of your units).
     
  14. Houman

    Houman TR Team Leader

    Joined:
    Jan 24, 2002
    Messages:
    1,083
    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>
    
     
  15. 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.
     
  16. Houman

    Houman TR Team Leader

    Joined:
    Jan 24, 2002
    Messages:
    1,083

    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>
    
     
  17. 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? :)
     

Share This Page