Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : Face Towards Like Guard does not update target position when queued
New Topic New Poll Post Reply
Poster Message
Dragon Fogel
Level: Smitemaster
Rank Points: 2584
Registered: 06-21-2014
IP: Logged
icon Face Towards Like Guard does not update target position when queued (+2)  
There was an issue with a scripted character in Entry Point. We managed to work around it, but the core issue was this.

The character used "Face Towards Like Guard". Through a combination of speed potion and pushing, sometimes the command would get queued rather than executed immediately.

When this happened, the character would attempt to face towards the player's *previous* position.

My best guess is that Face Towards Like Guard works by checking the target's location, translating that into a direction to turn (or neutral) and then preparing a turn in that direction. If the turn ends up being queued, it will therefore continue in the designated direction regardless of the target's actual location.

This is very unintuitive and it should probably somehow be set up so that it checks the target's location again on the turn where it actually rotates.
12-23-2024 at 10:20 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
hyperme
Level: Smitemaster
Avatar
Rank Points: 1263
Registered: 06-23-2006
IP: Logged
icon Re: Face Towards Like Guard does not update target position when queued (+1)  
Can you be more specific about when this is happening? The command decides what the target square is as part of being processed, and doesn't use any persisted data do to so (unless _MyScript overriding is used).

A stunned character doesn't process movement commands for the turn, and speed potions have no affect on processing in 5.1.1 and previous, so I'm not sure how this could be happening.

(This report is also based on the incorrect idea that characters "queue" moves which adds confusion)

____________________________
[Insert witty comment here]
Qzvlkx?
01-07-2025 at 05:32 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Dragon Fogel
Level: Smitemaster
Rank Points: 2584
Registered: 06-21-2014
IP: Logged
icon Re: Face Towards Like Guard does not update target position when queued (+1)  
I could not figure out any conditions other than "it happens sometimes". I guess the core issue could be in the script? I didn't notice it using MyScript but it just might not have registered with me because I was just trying to do a quick fix rather than fully understand the script.

You can see the room in question for yourself. I don't know if you have access to the admin tools that allow editing any hold, but even if you don't, there are editable versions on the beta board you can look at.
01-07-2025 at 06:21 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
hyperme
Level: Smitemaster
Avatar
Rank Points: 1263
Registered: 06-23-2006
IP: Logged
icon Re: Face Towards Like Guard does not update target position when queued (+1)  
Dug into this, and it looks like this only happens when using _MyScript overrides. The problem is the weird way characters interact with a speedy player. This isn't something that can be easily fixed without causing unwanted effects on existing scripts in holds.

However, 5.2 will include a character behaviour that makes a character only process its script on full turns. That should mean that this particular kind of problem can be avoided.

____________________________
[Insert witty comment here]
Qzvlkx?
01-29-2025 at 10:41 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 : Face Towards Like Guard does not update target position when queued
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.