Author Topic: NPC disappearing  (Read 338 times)

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
NPC disappearing
« on: March 05, 2015, 01:38:23 pm »


               

HI folks, i hit something I have not seen before last night.  I have an NPC barmaid who simply vanishes after about 5 minutes of work.  No fade out, no despawn, just walking across the room, then gone, mid-stride. It seems to be reliably reproducible.   Has any one seen this sort of thing?  


 


There's nothing in the script that destroysobjects, it's not time for NESS to despawn (and as I said, there's no fade out, it's an instant wink out).  I'll debug it more when I get back to it. I was just curious if any one else had seen this sort of thing. If there was some protection in the engine for resource hogging objects that I triggered or something.


 


(reposted to scripting as that seems related...)



               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
NPC disappearing
« Reply #1 on: March 05, 2015, 03:37:48 pm »


               

The only similar thing I've seen is when a NPC passes behind the Drow Bar placeable. If standing still, the NPC looks like it is concealed, but when passing behind on its way to next waypoint, the NPC often disappears for a few seconds. Pretty sure that this has nothing to do with your problem but I had to mention it.


 


 


Kato



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
NPC disappearing
« Reply #2 on: March 05, 2015, 04:07:12 pm »


               Maybe a timeout on ForceMoveToObject? I have a similar issue, I suspect a scripting error.
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
NPC disappearing
« Reply #3 on: March 05, 2015, 04:32:07 pm »


               

It sounds like the NPC is following a set of tagged waypoints or objects and is being ported to another area containing an object with the same intended tag.



               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
NPC disappearing
« Reply #4 on: March 05, 2015, 07:50:04 pm »


               

Thanks for the ideas. There's no use of ForceMoveToObject. There are only two waypoints invovled and they are only in this small area. What happens to a MoveToObject command if the target object is destroyed before the mover gets to it? I wonder if she's trying to move to a patron who gets despawned before she gets to him. I've added some instrumentation to try to see what happens. If she's getting jumped to a different area this'll show that too.  I'll see what I can learn tonight.   Thanks!  



               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
NPC disappearing
« Reply #5 on: March 06, 2015, 02:52:57 pm »


               

Found it! The winking out was throwing me off. Code I was modifying was leaving her with a handful of delaycommands which seemed to be effecting how the NPC was despawning. When I backed that code out she was fading out like a normal despawn. Turns out to be a bug in unrelated code in NESS. The code is mishandling the despawn hour when it is set to 24. The barmaid went off duty at midnight, but because of this bug it was despawning her at the next hour change instead. So it was not five minutes but six (minutes per hour in this mod). The NESS docs say 00-24 are valid but when I changed the hours code to wrap I made it only work for 0-23, which I had forgotten when I setup the spawn point. The moral is to always make the code and the documentation match '<img'> 



               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
NPC disappearing
« Reply #6 on: March 08, 2015, 02:55:54 pm »


               I'd look at the spawn in script, is it delayed to kill the NPC?

Or are we talking is there but vanishes?