Errors and Warnings Reference
This chapter explains how to read error displays and warnings that occur in the editor and runtime of this tool, along with their causes and remedies. It covers questions such as "What does this red display mean?" or "An error flowed into the debugger, what should I do?".
Four principles of error notification in this tool
- Do not show to end users (players) — No error UI appears on the game screen
- Always make the developer (creator) notice — Red display in the editor / notification in the debugger panel
- Never block game progress — The game continues without crashing even if the reference target is gone
- Never silently drop errors — Errors are always routed to a notification channel
Three Notification Channels for Errors
Error notifications in this tool are divided into three channels.
| Channel | Timing | Display Location | Visible to Players |
|---|---|---|---|
| (1) Editor red warning | While editing in the editor, when a referenced key does not exist | Red-background display within the editor | No (editor only) |
| (2) Runtime push_error | At game runtime, when a referenced key is undefined | Debugger panel "Errors" tab | No (only debugger viewers) |
| (3) Reserved ID auto-restoration WARNING | At startup, when a reserved ID is missing from JSON | Debugger panel "Warnings" tab | No (only debugger viewers) |
No impact on the game screen
None of these errors interrupt game progress. When a reference target is missing, the game silently continues by "substituting an empty string" or "proceeding to the next step with no target". The design ensures that end users do not notice during play.
(1) Editor Red Warning
Where Does It Appear?
In each editor tab, it appears when a key referenced by the currently selected setting does not exist in another tab. The background color becomes red with 0.3 opacity Color(1, 0.3, 0.3, 0.3).
Main Detection Points
| Tab | Detection Target | Typical Example |
|---|---|---|
| Item tab | consume_self / consume_user / tgt_param / tgt_state / param / state / attachable / req_param keys | The "MP" Parameter referenced by the consumption cost of Hi-Potion has been deleted |
| Attach tab | req_param / param / state keys for equipment | The equipment requirement Parameter "STR" of Iron Sword has been deleted |
| Char tab | Keys for initial items / initial Attaches / initial States / class | "IT_WEAPON_01" in initial equipment settings has been deleted from items |
| Enemy tab | Keys for drop items / Parameter bestowal | An item the enemy drops has been deleted |
| Class tab | Keys for req_exp / add_param / add_item / add_attach | A skill acquired on level up has been deleted |
| Enemy Group tab | Keys for member enemies | An enemy registered in the group has been deleted |
Remedy
- Cause: After renaming or deleting an ID in another tab, an old ID remains on the referencing side
- Remedy: Select the row shown in red and either replace it with the correct key in the relevant property, or delete it if unnecessary
Ghost Key Display (Item Selection)
The filter type of Show Item Select is also detected with the same red display. If a deleted itemtype / attachtype remains in the filter, the CheckBox background turns red.
(2) Runtime push_error (Reference Error)
Where Does It Appear?
While the game is running, when a referenced key is not found, it is displayed in red text in the "Errors" tab of the Godot editor's debugger panel.
Typical Message
[RPGWizardG] Reference error: parameter 'Dura' does not exist
(context: gui.set_attach_detail crit_param item=IT_HI_POTION)| Element | Meaning |
|---|---|
Reference error | Reference resolution failed at runtime |
parameter / state / item / character / drop_table etc. | Type of reference |
'Dura' etc. | The key that was being referenced |
context: ... | Where the issue occurred (developer-oriented information) |
Typical Causes
- Manually edited the JSON and removed an ID
- Cross-tab references are broken (missed the editor red warning)
- An ID referenced in translation data does not exist
Remedy
- Identify "which key was not found" from the message
- Open the tab (parameter / state, etc.) where that key is defined
- Add the key if it does not exist, or fix the typo
- Also check the settings on the referencing side (item / character, etc.)
Duplicate Notification Prevention (dedup)
Reference errors with the same (context, type, key) are notified only once per process (to prevent log flooding). The same error does not keep flowing endlessly.
Visible to Players?
Normally not visible during play. The debugger panel is only displayed when the Godot editor is open. Even in an exported game (such as a distributed .exe), it is invisible unless the end user opens a console.
(3) Reserved ID Auto-Restoration Warning
Where Does It Appear?
At game startup, if a Reserved ID (14 IDs such as HP / EXP / LEVEL / DEAD) is missing from the JSON, the runtime automatically restores it with the standard value and notifies in the "Warnings" tab of the debugger panel.
Typical Message
[RPGWizardG] Reserved ID 'HP' not found in parameter.json. Restored with default value.Remedy
- Cause: Manually edited the JSON and deleted the entry for a reserved ID
- Remedy: When you open that tab (parameter / state, etc.) in the editor, the normal settings are automatically restored. If you deleted it intentionally, understand this specification (reserved IDs cannot be deleted) and consider a different approach
- Details: Reserved IDs List
Forced Overwrite of Fixed Properties
If a fixed property of a reserved ID (e.g., HP's is_current=true) has been changed on the user side, it is forcibly overwritten with the standard value at startup. This is also notified as a warning.
Behavior of Unresolved Formulas
When a reference target cannot be resolved in Formula, it is processed as follows.
Unresolved References (e.g., USER.STR.MAX)
- Behavior: Returns 0 (expression evaluation continues)
- How players see it: Appears as "nullification", such as damage becoming 0 or probability checks always failing
- Notification: Notified as a runtime reference error (2)
Unresolved Variables ({var_name})
- Behavior: The original
{var_name}notation remains as-is (displayed verbatim in text) - How players see it: Raw notation appears in text, such as "Defeated
{var_hero_name}!" - Remedy: Variable name typo or undefined variable. Check the definition in the Variable tab
Unresolved @ Notation ({@item.IT_POTION} etc.)
- Behavior: Replaced with an empty string (disappears from the screen)
- How players see it: The content of "Used ○○!" becomes blank
- Notification: Notified as a runtime reference error (2)
Broken notation like "{@.YYY}"
@ without a type specifier (such as {@.item_id}) does not match the regex, so the notation remains as plain text. This is a deliberate design so that creators can notice "obviously incorrect notation".
Fallback When No Target Is Found
In many Event Contents, when no target is found, the following gentle behavior occurs.
Common "No Target" Cases
- Specified a non-existent variable name
- Specified an out-of-range member number
- Member in dead state was filtered out by
Party Alivefilter - Tried to make the player choose from an empty shop or empty storage
Behavior
- Outputs a warning log (runtime push_error, (2))
- Does nothing and proceeds to the next Event Content
- Does not crash
Specific Examples
| Event Content | Behavior When No Target |
|---|---|
| Change Parameter | Warning log + do nothing and proceed |
| Change Item Info | Warning log + do nothing and proceed |
| Remove Item | Warning log + do nothing and proceed |
| Show Item Select | Displayed with an empty list (player closes with cancel) |
These are intentional designs. By choosing "proceed without noticing" over "stop with an error", the impact on the player experience is minimized.
Save Errors
Pressing Save Does Not Apply Changes
Possible causes:
- The JSON file is read-only (Windows "read-only" attribute)
- The disk is full
- The same scene is open in both this tool's editor and Godot's native editor, causing a conflict
Remedy:
- Check file attributes (clear read-only)
- Check disk space
- Close the conflicting scene file and retry
.tmp Files Remain
These are temporary files created by Godot during saving. They are automatically deleted when the save completes normally.
If they remain:
- Fully close the editor and restart to make them disappear
- If they do not fully disappear, you can delete them manually (though their presence may indicate some save failure)
Files You Do Not Want to Commit to Git
.tmp: Temporary files, exclude from commits.gd.uid: Godot 4 UID files, include in commits (if deleted, UIDs are reassigned and references break)addons/rpg_wizard/data/sounds/*.importetc.: Godot import settings, include in commits
Details: JSON Data Structure
Unsaved Marker (*) on Tab Switch
When you edit in a tab, (*) is added to the tab button at the top of the editor (e.g., Map(*)). This indicates that there are unsaved changes.
Remedy
- Press the Save button in that tab
- Or press the Save All button in the Home tab for a bulk save
What Happens When You Switch Tabs Before Saving?
Principle: Edits are preserved (tab switches do not require saving). However:
- If you have a
.tscnopen in Godot's native editor and it conflicts with this tool, unsaved changes may be discarded - Closing the project loses unsaved changes
Make saving all a habit
Making it a habit to press the Save All button at work milestones prevents the loss of unsaved changes.
Errors in Exported Builds (Distributed Games)
Errors Players Might Encounter
This tool is designed to not display error UI on the game screen. Players see things as follows:
- Reference errors: Nothing happens with no target (silently continues)
- Unresolved Formula: Processed as 0
- Unresolved @ notation: Replaced with an empty string (disappears from the screen)
In Debug Export, Errors Appear in stderr
In debug exports, errors flow to the OS stderr, but players do not notice during normal play (unless they open a console window).
Completely Invisible in Release (Non-Debug) Builds
In release exports, stderr output is also suppressed. Players receive the game in a state where "something is missing but the game runs". This is intentional design to minimize impact on player experience.
Cases "Not Detectable in the Editor"
The following cases do not produce warnings in the editor, so creators must be careful on their own.
1. Variable References Within Events
Even if you delete a Variable, locations referencing it in Show Text or Assign Variable within events are not automatically updated.
- Detection timing: Runtime execution ((2) reference error appears)
- Remedy: Before changing a variable name, search and replace its usage across all events
2. Character ID / Item ID References Within Events
Similarly, even if you delete a character ID referenced in character_key of Change Parameter, the event setting remains.
- Detection timing: Runtime execution
- Remedy: When changing IDs, update the references together
3. Consistency Between items.type and itemtype.json
Even if an item's type specifies a non-existent itemtype, the editor does not detect it.
- Detection timing: The item does not appear as a candidate in Show Item Select (silent)
- Remedy: Before deleting an
itemtype, update thetypeof dependent items
4. Character ID References in Save Data
Even if you delete a character, old instances remain in save_data.character of existing save data. New save data is not affected.
How to Open the Debugger Panel
In the Godot editor, open the debugger panel with the following steps:
- Launch the game with F5
- Click the "Debugger" tab at the bottom of the editor screen
- Check notifications in the "Errors" or "Warnings" sub-tab
If no notifications appear in the debugger panel, no reference errors are occurring.
Frequently Asked Questions (FAQ)
Q1: The red warning does not disappear
Cause: The state of a missing ID in another tab is ongoing
Remedy: Right-click on the row shown in red or in the property editing screen, and either re-select the correct ID or delete it.
Q2: A large number of errors appear when I launch the game
Cause: Integrity may be broken in multiple tabs
Remedy:
- Open each editor tab in order and check for red warnings
- Save all tabs
- Launch the game again
Q3: Formula does not work properly
Cause: The reference target does not exist, or there is a syntax error
Remedy:
- Check for reference errors in the "Errors" tab of the debugger
- Check the notation in the Formula Reference
- Refer to the Formula help button (bottom of the Home tab)
Q4: I accidentally deleted a reserved ID
Remedy: When you open the relevant tab (Parameter, etc.) in the editor, it is automatically restored. If you deleted it intentionally, understand this tool's specifications (Reserved IDs List) and consider a different design.
Q5: Too many errors to read
Cause: Multiple issues occurring simultaneously, or the initial timing before dedup
Remedy:
- Use the "Errors" filter in the debugger panel to narrow down
- Close and restart the project (dedup information is also reset, so errors appear one by one)
- Prioritize addressing the earliest error
Q6: What is the difference between push_error and push_warning?
| Type | Purpose | Debugger Panel Display |
|---|---|---|
| push_error | Serious issues such as undefined references | "Errors" tab (red text) |
| push_warning | Minor issues such as reserved ID auto-restoration | "Warnings" tab (yellow text) |
Neither interrupts game progress, but errors have higher priority.
Q7: After distributing my game, a player reported a crash
By this tool's design, crashes are not expected to occur due to reference errors. If there are crash reports, suspect issues with the Godot engine itself or export settings.
Q8: I want to disable error notifications
Not recommended: Error notifications are "defensive mechanisms for developers to notice". No means to intentionally disable them is provided.
If the notifications are bothersome, fix the root cause (reference integrity).
Related Pages
- Reserved IDs List — Details of IDs that cannot be deleted or renamed
- JSON Data Structure — JSON file structure and version management
- Known Limitations — Known bugs and limitations (unimplemented / planned)
- FAQ — Other frequently asked questions
- Formula Reference — Formula behavior on error
