Author Topic: CEP Horse Appearance Issue  (Read 349 times)

Legacy_BelowTheBelt

  • Hero Member
  • *****
  • Posts: 699
  • Karma: +0/-0
CEP Horse Appearance Issue
« on: August 27, 2012, 02:50:58 am »


               I'm running into issues when trying to utilized the mount appearances included in CEP 2.4, specifically the lizard mount.

Calling the following function:  HorseCreateHorse("jousthorse005",lWP,oPC, "AR_LIZARDMTGRN",-1,3922,-1,""), where "jousthorse005" is the resref for my custom lizard mount.  Appearance 3922 is the lizard mount appearance number from the CEP appearance 2da.

This function  successfully creates a mountable creature with the appearance of the lizard mount.  However, when I mount the creature, the model disappears and the rider is left riding on air.

In the above function the 3922 is placed the "tail" setting of the function.  I have also tried putting it as the "appearance" value, but the same thing happens.

What am I doing wrong?

For reference, the function description:
FILE: x3_inc_horse       FUNCTION: HorseCreateHorse()
// This function will create a horse based on the blueprint sResRef at location
// lLoc and will set the owner of the horse to oOwner.  If sTag is set to
// something other than "" it will set the horse to that tag.  If nAppearance,
// nTail, and nFootstep are set to something other than -1 then it will set the
// horse to that appearance, tail, or footstep.  The function will return the
// horse that is spawned.   This function is setup the way it is so, that you
// could potentially use a single blueprint to store multiple appearance horses.
// sScript is a specific script that should be executed on the horse after it is
// spawned.  This is again supplied to further support multiple horses with a
// single blueprint.
object HorseCreateHorse(string sResRef,location lLoc,object oOwner=OBJECT_INVALID,string sTag="",int nAppearance=-1,int nTail=-1,int nFootstep=-1,string sScript="")

Thanks for the help!
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
CEP Horse Appearance Issue
« Reply #1 on: August 27, 2012, 05:00:01 am »


               For nTail, you probably need the line number from tailmodel.2da that matches up with that lizard appearance...the model name should be the same in both tailmodel.2da and appearance.2da.
               
               

               
            

Legacy_BelowTheBelt

  • Hero Member
  • *****
  • Posts: 699
  • Karma: +0/-0
CEP Horse Appearance Issue
« Reply #2 on: August 28, 2012, 03:49:23 am »


               Thanks, TAD, I was hoping that would be it.  Unfortunately, no dice. I modified the call to reference the lizard mount tail appearance but the same issue happened - the rider can mount/dismount, but appears to ride on air. When dismounted, the lizard mount appears again correctly. It's just the mounted appearance where I'm having issues.  Even the footsteps appear to work.

case 12: oHorse = HorseCreateHorse("jousthorse005",lWP,oPC, "AR_LIZARDMTGRN",-1,9980,-1,"")

Has anyone incorporated the CEP 2.4 mounts into their mod?

Maybe there's an issue with my CEP install? I haven't had any issues up till now and have been able to create mounted custom creatures using the tail appearance, so I'm doubting that is the issue, but you never know...

Thanks!
               
               

               


                     Modifié par BelowTheBelt, 28 août 2012 - 02:54 .
                     
                  


            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
CEP Horse Appearance Issue
« Reply #3 on: August 28, 2012, 05:05:03 am »


               I seem to recall having this issue with a couple of custom horse appearances I added to my PW.

I think I may have manually edited the x3_inc_horse library's mounting and dismounting functions to properly account for multiple added mount appearances...making the function reference a list of tail appearances matched to horse appearances that I added myself.  It's been a year or more since I did that, I think.

I have yet to add the newer mount appearances from CEP 2.4 to my PW.  When I get time, I want to override them with Dragoth's (spelling?) updated mounts anyway.
               
               

               
            

Legacy_BelowTheBelt

  • Hero Member
  • *****
  • Posts: 699
  • Karma: +0/-0
CEP Horse Appearance Issue
« Reply #4 on: August 29, 2012, 06:12:30 pm »


               Got it working based on your comment about x3_inc_horse. Inside that script is reference to a number of variables that can be placed onto the mount, including one to denote the tail that should be used:

X3_HORSE_TAIL = the tail to use with the tails.2da that defines this horse.

So, putting this int as value 9981 on my lizard mount gave the correct tail appearance while riding and didn't require any changes to the script.

Thanks for the help!
               
               

               


                     Modifié par BelowTheBelt, 29 août 2012 - 05:14 .