Repository navigation
Fix duplicate zone enter/leave messages caused by bots in the player … - #466
Merged
Merged
Conversation
…list Vanilla bots (wildlife/creature spawners such as deer, wolves, spiders) are IMyPlayer objects that share the host's SteamUserId. RefreshAllPlayers matched them to the real player's entry by SteamUserId and replaced its Player reference, so on the next refresh the real player matched nothing and a new entry was created, which a bot then hijacked again. The list grew with stale or offline copies of the player, and each new entry re-triggered zone announcements (for example Entering Earth plus Leaving Helios on load or while standing still). - Skip bots and non-player identities when refreshing the player list - Flag PlayerEntityChanged when an entry's Player is reassigned - Stop searching after the first SteamUserId match
enenra
requested changes
Nov 17, 2026
Co-authored-by: enenra <enenra9@gmail.com>
Contributor
Author
|
Retested with the suggested |
enenra
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…list
Vanilla bots (wildlife/creature spawners such as deer, wolves, spiders) are IMyPlayer objects that share the host's SteamUserId. RefreshAllPlayers matched them to the real player's entry by SteamUserId and replaced its Player reference, so on the next refresh the real player matched nothing and a new entry was created, which a bot then hijacked again. The list grew with stale or offline copies of the player, and each new entry re-triggered zone announcements (for example Entering Earth plus Leaving Helios on load or while standing still).