Skip to content

錯誤碼對照表

Konado 的每一次失敗都有穩定錯誤碼 <模組前綴>-<三位序號>。主控台、失敗面板、 pending_runtime_failureKonadoErrorRegistry 共用同一套編號,因此「哪一步報錯」 可以一步定位到函式、資源與指令碼行。

主要結構化欄位(完整說明見中文/英文頁面):code / id(穩定編號)、messagefunction / owner(檢出函式與檔案)、resource_kind / resource_idinstruction_key / source_path / source_line(出錯指令與位置)、severity。 主控台示例:[AC-001] 显示角色失败:角色 ID 不能为空;于 KonadoStageController.show_actor,actor=,指令=ks:res://sample/demo/demo.ks:12,位置=res://sample/demo/demo.ks:12

可執行範例:sample/error_gallery/(11 筆樣本,涵蓋 AC / AU / CA / AH / VA); 自動斷言見 tests/dialogue/test_error_gallery.gd

錯誤碼總表

本表由 .github/scripts/check_error_codes.pyKonadoErrorRegistry 產生並校驗, 請勿手改;新增錯誤碼時先登記註冊表,再執行 --write-docs

ID錯誤碼模組級別症狀檢出位置
AC-001stage.actor_id_emptyActing and stage錯誤Actor id is empty when creating an actorKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-002stage.actor_change_failedActing and stage錯誤Changing the actor state failedKonadoInstructionExecutor._actor_change(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-003stage.actor_exit_failedActing and stage錯誤Actor exit failedKonadoInstructionExecutor._actor_exit(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-004stage.actor_motion_emptyActing and stage錯誤The actor motion name is emptyKonadoStageController.play_actor_motion(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-005stage.actor_motion_failedActing and stage錯誤Playing the actor motion failedKonadoInstructionExecutor._actor_motion(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-006stage.actor_motion_layer_invalidActing and stage錯誤The actor motion layer scene is invalidKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-007stage.actor_motion_missingActing and stage錯誤The motion layer has no such animationKonadoStageController.play_actor_motion(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-008stage.actor_move_failedActing and stage錯誤Moving the actor failedKonadoInstructionExecutor._actor_move(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-009stage.actor_node_missingActing and stage錯誤The actor node is not on stageKonadoStageController.remove_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-010stage.actor_node_removedActing and stage警告The 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 stage錯誤The actor is missing from the character listKonadoDialogueServices._show_actor(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AC-012stage.actor_not_presentActing and stage錯誤The 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 stage提示The actor request was superseded by a newer oneKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-014stage.actor_scene_missingActing and stage錯誤The character has no character_scene configuredKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-015stage.actor_show_failedActing and stage錯誤Creating or showing the actor failedKonadoInstructionExecutor._actor_show(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-016stage.actor_state_invalidActing and stage錯誤The character scene does not provide that stateKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-017stage.actor_template_failedActing and stage錯誤Instantiating the character scene failedKonadoStageController.show_actor(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-018stage.background_controller_uninitializedActing and stage錯誤The background controller is not initializedKonadoBackgroundController.change(addons/konado/runtime/stage/background/konado_background_controller.gd)
AC-019stage.background_failedActing and stage錯誤Switching the background failedKonadoInstructionExecutor._background(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AC-020stage.background_not_foundActing and stage錯誤The background is missing from the background listKonadoDialogueServices._display_background(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AC-021stage.background_scene_missingActing and stage錯誤The background has no PackedScene configuredKonadoStageController.change_background_scene(addons/konado/runtime/stage/konado_stage_controller.gd)
AC-022stage.background_type_invalidActing and stage錯誤The background scene type is invalidKonadoBackgroundController.change(addons/konado/runtime/stage/background/konado_background_controller.gd)
AC-023stage.operation_supersededActing and stage提示The stage operation was superseded by a newer requestKonadoStageOperationTracker.superseded_failure(addons/konado/runtime/stage/konado_stage_operation_tracker.gd)
AH-001achievement.operation_failedAchievements錯誤Achievement command failedKonadoInstructionExecutor._achievement_result(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AH-002achievement.not_foundAchievements錯誤The achievement is missing from the achievement listKonadoAchievementManager._operation_failure(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AH-003achievement.storage_failedAchievements錯誤Writing the achievement save data failedKonadoAchievementManager._storage_failure(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AH-004achievement.progress_invalidAchievements錯誤Invalid counter progress keyKonadoAchievementManager.try_increment_progress(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AH-005achievement.progress_type_conflictAchievements錯誤Counter key conflicts with an existing flag keyKonadoAchievementManager.try_increment_progress(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AH-006achievement.flag_invalidAchievements錯誤Invalid flag keyKonadoAchievementManager.try_set_flag(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AH-007achievement.flag_type_conflictAchievements錯誤Flag key conflicts with an existing counter keyKonadoAchievementManager.try_set_flag(addons/konado_achievement/runtime/konado_achievement_manager.gd)
AU-001audio.bgm_failedAudio錯誤BGM playback failedKonadoInstructionExecutor._audio_bgm_play(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AU-002audio.bgm_not_foundAudio錯誤BGM is missing from the BGM listKonadoDialogueServices._play_bgm(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-003audio.bgm_stream_missingAudio錯誤BGM resource is not configuredKonadoDialogueServices._play_bgm(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-004audio.list_missingAudio錯誤Audio list is not configuredKonadoDialogueServices._play_bgm(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-005audio.player_missingAudio錯誤Audio player is not boundKonadoDialogueServices._play_bgm(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-006audio.sfx_failedAudio錯誤Sound effect playback failedKonadoInstructionExecutor._audio_sfx_play(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
AU-007audio.sfx_not_foundAudio錯誤Sound effect is missing from the listKonadoDialogueServices._play_sound_effect(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-008audio.sfx_stream_missingAudio錯誤Sound effect resource is not configuredKonadoDialogueServices._play_sound_effect(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-009audio.voice_failedAudio錯誤Voice playback failedKonadoDialogueManager._begin_dialogue_instruction(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
AU-010audio.voice_not_foundAudio錯誤Voice is missing from the voice listKonadoDialogueServices._play_voice(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
AU-011audio.voice_stream_missingAudio錯誤Voice resource is not configuredKonadoDialogueServices._play_voice(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
CA-001camera.move_rejectedCamera錯誤Camera move rejected (missing marker or invalid duration)KonadoInstructionExecutor._camera_move_async(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
CA-002camera.reset_rejectedCamera錯誤Camera reset rejectedKonadoInstructionExecutor._camera_reset_async(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
CA-003camera.shake_rejectedCamera錯誤Camera shake rejectedKonadoInstructionExecutor._camera_shake_async(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
CA-004camera.stop_rejectedCamera錯誤Camera stop rejected (no pending async operation)KonadoInstructionExecutor._camera_stop_async(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
CP-001compiler.diagnosticCompiler and linker錯誤Compiler diagnostic (syntax or semantic error)KonadoScriptDiagnostics._parse_message(addons/konado/language/service/konado_script_diagnostics.gd)
CP-002link.abi_mismatchCompiler and linker錯誤Target script ABI does not match the current compilerKonadoScriptProjectLinker.link_additional(addons/konado/language/compiler/konado_script_project_linker.gd)
CP-003link.budgetCompiler and linker錯誤Cross-script dependency budget exceeded (4096 files)KonadoScriptProjectLinker.link_additional(addons/konado/language/compiler/konado_script_project_linker.gd)
CP-004link.compile_failedCompiler and linker錯誤A linked target script failed to compileKonadoScriptProjectLinker.link_additional(addons/konado/language/compiler/konado_script_project_linker.gd)
CP-005link.invalid_pathCompiler and linker錯誤The script path is not a canonical res:// pathKonadoScriptProjectLinker.link_additional(addons/konado/language/compiler/konado_script_project_linker.gd)
CP-006link.missing_scriptCompiler and linker錯誤The linked target script does not existKonadoScriptProjectLinker.link_additional(addons/konado/language/compiler/konado_script_project_linker.gd)
DL-001dialogue.box_missingDialogue and choices錯誤No dialogue box is bound, so the line cannot be shownKonadoInstructionExecutor._dialogue(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
DL-002dialogue.choice_unavailableDialogue and choices錯誤No usable choice controller or option targetKonadoInstructionExecutor._choice(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
DL-003dialogue.speaker_emptyDialogue and choices錯誤Speaker name resolved to an empty stringKonadoDialogueServices._actor_speaker_success(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
DL-004dialogue.speaker_invalidDialogue and choices錯誤Invalid speaker configuration; the line cannot be shownKonadoDialogueManager._begin_dialogue_instruction(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
DL-005dialogue.speaker_kind_invalidDialogue and choices錯誤Invalid speaker_kindKonadoDialogueServices.resolve_speaker(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
DL-006dialogue.speaker_variable_type_invalidDialogue and choices錯誤Speaker variable is not a resolvable stringKonadoDialogueServices._speaker_from_variable(addons/konado/runtime/dialogue/konado_dialogue_services.gd)
RS-001resource.duplicateResource validation錯誤Duplicated resource id declarationKonadoScriptDiagnostics._append_project_diagnostics(addons/konado/language/service/konado_script_diagnostics.gd)
RS-002resource.missing_targetResource validation錯誤The referenced resource target does not existKonadoScriptDiagnostics._append_project_diagnostics(addons/konado/language/service/konado_script_diagnostics.gd)
RS-003resource.unassignedResource validation警告The resource is not assigned in the project configurationKonadoScriptDiagnostics._append_project_diagnostics(addons/konado/language/service/konado_script_diagnostics.gd)
RS-004resource.unknownResource validation錯誤Referencing an undeclared resourceKonadoScriptDiagnostics._append_project_diagnostics(addons/konado/language/service/konado_script_diagnostics.gd)
RT-001runtime.controller_missingRuntime contract錯誤A controller required by the instruction is not configuredKonadoInstructionExecutor._missing_controller(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
RT-002runtime.failedRuntime contract錯誤Unclassified runtime failure (fallback code)KonadoExecutionFailure._init(addons/konado/runtime/dialogue/konado_execution_failure.gd)
RT-003runtime.host_unavailableRuntime contract錯誤The dialogue manager is gone (node freed)KonadoInstructionExecutor.execute(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
RT-004runtime.instruction_failedRuntime contract錯誤The executor failed without committing an atomic transactionKonadoDialogueManager._pump(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
RT-005runtime.unsupported_opcodeRuntime contract錯誤The 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 jumps錯誤The jump target has no entry instructionKonadoDialogueManager._prepare_transition_target(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
SC-002script.jump_load_failedScripts and jumps錯誤The jump target script cannot be loadedKonadoInstructionExecutor._jump_script(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
SC-003script.jump_program_missingScripts and jumps錯誤The jump target has no executable ProgramKonadoDialogueManager._prepare_transition_target(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
SC-004script.jump_transaction_inactiveScripts and jumps提示Jump 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 jumps提示The 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 jumps錯誤Switching to the jump target failedKonadoInstructionExecutor._jump_script(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
SC-007script.jump_vm_transition_failedScripts and jumps錯誤The VM rejected the jump target transitionKonadoDialogueManager._transition_to_shot(addons/konado/runtime/dialogue/konado_dialogue_manager.gd)
VA-001variable.condition_failedVariables and conditions錯誤Evaluating the condition failedKonadoInstructionExecutor._condition(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
VA-002variable.condition_type_mismatchVariables and conditions錯誤Condition operand types do not matchKonadoInstructionExecutor._condition_target(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
VA-003variable.not_foundVariables and conditions錯誤The condition references an undefined variableKonadoInstructionExecutor._condition_variable(addons/konado/runtime/dialogue/konado_instruction_executor.gd)
VA-004variable.operation_failedVariables and conditions錯誤Variable operation failed (invalid type or operand)KonadoDialogueServices._apply_temp_operation(addons/konado/runtime/dialogue/konado_dialogue_services.gd)

Released under BSD3-Clause License.