Author Topic: Horse Dismounts become Dwarves????  (Read 416 times)

Legacy_Zephyrys

  • Newbie
  • *
  • Posts: 38
  • Karma: +0/-0
Horse Dismounts become Dwarves????
« on: October 08, 2010, 07:14:58 pm »


               Okay, I posted earlier about trying to force Horse Dismounts by an object.

I kind of solved that problem, but now I have another....  For some reason, anyone who gets a "HorseInstantDismount()" command on them becomes a dwarf.  This is exceedingly odd because this is a script that is provided by Bioware... so either this had to be a bug in the original script or it is interacting badly with one of my PW module's scripts... help!
               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
Horse Dismounts become Dwarves????
« Reply #1 on: October 08, 2010, 10:31:29 pm »


               Or you're using a HAK that has an modified apperance.2da in it that is causing forced unmounts to become a Dwarf.



This issue is happening in a stock version of NWN without the use of ANY haks or override modifications?



FP!
               
               

               
            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
Horse Dismounts become Dwarves????
« Reply #2 on: October 08, 2010, 10:40:45 pm »


               It's a bug because the appearance is messed up somewhere, like FP said. Though I have seen this, or different appearance bugs due to incorrect onclient enter.   Make sure your onclient enter has the correct appearance changing lines:

  HorseIfNotDefaultAppearanceChange(oPC);
   if (GetCreatureTailType(oPC) == 0)
    {
    SetCreatureTailType(14, oPC);
    }

Maybe that won't help but all the dismount script does is dismount you, it does nothing to the appearance of the PC, therefore my conjecture is that the problem lies elsewhere.   You could also check the dead forums since this problem was thoroughly discussed there.
               
               

               


                     Modifié par ffbj, 08 octobre 2010 - 09:53 .
                     
                  


            

Legacy_AndarianTD

  • Hero Member
  • *****
  • Posts: 725
  • Karma: +0/-0
Horse Dismounts become Dwarves????
« Reply #3 on: October 08, 2010, 11:43:55 pm »


               Sounds to me like there's a mismatch between your dismount scripts and your appearance.2da. Are you using CEP, and are you using any other custom content with it?
               
               

               
            

Legacy_Zephyrys

  • Newbie
  • *
  • Posts: 38
  • Karma: +0/-0
Horse Dismounts become Dwarves????
« Reply #4 on: October 11, 2010, 09:26:59 am »


               We're using CEP.  That's the only thing that does appearance altering we have, I think.
               
               

               
            

Legacy_AndarianTD

  • Hero Member
  • *****
  • Posts: 725
  • Karma: +0/-0
Horse Dismounts become Dwarves????
« Reply #5 on: October 21, 2010, 12:40:56 pm »


               That does sound familiar -- I think I ran across something similar working on Sanctum 3. You should check your hak list for instances of phenotypes.2da and appearance.2da. If you have custom ones higher in the list than the ones in the CEP top hak, that could be the source of your problem.

The case I found was for the CEP flying rather than the CEP mounted phenos. Take a look for example at the CEP code in zep_inc_phenos, in the function zep_Fly_Land. You'll find that the last statement of the function is a long "switch (nAppearance)" with a list of different appearance enumerations. If your appearances and phenos aren't exactly matched to CEP's system (mine aren't), then if you use this code it could cause any of a number of different and unexpected appearance switches. That's what was happening to me, and I found that I had to comment that entire statement out to avoid it.

If CEP has done anything similar to the horse dismount scripts (especially in their more recent versions -- I'm using CEP 2.2 and stopped updating there), then that might account for what you're seeing. I haven't seen that in Sanctum since I completely re-wrote those scripts to implement the mounted pegasus system some time ago.

I hope that helps!
               
               

               


                     Modifié par AndarianTD, 21 octobre 2010 - 11:41 .
                     
                  


            

Legacy_420

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
Horse Dismounts become Dwarves????
« Reply #6 on: October 21, 2010, 06:56:02 pm »


               Most likely the original appearance of the rider isn't being stored correctly and it returns an error, which is 0, which also happens to be the Dwarf appearance in appearance.2da.

Are the people that are dismounting entering the server mounted? If so you may need to check for that in the OnClientEnter module event.

I use this to check for PCs entering the server mounted:

           int nPheno=GetPhenoType(oPC);
           if (nPheno==HORSE_PHENOTYPE_JOUSTING_L ||
               nPheno==HORSE_PHENOTYPE_MOUNTED_L ||
               nPheno==HORSE_PHENOTYPE_JOUSTING_N ||
               nPheno==HORSE_PHENOTYPE_MOUNTED_N)
               {
               HorseIfNotDefaultAppearanceChange(oPC);
               }

-420
               
               

               


                     Modifié par 420, 21 octobre 2010 - 05:56 .