Skip to content

PartitionSerializer cache is wiped by modList.ReloadExtensions, breaking the inspector until a full restart #390

Description

@Powback

Dev-loop friction on branch live-ebx.

Symptom

After modList.ReloadExtensions, every inspector fetch fails with:

[PartitionSerializer] ERROR: Partition not found / not loaded: <guid>

and stays broken until the server is fully restarted (which reloads the level).

Cause

PartitionSerializer populates self.m_Partitions only from Events:Subscribe('Partition:Loaded', ...), and clears it on Level:Destroy. A reload re-runs __init -> m_Partitions = {}, but the level is already loaded, so Partition:Loaded never fires again and nothing repopulates the cache.

Effect

Every ext change to MapEditor requires a full server restart rather than a reload, which is a meaningful tax on iteration (WebUI-only changes are fine via the normal build).

Fix direction

Rebuild the cache on init/reload by scanning already-loaded partitions instead of relying solely on the event. There are already two fallback paths for uncached partitions (a name lookup, and a single-instance SearchForInstanceByGuid fallback), which suggests this has been worked around rather than fixed.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions