Skip to content

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?

@notfood notfood changed the base branch from master to dev July 1, 2025 15:31
@notfood notfood merged commit f89b76a into rwmt:dev Jul 1, 2025
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.

3 participants