Skip to content

Error code reference

Every Konado failure carries a stable error code <module>-<three digits>. The console, the failure panel, KonadoDialogueManager.pending_runtime_failure and KonadoErrorRegistry share the same numbering, so "which step failed" resolves to a function, a resource and a script line in one step.

Structured fields (KonadoExecutionFailure.to_dictionary() / pending_runtime_failure):

FieldMeaning
code / idMachine-readable key and stable id (stage.actor_id_empty / AC-001)
messageHuman-readable description
function / ownerDetecting function and file: which step failed
resource_kind / resource_idThe resource involved (actor / background / audio / script)
instruction_key / source_path / source_lineFailing instruction and script position
severityerror / warning / info

Console example: [AC-001] 显示角色失败:角色 ID 不能为空;于 KonadoStageController.show_actor,actor=,指令=ks:res://sample/demo/demo.ks:12,位置=res://sample/demo/demo.ks:12. Prefer KonadoResult for new return values: {"ok": true, "value": …} / KonadoResult.error(code, message, context).

Runnable samples live in sample/error_gallery/ (11 cases across AC / AU / CA / AH / VA); the automated check is tests/dialogue/test_error_gallery.gd.

Full table

Generated and verified from KonadoErrorRegistry by .github/scripts/check_error_codes.py; do not edit by hand. Register a new code first, then run the script with --write-docs.

