Skip to reading
Save Game Migration

Check both sides of a switch

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView illustrations

TWO PLAYABLE CHARACTERS

A single inventory can look correct even when the other character has lost their items. Give each person something easy to recognize.

In the two-character check, player carried one key and had the key selected. kit stood in the loft with three coins. We selected a coin later, when saving with Kit active. The project used independent inventories. If your game uses a shared bag, expect both characters to see that shared bag.

Source table from Check both sides of a switch, page 15
WhenWhat to doWhat to look for
Old game · slot 1Save with player active in the cellar. Record Kit’s room and position.Player has the key. Kit has all three coins.
Updated game · slot 2Load slot 1, check the spawn, then save in an unused slot.Player arrives at the workshop stairs. The key is still selected. The score is 42 and the hatch is open.
Updated game · slot 3Switch to Kit, check the loft, select a coin and save with Kit active.Kit starts at the saved spot. The three coins and selected coin belong to Kit.
After a complete quitRelaunch. Load slot 2, then load slot 3 and switch back.Each slot restores its own active character. Switching back brings up the original player’s key.

Result for the new slot saved with Kit active. The restored room is loft and the player ID is kit.

Where to look inside the report#

Open Restored progress playableCharacterStates, then find the two character IDs. Check sceneId, position (or position2D for a 2D room), inventory and selectedInventory. The top-level inventory describes the active bag. Looking at that alone can hide a mix-up.

What we verified

The write, migrate and reload checks ran in separate Godot processes. Both newly written revision 2 slots loaded. Kit’s loft position and coin selection survived, and switching back restored the original player’s key.

STUDIO 0.86.3.8 / 15

Page 15 of 22Permalink
Go to page