1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Horse Grenadier

Discussion in 'Civ4 - Unit Graphics' started by PPQ_Purple, Aug 18, 2018.

  1. PPQ_Purple

    PPQ_Purple Techpriest Engineer

    Joined:
    Oct 11, 2008
    Messages:
    3,651
    Can you drop me a link? I don't have too much time to work on this stuff these days but if you do I'll look for a fix.
     
  2. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,726
    Gender:
    Male
    Location:
    Leblanc
    Yeah, it's directly in the post I quoted, click through this link, it has the files attached if needed. Thank you.
     
  3. PPQ_Purple

    PPQ_Purple Techpriest Engineer

    Joined:
    Oct 11, 2008
    Messages:
    3,651
    Working on it. Expect a reply in a day or two real life permitting.
     
  4. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,726
    Gender:
    Male
    Location:
    Leblanc
    Great! There's no need to hurry, take your time.
     
  5. PPQ_Purple

    PPQ_Purple Techpriest Engineer

    Joined:
    Oct 11, 2008
    Messages:
    3,651
    I have managed to reproduce the issue but no idea why or how it's happening. So I just went ahead and created a whole new kfm. Try this one and please give me a report back so I can know if it's fixed. I don't have the time to do extensive testing.
     

    Attached Files:

    Last edited: Dec 14, 2019
  6. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,726
    Gender:
    Male
    Location:
    Leblanc
    Sure, I'll give it a try. Thanks!
     
  7. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,726
    Gender:
    Male
    Location:
    Leblanc
    Using the new kfm resulted in a C++ exception (read access violation) when selecting the unit. Not sure what is going on. Sorry for the trouble.
     
  8. PPQ_Purple

    PPQ_Purple Techpriest Engineer

    Joined:
    Oct 11, 2008
    Messages:
    3,651
    That is very odd because it works for me just fine. I clicked on it and had it fight other units and everything. Here is the XML I used for testing. Try and compare it with yours. Also make sure to completely replace the unit entirely and not just the kfm file. Best thing to do is just delete the whole folder and use the one I just uploaded.
    Code:
           <UnitArtInfo>
                <Type>ART_DEF_UNIT_GRENADIER</Type>
                <Button>Art/Units/Horse_Grenadier_Neu/BotonGranadero.dds</Button>
                <fScale>0.44</fScale>
                <fInterfaceScale>0.8</fInterfaceScale>
                <bActAsLand>0</bActAsLand>
                <bActAsAir>0</bActAsAir>
                <NIF>Art/Units/Horse_Grenadier_Neu/Horse_Grenadier.nif</NIF>
                <KFM>Art/Units/Horse_Grenadier_Neu/Horse_Grenadier.kfm</KFM>
                <ShadowDef>
                    <ShadowNIF>Art/Units/01_UnitShadows/HorseShadow.nif</ShadowNIF>
                    <ShadowAttachNode>HorseBip Spine1</ShadowAttachNode>
                    <fShadowScale>1.0</fShadowScale>
                </ShadowDef>
                <fBattleDistance>0.35</fBattleDistance>
                <fRangedDeathTime>0.31</fRangedDeathTime>
                <bActAsRanged>1</bActAsRanged>
                <TrainSound>AS2D_UNIT_BUILD_UNIQUE_UNIT</TrainSound>
                <AudioRunSounds/>
            </UnitArtInfo>
            
     
    Leoreth likes this.
  9. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,726
    Gender:
    Male
    Location:
    Leblanc
    That's odd, to make sure I explicitly deleted the existing Horse_Grenadier directory before placing the new one (I copied the entire folder before but just let it override), and also used your art defines.

    Here's the diff:
    Code:
    Changes not staged for commit:
      (use "git add/rm <file>..." to update what will be committed)
      (use "git checkout -- <file>..." to discard changes in working directory)
    
            modified:   Assets/Art/Units/Horse_Grenadier/Horse_Grenadier.kfm
            deleted:    Assets/Art/Units/Horse_Grenadier/Horse_Grenadier_MD_RunDie.kf
            deleted:    Assets/Art/Units/Horse_Grenadier/knight.nif
            modified:   Assets/XML/Art/CIV4ArtDefines_Unit.xml
    
    And the error message:
    Spoiler :
    pyex2.png


    That line of code is drawing the smaller unit model in the bottom left (as you can see it's missing). It also seems like the flames of the grenades are not rendered correctly. I also noticed your art defines did not have a shadernif defined, if that matters (adding it changed nothing). The problem is present on low and high graphics settings, by the way.
     
  10. PPQ_Purple

    PPQ_Purple Techpriest Engineer

    Joined:
    Oct 11, 2008
    Messages:
    3,651
    The shadeniff missing is not accidental. My unit does not have one and thus the line should be deliberately left out. As for the rest I'll see what I missed and post back.
     
    Leoreth likes this.
  11. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,726
    Gender:
    Male
    Location:
    Leblanc
    Thanks again.
     
  12. PPQ_Purple

    PPQ_Purple Techpriest Engineer

    Joined:
    Oct 11, 2008
    Messages:
    3,651
    Try this one. I redid the unit again. I am going to get this one right even if it means I drop dead.
    Sadly one thing I can't get right is the fuse. It's a blending issue that I can't control or at least don't know how to.
     

    Attached Files:

  13. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,726
    Gender:
    Male
    Location:
    Leblanc
    This time everything is working, so no need to drop dead. Thanks for the perseverance.

    The fuse is a minor issue only imo. Thank you for this great unit! Trying new animations is rare and commendable.
     
  14. Sword_Of_Geddon

    Sword_Of_Geddon Mysterious Jungle Warrior

    Joined:
    Dec 21, 2003
    Messages:
    13,455
    Gender:
    Male
    Location:
    New England, USA
    I can't believe I missed this thread. This is some damn fine work here Purple.
     

Share This Page