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

Nagas (Lamia)

Discussion in 'Civ5 - Unit Graphics' started by Nomad or What, May 12, 2014.

  1. Nomad or What

    Nomad or What Wayfarer Supporter

    Joined:
    Nov 25, 2012
    Messages:
    686
    Location:
    Wherever the winds take me
    Nexus is where the men are separated from the boys. Granny is just the inflatable dinosaur kiddie pool; the adults are all swimming in Nexus. Almost every problematic import I have done looks great in the Granny Viewer and then promptly turns into a soup sandwich once I view it in Nexus :cringe:.
     
  2. Nomad or What

    Nomad or What Wayfarer Supporter

    Joined:
    Nov 25, 2012
    Messages:
    686
    Location:
    Wherever the winds take me
    Whoward69, nevermind this; I tried it and it doesn't change anything. I did notice that the fire arrows are unpredictable though, they come from varying directions regardless of the unit's orientation, sometimes (I suppose fortunately) from behind the unit. Back to square zero... :(
     
  3. Civitar

    Civitar Adventurer

    Joined:
    Mar 23, 2014
    Messages:
    1,507
    Gender:
    Male
    Location:
    Switzerland
    Oh I know. I've had that happen too many times to count. Still, getting into Granny is one step closer than having a soup sandwich in Granny;). If I have trouble for too long, maybe I'll do a WIP thread like bernie14 is doing for his Hitler leaderhead.
     
  4. Nutty

    Nutty Deity

    Joined:
    Mar 9, 2011
    Messages:
    3,162
    Gender:
    Male
    Location:
    Orange County, California, U.S.A.
    I can't make the 3D stuff work for me, but if I understood some of the threads I've read, the particle/projectile effects like fire arrows have to originate from a certain defined bone (which is defined in fx_triggers, I believe). If that bone isn't defined, the game doesn't know where to make the effect come from.

    EDIT: See hugojackson18's MacTruck for an example of re-using an existing effect with a different unit.
     
  5. Civitar

    Civitar Adventurer

    Joined:
    Mar 23, 2014
    Messages:
    1,507
    Gender:
    Male
    Location:
    Switzerland
    Nomad, I finished converting dragon animations and drew up an fxsxml! A Nexus screenshot is in the spoiler...
    Spoiler :

    As for the animations, I can't tell you what they looked like. I wasn't sure whether it was a demented dancing hedghog or a wounded slug running on five legs.
     

    Attached Files:

  6. Nomad or What

    Nomad or What Wayfarer Supporter

    Joined:
    Nov 25, 2012
    Messages:
    686
    Location:
    Wherever the winds take me
    I told you what to expect - just how deep into the rabbit hole do you wish to go? :lol:
     
  7. Nomad or What

    Nomad or What Wayfarer Supporter

    Joined:
    Nov 25, 2012
    Messages:
    686
    Location:
    Wherever the winds take me
    whoward69, I think you found the "any graphics experts" you were looking for... ;)

    Nutty, you are correct - from what I now understand from hugojackson18's thread I have successfully edited the nagas to make the effects work correctly.

    whoward69, replace the .fxsxml file for each naga and add the .ftsxml file from the attachment and they will work correctly; I will update the download files and post a correction.

    Thanks Nutty for leading me in the right direction to the solution! :goodjob:
     

    Attached Files:

  8. Nomad or What

    Nomad or What Wayfarer Supporter

    Joined:
    Nov 25, 2012
    Messages:
    686
    Location:
    Wherever the winds take me
    I believe so; as I have recently learned, you can assign bones to effects using the .ftsxml file. I have edited the download recently to default to warrior effects (more specifically, the city attack effects) so you may wish to download the updated version. Here is the relevant "trigger" information from the .fxsxml file:

    Spoiler :
    <TimedTrigger file="FX_Triggers_naga.ftsxml"/>
    <BoneUsage>
    <Bone name="Bip01 Hand.R"/>
    <Bone name="Bip01 Pelvis"/>
    </BoneUsage>


    and following is one of the lines from the .ftsxml file assigning the bone to a particular effect based on a specific "trigger" action:

    Spoiler :
    <trigger type="FTimedTriggerEffect" id="7" time="0.162963" duration="0.43" repeat="0" ec="1160" track="2" tier="0" event="ART_DEF_VEFFECT_MELEE_TORCH_PROJECTILE" bone="Bip01 Hand.R" />


    If you need the list of bones that are used for this mesh in order to assign effects to particular bones, just let me know. :)
     
  9. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,350
    Location:
    Near Portsmouth, UK
    Many thanks to all concerned :bowdown:

    I'll give these new files a go in the next couple of days
     
  10. Civitar

    Civitar Adventurer

    Joined:
    Mar 23, 2014
    Messages:
    1,507
    Gender:
    Male
    Location:
    Switzerland
    Can I get one of these?:trophy:
    Spoiler :

    I know, I know - I forgot to run consolidate into one image so he has no eyes or proper spikes, but that is EASILY fixed. All animations are working.
     

    Attached Files:

  11. Nomad or What

    Nomad or What Wayfarer Supporter

    Joined:
    Nov 25, 2012
    Messages:
    686
    Location:
    Wherever the winds take me
    OK, here ya go :trophy2:

    ONE THING, however, and it's a biggie. I am learning a lot about custom units, particularly with regard to their event effects (i.e., "triggers"). Thanks to whoward69's request to correct the city animation effects for the Nagas, I have discovered that there are a few things that must be done when importing custom units. Otherwise, the effects will never work properly.

    One of those problems is scale. Fortunately, the Nagas scale correctly (i.e., they import at roughly human scale so I use the same scale as a Civ V unit). The centaur, on the other hand, was about 1/10 human scale when imported so I scaled it 10x in the ArtDefines. This is fine for appearance in game; however, when using special effects, the effects are ALSO scaled at whatever multiplier is used. This created some GIGANTIC fire arrow, sword, and dust trail effects once I applied .ftsxml triggers to the centaur. Perfectionist that I am, I went back and re-scaled the original unit and every animation to get it to appear correctly.

    There are some tricks to doing this, as it is not completely straightforward. Fortunately I had already discovered most of these tricks with all the grief I had converting the scorpion unit. Also, it may very well be possible to scale down the effects somehow in the .ftsxml file so that it offsets the unit scale multiplier. If there is, I haven't figured it out yet.

    So just a warning before you go through all of the trouble of converting the dragon, only to discover that you will need to re-scale it later on down the road - along with 41 animations... :cringe:
     
  12. Civitar

    Civitar Adventurer

    Joined:
    Mar 23, 2014
    Messages:
    1,507
    Gender:
    Male
    Location:
    Switzerland
    Thanks for the warning! Fortunately, the dragon is about human size too (in Blender and Granny at least) so all flames from his mouth should be the right size (for a Godzilla that is).
    If I'm having trouble with the ftsxml, should I talk to you or Nutty, in your opinion?
     
  13. Nomad or What

    Nomad or What Wayfarer Supporter

    Joined:
    Nov 25, 2012
    Messages:
    686
    Location:
    Wherever the winds take me
    You can talk to me; I pretty much have a decent understanding of how they work now. My post here will probably explain everything you need to know.
     
  14. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,350
    Location:
    Near Portsmouth, UK
    Only if you start a Dragon thread ;)
     
  15. Civitar

    Civitar Adventurer

    Joined:
    Mar 23, 2014
    Messages:
    1,507
    Gender:
    Male
    Location:
    Switzerland
    Malheureusement, I'm still getting texture issues:think:...but those are a lot easier to fix than animation issues:whew:.
     
  16. Civitar

    Civitar Adventurer

    Joined:
    Mar 23, 2014
    Messages:
    1,507
    Gender:
    Male
    Location:
    Switzerland
    Double post, I know, but....
    Spoiler :
    DRAGON!
    ...he's working now. Here's the thread.
     

Share This Page