IDCodeModuleSeveritySymptomDetected in
AC-001stage.actor_id_emptyActing and stageerrorActor id is empty when creating an actorKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-002stage.actor_change_failedActing and stageerrorChanging the actor state failedKonadoInstructionExecutor._actor_change(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-003stage.actor_exit_failedActing and stageerrorActor exit failedKonadoInstructionExecutor._actor_exit(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-004stage.actor_motion_emptyActing and stageerrorThe actor motion name is emptyKonadoStageController.play_actor_motion(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-005stage.actor_motion_failedActing and stageerrorPlaying the actor motion failedKonadoInstructionExecutor._actor_motion(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-006stage.actor_motion_layer_invalidActing and stageerrorThe actor motion layer scene is invalidKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-007stage.actor_motion_missingActing and stageerrorThe motion layer has no such animationKonadoStageController.play_actor_motion(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-008stage.actor_move_failedActing and stageerrorMoving the actor failedKonadoInstructionExecutor._actor_move(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-009stage.actor_node_missingActing and stageerrorThe actor node is not on stageKonadoStageController.remove_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-010stage.actor_node_removedActing and stagewarningThe previous actor node was removed; treated as a fresh showKonadoStageController._update_existing_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-011stage.actor_not_foundActing and stageerrorThe actor is missing from the character listKonadoDialogueServices._show_actor(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AC-012stage.actor_not_presentActing and stageerrorThe actor is not on stage (no previous actor show)KonadoInstructionExecutor._actor_change(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-013stage.actor_request_supersededActing and stageinfoThe actor request was superseded by a newer oneKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-014stage.actor_scene_missingActing and stageerrorThe character has no character_scene configuredKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-015stage.actor_show_failedActing and stageerrorCreating or showing the actor failedKonadoInstructionExecutor._actor_show(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-016stage.actor_state_invalidActing and stageerrorThe character scene does not provide that stateKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-017stage.actor_template_failedActing and stageerrorInstantiating the character scene failedKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-018stage.background_controller_uninitializedActing and stageerrorThe background controller is not initializedKonadoBackgroundController.change(addons/konado/runtime/stage/background/konado_background_controller.gd)
AC-019stage.background_failedActing and stageerrorSwitching the background failedKonadoInstructionExecutor._background(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-020stage.background_not_foundActing and stageerrorThe background is missing from the background listKonadoDialogueServices._display_background(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AC-021stage.background_scene_missingActing and stageerrorThe background has no PackedScene configuredKonadoStageController.change_background_scene(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-022stage.background_type_invalidActing and stageerrorThe background scene type is invalidKonadoBackgroundController.change(addons/konado/runtime/stage/background/konado_background_controller.gd)
AC-023stage.operation_supersededActing and stageinfoThe stage operation was superseded by a newer requestKonadoStageOperationTracker.superseded_failure(addons/konado/runtime/stage/konado_stage_operation_tracker.gd)
AH-001achievement.operation_failedAchievementserrorAchievement command failedKonadoInstructionExecutor._achievement_result(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AH-002achievement.not_foundAchievementserrorThe achievement is missing from the achievement listKonadoAchievementManager._operation_failure(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AH-003achievement.storage_failedAchievementserrorWriting the achievement save data failedKonadoAchievementManager._storage_failure(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AH-004achievement.progress_invalidAchievementserrorInvalid counter progress keyKonadoAchievementManager.try_increment_progress(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AH-005achievement.progress_type_conflictAchievementserrorCounter key conflicts with an existing flag keyKonadoAchievementManager.try_increment_progress(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AH-006achievement.flag_invalidAchievementserrorInvalid flag keyKonadoAchievementManager.try_set_flag(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AH-007achievement.flag_type_conflictAchievementserrorFlag key conflicts with an existing counter keyKonadoAchievementManager.try_set_flag(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AU-001audio.bgm_failedAudioerrorBGM playback failedKonadoInstructionExecutor._audio_bgm_play(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AU-002audio.bgm_not_foundAudioerrorBGM is missing from the BGM listKonadoDialogueServices._play_bgm(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-003audio.bgm_stream_missingAudioerrorBGM resource is not configuredKonadoDialogueServices._play_bgm(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-004audio.list_missingAudioerrorAudio list is not configuredKonadoDialogueServices._play_bgm(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-005audio.player_missingAudioerrorAudio player is not boundKonadoDialogueServices._play_bgm(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-006audio.sfx_failedAudioerrorSound effect playback failedKonadoInstructionExecutor._audio_sfx_play(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AU-007audio.sfx_not_foundAudioerrorSound effect is missing from the listKonadoDialogueServices._play_sound_effect(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-008audio.sfx_stream_missingAudioerrorSound effect resource is not configuredKonadoDialogueServices._play_sound_effect(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-009audio.voice_failedAudioerrorVoice playback failedKonadoDialogueManager._begin_dialogue_instruction(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
AU-010audio.voice_not_foundAudioerrorVoice is missing from the voice listKonadoDialogueServices._play_voice(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-011audio.voice_stream_missingAudioerrorVoice resource is not configuredKonadoDialogueServices._play_voice(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
CA-001camera.move_rejectedCameraerrorCamera move rejected (missing marker or invalid duration)KonadoInstructionExecutor._camera_move_async(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
CA-002camera.reset_rejectedCameraerrorCamera reset rejectedKonadoInstructionExecutor._camera_reset_async(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
CA-003camera.shake_rejectedCameraerrorCamera shake rejectedKonadoInstructionExecutor._camera_shake_async(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
CA-004camera.stop_rejectedCameraerrorCamera stop rejected (no pending async operation)KonadoInstructionExecutor._camera_stop_async(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
CP-001compiler.diagnosticCompiler and linkererrorCompiler diagnostic (syntax or semantic error)KonadoScriptDiagnostics._parse_message(addons/konado/language/service/konado_script_diagnostics.gd)
CP-002link.abi_mismatchCompiler and linkererrorTarget script ABI does not match the current compilerKonadoScriptProjectLinker.link_additional(addons/konado/language/compiler/konado_script_project_linker.gd)
CP-003link.budgetCompiler and linkererrorCross-script dependency budget exceeded (4096 files)KonadoScriptProjectLinker.link_additional(addons/konado/language/compiler/konado_script_project_linker.gd)
CP-004link.compile_failedCompiler and linkererrorA linked target script failed to compileKonadoScriptProjectLinker.link_additional(addons/konado/language/compiler/konado_script_project_linker.gd)
CP-005link.invalid_pathCompiler and linkererrorThe script path is not a canonical res:// pathKonadoScriptProjectLinker.link_additional(addons/konado/language/compiler/konado_script_project_linker.gd)
CP-006link.missing_scriptCompiler and linkererrorThe linked target script does not existKonadoScriptProjectLinker.link_additional(addons/konado/language/compiler/konado_script_project_linker.gd)
DL-001dialogue.box_missingDialogue and choiceserrorNo dialogue box is bound, so the line cannot be shownKonadoInstructionExecutor._dialogue(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
DL-002dialogue.choice_unavailableDialogue and choiceserrorNo usable choice controller or option targetKonadoInstructionExecutor._choice(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
DL-003dialogue.speaker_emptyDialogue and choiceserrorSpeaker name resolved to an empty stringKonadoDialogueServices._actor_speaker_success(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
DL-004dialogue.speaker_invalidDialogue and choiceserrorInvalid speaker configuration; the line cannot be shownKonadoDialogueManager._begin_dialogue_instruction(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
DL-005dialogue.speaker_kind_invalidDialogue and choiceserrorInvalid speaker_kindKonadoDialogueServices.resolve_speaker(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
DL-006dialogue.speaker_variable_type_invalidDialogue and choiceserrorSpeaker variable is not a resolvable stringKonadoDialogueServices._speaker_from_variable(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
RS-001resource.duplicateResource validationerrorDuplicated resource id declarationKonadoScriptDiagnostics._append_project_diagnostics(addons/konado/language/service/konado_script_diagnostics.gd)
RS-002resource.missing_targetResource validationerrorThe referenced resource target does not existKonadoScriptDiagnostics._append_project_diagnostics(addons/konado/language/service/konado_script_diagnostics.gd)
RS-003resource.unassignedResource validationwarningThe resource is not assigned in the project configurationKonadoScriptDiagnostics._append_project_diagnostics(addons/konado/language/service/konado_script_diagnostics.gd)
RS-004resource.unknownResource validationerrorReferencing an undeclared resourceKonadoScriptDiagnostics._append_project_diagnostics(addons/konado/language/service/konado_script_diagnostics.gd)
RT-001runtime.controller_missingRuntime contracterrorA controller required by the instruction is not configuredKonadoInstructionExecutor._missing_controller(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
RT-002runtime.failedRuntime contracterrorUnclassified runtime failure (fallback code)KonadoExecutionFailure._init(addons/konado/runtime/dialogue/konado_execution_failure.gd)
RT-003runtime.host_unavailableRuntime contracterrorThe dialogue manager is gone (node freed)KonadoInstructionExecutor.execute(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
RT-004runtime.instruction_failedRuntime contracterrorThe executor failed without committing an atomic transactionKonadoDialogueManager._pump(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
RT-005runtime.unsupported_opcodeRuntime contracterrorThe VM does not support this opcode (runtime/instruction version mismatch)KonadoInstructionExecutor.execute(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
SC-001script.jump_entry_missingScripts and jumpserrorThe jump target has no entry instructionKonadoDialogueManager._prepare_transition_target(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
SC-002script.jump_load_failedScripts and jumpserrorThe jump target script cannot be loadedKonadoInstructionExecutor._jump_script(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
SC-003script.jump_program_missingScripts and jumpserrorThe jump target has no executable ProgramKonadoDialogueManager._prepare_transition_target(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
SC-004script.jump_transaction_inactiveScripts and jumpsinfoJump transaction already inactive (superseded, not an error)KonadoDialogueManager._transition_to_shot(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
SC-005script.jump_transaction_supersededScripts and jumpsinfoThe jump was superseded by a newer execution transactionKonadoDialogueManager._transition_to_shot(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
SC-006script.jump_transition_failedScripts and jumpserrorSwitching to the jump target failedKonadoInstructionExecutor._jump_script(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
SC-007script.jump_vm_transition_failedScripts and jumpserrorThe VM rejected the jump target transitionKonadoDialogueManager._transition_to_shot(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
VA-001variable.condition_failedVariables and conditionserrorEvaluating the condition failedKonadoInstructionExecutor._condition(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
VA-002variable.condition_type_mismatchVariables and conditionserrorCondition operand types do not matchKonadoInstructionExecutor._condition_target(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
VA-003variable.not_foundVariables and conditionserrorThe condition references an undefined variableKonadoInstructionExecutor._condition_variable(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
VA-004variable.operation_failedVariables and conditionserrorVariable operation failed (invalid type or operand)KonadoDialogueServices._apply_temp_operation(addons/konado/runtime/dialogue/konado_dialogue_services.gd)

Released under BSD3-Clause License.