Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : Disappearing/Dying NPCs remain in the pathmap AND Pushable NPCs do not update pathmap (Pathmap problems)
New Topic New Poll Post Reply
Poster Message
Xindaris
Level: Master Delver
Avatar
Rank Points: 285
Registered: 06-13-2015
IP: Logged

File: Obstacle problems.hold (1.3 KB)
Downloaded 0 times.
License: Public Domain
icon Disappearing/Dying NPCs remain in the pathmap AND Pushable NPCs do not update pathmap (0)  
If you set an NPC to have Imperative Brain Pathmap Obstacle, and then do something to make said NPC die or disappear via scripting, it's then possible to walk through the tile it was on (duh, as it should be), but the Brain still regards that tile as an obstacle!

The attached hold demonstrates the issue. If you bump the NPC (which is pushable by weapon also if you want to move it around to experiment) it will disappear and die via scripting. But if you then open the door every brained roach movement will head to the east exit of the little box, even if Beethro is really close to the west end!

I strongly suspect the same thing would happen with an NPC's pathmap and those relevant commands, but have not specifically tested it. It MIGHT be interesting to allow something that's disappeared to still be an obstacle (so "only brains see it" and with a decent architect they'd have ghost display so the player knows where they are) but it DEFINITELY shouldn't still be an obstacle after it's died.

EDIT: I've discovered that the problem is even worse. With this "pushable by weapon" NPC, if you push him off of the tile he starts on but don't bump him to destroy him that tile is still treated as a brain pathmap obstacle, AND the new tile is NOT treated as a brain pathmap obstacle. This means the pathmap is not being properly updated on pushing a pushable character the way it is for normal pushables like mirrors and powder kegs, both of which do have the pathmap updated properly when pushed.

____________________________
109th Skywatcher

Here are some links to Things!
Click here to view the secret text


[Last edited by Xindaris at 01-23-2017 09:36 PM]
01-23-2017 at 09:28 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Xindaris
Level: Master Delver
Avatar
Rank Points: 285
Registered: 06-13-2015
IP: Logged
icon Re: Disappearing/Dying NPCs remain in the pathmap AND Pushable NPCs do not update pathmap (0)  
Just going to bump this with a small, partial workaround: If something that's been set to "pathmap obstacle" has the "not pathmap obstacle" command applied to it before it moves off of whtaever tile it's on, that tile stops being marked as a pathmap obstacle. This still doesn't really at all fix the issue, but it's worth mentioning because it might make things better in a few cases.

____________________________
109th Skywatcher

Here are some links to Things!
Click here to view the secret text

04-19-2017 at 09:59 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Bugs : Disappearing/Dying NPCs remain in the pathmap AND Pushable NPCs do not update pathmap (Pathmap problems)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.