Skip to reading
Error Handling & Debugging

Follow a committed entity change

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
On this page

0.86.4.0 / DEBUGGING

RUNTIME WALKTHROUGH

Sometimes the switch fires twice and the light moves only once. Check what was requested, what committed, and what actually changed. Those are three different observations.

Code example
func turn_up_lamp():
Code example
    var reply = await ActionResult("ChangeObjectProperty", {
Code example
        "entityId": "desk_lamp", "property": "light.intensity",
Code example
        "value": 2.5, "persistence": "room"
Code example
    })
Code example
    if reply.ok:
Code example
        print(reply.result.status)
Code example
    else:
Code example
        print(reply.error, " ", reply.message)

1

Trigger the switch twice#

Start the lamp below 2.5. Substitute its real entity ID in the function above. Run it twice in the same room. The first successful change should print applied, the second unchanged. A failure should send you to the error branch.

2

Read the entity counters#

In a native GDScript with Runtime available, inspect Runtime.property_write_counts. It groups successful entity writes by status, including unchanged. Compare before and after your two calls. A rejected write adds no successful count.

3

Watch the event when it matters#

The Runner emits property_committed(room_id, entity_id, path, outcome). The last argument is the outcome itself, so read outcome.status in the listener. An ordinary repeat is quiet. A first equal-value pin can emit once because its save lifetime changed. Restore suppresses the ordinary notification.

If an older request finishes late

Visibility or enabled changes issued during physics can wait a frame. A newer write or a replaced target can make the earlier call fail with stale_target. Inspect the newest intent before trying again. GUI, camera, room and layer results should be checked at their own call sites.

PCA 3D / Debugging

Page 28 of 37Permalink
Go to page