Skip to content

Conversation

@KABoissonneault
Copy link
Collaborator

Fixes #2573 . Most of the details should be on the issue, but in summary:

  1. PlayerGPS updates the world info
  2. This causes the ContentReader to fill its "MapDict" cache with all the regions
  3. Loading a region also loads the WorldDataReplacement location data from mods

Before the fix, this could happen before disabled mods were removed (this occurs in ModManager.Init). Now, PlayerGPS waits for the ModManager to be Initialized before running.

As an aside, for performance reasons, I'd like if ContentReader did not read all the regions on boot, since it slows down when mods try adding thousands of new locations (carademono has a vision, okay). But I'm not ready to change that yet - maybe I'll send cara a custom build to see if simply having independent caches per region works.

But this simple change fixes the issue, and increases performance when running disabled mods with WorldData.

…removed, which erroneously included disabled mods
@KABoissonneault KABoissonneault added this to the DFU 1.0.1 milestone Feb 6, 2024
@KABoissonneault KABoissonneault merged commit e849bd8 into Interkarma:master Feb 7, 2024
@KABoissonneault KABoissonneault deleted the fix/world-data-load branch February 7, 2024 03:23
@KABoissonneault KABoissonneault mentioned this pull request Feb 7, 2024
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.

WorldData does not ignore disabled mods

3 participants