Game dev
Saved & recent

Persistent identifiers

Related terms: stable identity, IDs, lookup, references, remapping

Identifiers that let saved data find the same object or content after loading again. A memory address or temporary array index may point somewhere else next session. A durable identifier, or a saved mapping to a stable name, gives the loader enough information to restore the intended relationship.

Persistent identity does not require every runtime number to stay unchanged. Factorio saves a mapping between content names and numeric IDs, then remaps old IDs to current ones when loading. For individual instances, an identifier must also distinguish two objects of the same type, such as separate chests with different inventories.

Source
Factorio: stable prototype IDs and remapping
Further reading
Game Developer: Building a Simple System for Persistence with Unity
chest saved id chest-grove runtime slot slot 04 chest saved id chest-grove runtime slot slot 19 reload earlier session later session
The saved ID finds the same chest even though the chest occupies a different runtime slot after reload.

View in the full Game dev collection