Troubleshooting native scripts
Earlier edition reference / Current 0.86.4.0 property paths > p. 350
| Symptom | Check |
|---|---|
| Say/Variable/Action is unknown | Did an explicit extends Node replace the PCA base? Keep the inherited PCAScriptBase route. |
| Runtime is null in _ready | PCA binds after adding the script Node. Use on_global_ready or a routed call for PCA-dependent startup. |
| A timer stops after run returns | The record may be temporary. Keep a global instance or await the complete finite job. |
| Member values reset | Ordinary records get a fresh instance each call. Use a global member for session state or Variable for saved state. |
| A handler never runs | Check the Event Functions subscription and exact on_* method. |
| A local name causes warnings/confusion | Avoid hiding inherited context, Runtime, player, name or a helper method. |
| A proxy looks valid but the record is missing | Use proxy.Exists or registry.Has; IsValid only validates the proxy object. |
| A child path cannot be found | The script Node is not the calling object’s rendered Node. Inspect the correct hierarchy. |
| Resource load fails only in a build | The actual resource file/import/dependencies may not be included. A record ID is not a res:// .gd file. |
| A visual change is overwritten | Another controller/animation owns the property, or the write changed only a definition. |
| Room transition destroys the editor | Use PCA ChangeScene, not SceneTree.change_scene_to_file, for adventure rooms. |
| A stale node fails after room change | Use is_instance_valid and reacquire the native node when the room/actor rebuilds. |
| TryCall did not recover an error | It validates a Callable; it cannot catch arbitrary GDScript runtime errors. |
