Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors caused by pocket maps with Multifaction/spectator faction #475

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SokyranTheDragon
Copy link
Member

FactionRepeater ends up repeating Storyteller.StorytellerTick for all factions (including spectator, even with Multifaction off). This causes issue due to StorytellerUtility.DefaultThreatPointsNow using Find.AnyPlayerHomeMap if the target is a pocket map, which for factions without a home map will return null and cause NullReferenceException.

`FactionRepeater` ends up repeating `Storyteller.StorytellerTick` for all factions (including spectator, even with Multifaction off). The issue happens due to `StorytellerUtility.DefaultThreatPointsNow` using `Find.AnyPlayerHomeMap` if the target is a pocket map, which for factions without a home map will return null and cause `NullReferenceException`.
@SokyranTheDragon SokyranTheDragon added fix Fixes for a bug or desync. 1.5 Fixes or bugs relating to 1.5 (Not Anomaly). labels Jun 18, 2024
@SokyranTheDragon
Copy link
Member Author

Looking a bit deeper, it seems there may be some bigger issue at play here. I've seen a couple of more errors that happened due to spectator faction (multifaction off). Would need more investigation.

@coldliang
Copy link

Is my log the same as this bug? This issue has occurred 100+ times.
Desync-118.zip

@SokyranTheDragon
Copy link
Member Author

Is my log the same as this bug? This issue has occurred 100+ times. Desync-118.zip

Unrelated.

@SokyranTheDragon
Copy link
Member Author

Could this be what is causing the double quests to spawn? If the storyteller is ticking for both the player and the spectator at the same time, and then try to generate a quest for both, would it be possible that it just spawns 2 quests for the player faction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.5 Fixes or bugs relating to 1.5 (Not Anomaly). fix Fixes for a bug or desync.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants