KadeArchive / Kade-Engine

Kade Engine is a Competitive Rhythm Game engine rewrite for FNF with Quality of Life features included.
https://kadedev.github.io/Kade-Engine/
Apache License 2.0
408 stars 594 forks source link

Question: Debug crash errors #240

Closed keseruthegod closed 3 years ago

keseruthegod commented 3 years ago

Is it possible to debug the error lines or something if my game crash? Im trying to add a new character, done all the steps with the Character.hx + character.xml but still crashing.

theDetourist commented 3 years ago

Are you compiling the game? If you are, they should appear in the console.

If they don't, you'll have to trace() every step you made to add the character in your Character.hx to see where's it failing.

keseruthegod commented 3 years ago

Error: 'Null Object Reference'

Called from hxcpp::__hxcpp_main Called from ApplicationMain::main ApplicationMain.hx line 25 Called from ApplicationMain::create ApplicationMain.hx line 130 Called from lime.app.Application::exec lime/app/Application.hx line 150 Called from lime._internal.backend.native.NativeApplication::exec lime/_internal/backend/native/NativeApplication.hx line 146 Called from lime._internal.backend.native.NativeApplication::handleRenderEvent lime/_internal/backend/native/NativeApplication.hx line 370 Called from lime.app._Event_lime_graphics_RenderContext_Void::dispatch lime/_internal/macros/EventMacro.hx line 91 Called from openfl.display.Stage::onLimeRender openfl/display/Stage.hx line 1950 Called from openfl.display.Stage::broadcastEvent openfl/display/Stage.hx line 1166 Called from openfl.display.DisplayObject::dispatch openfl/display/DisplayObject.hx line 1399 Called from openfl.events.EventDispatcher::dispatchEvent openfl/events/EventDispatcher.hx line 402 Called from flixel.FlxGame::onEnterFrame flixel/FlxGame.hx line 551 Called from flixel.FlxGame::step flixel/FlxGame.hx line 677 Called from flixel.FlxGame::update flixel/FlxGame.hx line 747 Called from flixel.FlxState::tryUpdate flixel/FlxState.hx line 202 Called from PlayState::update PlayState.hx line 2257

theDetourist commented 3 years ago

How does your PlayState.hx looks like @ line 2257 and some lines before/after?

keseruthegod commented 3 years ago

Untitled

theDetourist commented 3 years ago
  1. Have you ever compiled the source code before?
  2. Are you using the latest source code available?
  3. (If yes to the last question) Can you post your PlayState.hx @ Pastebin so we can see it properly?
keseruthegod commented 3 years ago
  1. Yes
  2. Yes Im using the latest version, i already fixed the issue, i forget to add a healthbar icon for the custom character thats why it crashed in the healthbar line.