Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : Some weird stuff with Imperative Pathfinding
New Topic New Poll Post Reply
Poster Message
Nuntar
Level: Smitemaster
Avatar
Rank Points: 4981
Registered: 02-20-2007
IP: Logged

File: pathfinding bug.hold (1.1 KB)
Downloaded 28 times.
License: Public Domain
icon Some weird stuff with Imperative Pathfinding (+1)  
In the attached hold:

* The north NPC is trying to get to the centre of the sand square. Like Halph, he recalculates his path if you close the door, but then he sticks to the long path if you re-open it.

The weird part is not that Imperative Pathfinding behaves like this. It's that the NPC's script has "Move to Single step" inside a loop, and still sticks to the long path instead of recalculating. May or may not be a bug; certainly weird.

* The south NPC shows that the same thing happens if a Wait 0 is included in the loop, so the NPC is moving every second turn.

____________________________
50th Skywatcher
06-05-2023 at 07:04 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5200
Registered: 02-04-2003
IP: Logged
icon Re: Some weird stuff with Imperative Pathfinding (0)  
PR

Thanks, hyperme!

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
06-29-2023 at 05:40 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
NoahT
Level: Smitemaster
Avatar
Rank Points: 1187
Registered: 06-17-2003
IP: Logged
icon Re: Some weird stuff with Imperative Pathfinding (0)  
The NPCs no longer stick to the long paths in 5.2.0.700.

____________________________
And in the end, the love you take is equal to the love you make.

My stuff:
Click here to view the secret text


[Last edited by NoahT at 02-03-2025 08:18 AM]
02-03-2025 at 06:04 AM
View Profile Send Private Message to User Send Email 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 : Some weird stuff with Imperative Pathfinding
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.9
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.