Skip to reading
Error Handling & Debugging

Keep a failed interaction recoverable

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

0.86.4.0 walkthrough / Read what the Runner actually did > p. 27

TROUBLESHOOTING REFERENCE

Suppose a ride charges two tickets and then takes the player to another room. What should happen if the player clicks twice, the destination is missing, or a save is loaded between the charge and arrival?

Source table from Keep a failed interaction recoverable, page 26
Before changing stateCheck that the ride is available, the player can pay, and the destination belongs to this journey. Decide whether a ticket covers one trip or all future trips.
When the first click startsMark the interaction as in progress before the first wait. A second click can give a short response or do nothing. It should never charge a second fare for the same trip.
When a step failsRecord which step failed. If your design already charged the fare, refund that specific charge once or leave a saved “paid, awaiting travel” state that lets the player resume. Release any input lock owned by this interaction.
When travel succeedsMark the journey complete at the point your design considers arrival. Refresh the interface from that state so it shows what really happened.
When a save is loadedRebuild the room and controls from the stored state. Avoid replaying a charge simply because a room-entry handler ran a second time.

Four questions for the next playtest#

How many tickets remain after a normal ride? What about a rapid double-click? Can a failed departure be retried without a second charge? After loading the resulting save, do the ticket count, the current room and the available controls all tell the same story?

Use this pattern when an action has lasting consequences. For something harmless like examining a sign, a simple condition and a readable message are usually enough.

Page 26 of 37Permalink
Go to page