Skip to reading
Error Handling & Debugging

Find state that vanishes after loading

Edition 0.86.4.4 Hotfix 2

Updated through 0.86.4.4 Hotfix 2, with cinematic property, recorded-pose or voice-timing lessons as described in this guide. Earlier examples, screenshots and complete registry figures retain their stated edition context.

Download PDFView PDF page

SAVE AND LOAD

When a puzzle resets after loading, trace one fact through time. A single Boolean such as signal_seen is easier to follow than a whole room full of props.

Source table from Find state that vanishes after loading, page 20
1. Before savingTrigger the story event the normal way. Use get signal_seen and record the result. If it is already wrong, debug the event before investigating the save.
2. During the saveUse a disposable test slot. Record the slot number and wait for the save to finish. Preserve any player save you still need.
3. Before loadingChange the live flag to the opposite value. Reading it now makes the difference observable. Leave the saved slot alone.
4. After loadingLoad that same slot and query the flag again. Then inspect the actual door, label or character that should reflect it.

In the verified slot-3 case, the shared BASIC flag read true before saving, false after clearing it, and true after loading. If the value comes back correctly but the door still looks locked, inspect the room’s startup or refresh logic next.

Function locals last for a call. A BASIC module-level DIM can survive repeated calls without becoming saved progress. Use a shared game variable for a story flag that belongs to a save slot. A settings file at a single user:// path can apply across several slots.

Page 20 of 37Permalink
Go to page