Skip to reading
Error Handling & Debugging

Make the output tell a story

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 illustrations

OUTPUT & DIAGNOSTICS

Give the log one short line at each point where the answer could change. You’re trying to learn whether the button ran, what it received and what it decided.

Output & Diagnostics collects messages as the preview runs. Open it again from Panels if it is hidden.

Code example
gate | entered
gate | tickets=2 price=2
gate | branch=closed

These are example log messages. Keeping the same prefix makes it easier to pick out one interaction among room-load, sound and inventory messages. Write the values before the choice and the chosen result inside each branch.

Source table from Make the output tell a story, page 7
No entry lineTrace the button, verb or event that should start the script. Make sure this is the record the game actually called.
Entry appears, no valuesInspect the statements between the two messages. Did a return, wait or failed call stop the path?
Values are right, branch is wrongLook closely at the operator and the data types. A number and text that looks like a number can behave differently.
Correct branch, wrong screenTrace the action that changes the visible room, object or label. Another handler may immediately overwrite it.

Use log in PCA Script, PRINT in BASIC, and Log(...) in a PCA3D Lua or native GDScript record. Remove high-frequency tracing after the fix so important messages stay visible.

0.86.4.3 / Read a cue trace and camera diagnostics > Page 33

Page 7 of 37Permalink
Go to page