Skip to content

Fix PersistenceLocationAnalyzer and UniquePlacedNpcAnalyzerissues - #643

Open
kieranknowles1 wants to merge 9 commits into
Mutagen-Modding:devfrom
kieranknowles1:home-only
Open

kieranknowles1 wants to merge 9 commits into
Mutagen-Modding:devfrom
kieranknowles1:home-only

Conversation

@kieranknowles1

Copy link
Copy Markdown
Contributor
  • Fix UniqueNpcWithoutPersistenceLocation not being exposed from Topics
  • Fix PersistenceLocationWithCellWithoutLocation not including locations inherited from worldspace
  • Remove UniqueNpcNotInPersistenceLocation (Unique NPC not in Persistence Location #285) as it was a duplicate of Placed Object Not Inside Persistence Location #386
  • Add test case to ensure public static topic fields of all analyser classes match their Topics property (don't know if this is following best Xunit/Autofac practices).
  • Add missing topics to Topics for several analysers

This is a duplicate of Mutagen-Modding#386 NotInsidePersistenceLocation and never
worked because:

- UniquePlacedNpcAnalyzer didn't list any topics
- it attempted to get the base NPCs parent as a cell, rather than the
PlacedNpc
- It errored on an NPC being inside its persist location rather than
outside
- It did not include virtual location or persist all
@Noggog

Noggog commented Sep 3, 2026

Copy link
Copy Markdown
Member

Remove UniqueNpcNotInPersistenceLocation (#285) as it was a duplicate of #386

Hmm, why did you determine these were dups? Seems like one was discussing placed objects, while the other more concerned with unique npcs? Similar but not quite a dup, id say?

@kieranknowles1

Copy link
Copy Markdown
Contributor Author

Remove UniqueNpcNotInPersistenceLocation (#285) as it was a duplicate of #386

Hmm, why did you determine these were dups? Seems like one was discussing placed objects, while the other more concerned with unique npcs? Similar but not quite a dup, id say?

The current title of #385 and #386 is misleading, as the topics are implemented in Npc.PersistenceLocationAnalyzer which runs on placed NPCs, this could be promoted to run on IPlaced instead as the same logic is applicable

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants