Native script-reference policy
Script-visible unit references can have an owner scope and a deterministic reuse delay. Native entity identity remains independent. Native content selects this policy without a TA executable, DLL or legacy configuration file.
Add script-references.toml at the mounted mod root:
version = 1
namespace = "owner"
reuse_delay_ticks = 150
Version 1 requires all three fields. namespace accepts "global" or
"owner". reuse_delay_ticks is an integer from zero through 2147483647,
measured in the match's simulation ticks. At 30 ticks per second, 150 means
five seconds; at 60 ticks per second use 300 for that duration. Global scope
requires a zero delay. Unknown fields, tables, types, versions and values
reject loading with diagnostics. The highest-priority VFS copy wins as a whole.
The policy is immutable once unit script identities have been allocated.
Engine and bridge resolve it through shared gameplay map loading before
the first unit's Create script. The
script identity contract
owns allocation, death-time retirement, finite cached script bounds and
ownership-transfer behavior. If every reference in an owner's negotiated
range is occupied or cooling down, allocation refuses explicitly; the adapter
cannot widen a bound already cached by a running legacy script. This does not
impose the original executable's table width on native entity IDs.
An explicit native file takes precedence over the compatibility library. To retain baseline behavior even when a legacy profile matches, use:
version = 1
namespace = "global"
reuse_delay_ticks = 0
An absent file permits verified profile selection; if no profile matches, the global baseline applies. Explicit baseline selection remains part of mapping identity so peers agree that inference was disabled.
The resolved policy and retirement history survive checkpoints and replays. Loading requires matching mounted policy and compatibility identity. An older save that lacks owner-scoped layout and death-time history cannot be adopted under this policy; load it with its matching baseline content instead. The checkpoint contract owns the versioned encoding.