Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : Game spams error messages and ocassionally crashes when hostile NPC moves a platform (Bug with most recent Second Sky, which doesn't happen in older versions)
New Topic New Poll Post Reply
Poster Message
azb
Level: Smiter
Rank Points: 460
Registered: 03-08-2014
IP: Logged

File: NPC Platform Bug.hold (1.9 KB)
Downloaded 38 times.
License: Public Domain
icon Game spams error messages and ocassionally crashes when hostile NPC moves a platform (+2)  
Hello everyone,

In the most recent patch of The Second Sky I have, 5.1.0.6512, the game glitches out with an endless flood of error messages even after you close the program, and sometimes even crashes due to the sheer flood, as soon as the hostile NPC moves the platform.

This is a huge deal breaker for a later boss fight level in my King Azb's Arena hold, who I want to be able to push mirrors, drop trapdoors and move platforms to make the combat more difficult, but am I simply using an outdated DROD version?

____________________________
Please feel free to test the ultimate arena: King Azb's Arena today!
01-25-2023 at 03:13 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
hyperme
Level: Smitemaster
Avatar
Rank Points: 1060
Registered: 06-23-2006
IP: Logged
icon Re: Game spams error messages and ocassionally crashes when hostile NPC moves a platform (+2)  
This is present in 5.1.1 RCs so updating won't save you.

The bug is a problem with the Pathfinding Imperatives. Due to how the game checks for obstacles, it will try to test illegal platform moves when encountering pits or water if the NPC is standing on a platform type that can cross them. Due to some optimizations in platform code, this crashes the game.

The various beelining imperatives won't cause this to happen, as they do not attempt to construct a path, and so will never check the obstacleness of a non-adjacent tile.

____________________________
[Insert witty comment here]
Qzvlkx?
01-25-2023 at 05:08 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
azb
Level: Smiter
Rank Points: 460
Registered: 03-08-2014
IP: Logged
icon Re: Game spams error messages and ocassionally crashes when hostile NPC moves a platform (0)  
That is very bizarre that the pathfinder code would crash it, cause I don't think it would be a big deal to script special algorithms to make it work seamlessly on platforms the way it works seamlessly on normal floors right now, cause I believe doing the math it probably will not be any more complicated than the normal pathfinding algorithm is, the only thing that would make it more tricky is accounting for when the platform won't fit through, but that probably just involves sorting through an array or some other method of checking each square on the platform before making the decision to calculate a specific path to move along.

____________________________
Please feel free to test the ultimate arena: King Azb's Arena today!
01-25-2023 at 09:45 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Bugs : Game spams error messages and ocassionally crashes when hostile NPC moves a platform (Bug with most recent Second Sky, which doesn't happen in older versions)
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.