• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Reforger Modding
  • /ARMD-13
Back
1

Persistence: a script-defined PersistenceConfigRule is never consulted. IsMatch is never called

General
1

State

Done
Issue key
ARMD-13
Access
Public
Space
Arma Reforger
Project
Reforger Modding
Creator
aaron_static
Created
Aug 11, 2026
Views
395
Platform
PC Steam
Game Version

1.7.0.54

Modlist

Overthrow

Description
The persistence system's config rules (`PersistenceConfigRule`) look like a scriptable extension point: the class is visible to script and a subclass with an overridden `IsMatch` compiles and binds in an `EntityPersistenceConfig` `.conf` without any error. But the engine **never calls a script-defined rule**. Only the native generated rule classes (e.g. `PrefabPersistenceConfigRule`) are evaluated. A scripted rule silently never matches, so the config it guards is silently never selected.

## Steps to reproduce

1. Subclass `PersistenceConfigRule` in script, override `IsMatch`, add a `Print` in it.
2. Bind the rule in an `EntityPersistenceConfig` in a persistence configuration `.conf` (any priority).
3. Load a world where entities should match; also force re-matching via `ReloadConfig()` on candidate entities.

## Observed

`IsMatch` is called **zero** times — measured across a full world load, initial tracking of ~hundreds of characters, and 300 forced `ReloadConfig()` re-matches with instrumentation. No warning or error is emitted anywhere; the config is simply never chosen.

## Expected

Either scripted rules are evaluated like native ones, or binding a scripted rule class in a persistence config is rejected loudly (config-load error / log warning) and the limitation is documented.

## Impact

Any mod feature built on a scripted match rule fails silently with "entities just don't persist" as the only symptom, which is expensive to diagnose (ours took an instrumented run to prove the rule was never reached).
Reactions

Activity

    2 months ago
  • aaron_static
    created issue2 months ago
  • about 2 months ago
  • l909
    changed state to
    ASSIGNED
    about 2 months ago
  • about 2 months ago
  • l909
    Moderator
    about 2 months ago
    l909
    Moderator
    about 2 months ago

    Resolved in 1.8

  • l909
    changed state to
    DONE
    about 2 months ago
  • about 2 months ago
  • aaron_static
    about 2 months ago
    aaron_static
    about 2 months ago

    Still occuring in 1.8.0.10, or did you mean a future 1.8.x version?

  • about 2 months ago
  • l909
    Moderator
    about 2 months ago
    l909
    Moderator
    about 2 months ago

    Apologies, should be 1.8.0.13 and higher

You are not signed in. Please sign in to see more details and to reply.

State

Done
Issue key
ARMD-13
Access
Public
Space
Arma Reforger
Project
Reforger Modding
Creator
aaron_static
Created
Aug 11, 2026
Views
395