A
axialgentleman
Guest
I'm trying to fix a stubborn error in my game. When encountered, it generates a fatal error (it says it's trying to access an instance that doesn't exist, even though the debugger clearly shows an instance with that index). Here's my current workflow:
After 10 or 20 rounds this becomes very time consuming. Am I missing some feature of the debugger that would make this easier, e.g., by letting me restart the game, or step backwards, or get an interactive prompt? Or do I just need to crash and rebuild every time?
(I see there's a "restart game" button in the debugger, but when I press it, the game tries to complete the current function call and crashes anyway).
[update: upon request I'm adding the error message I'm getting, though if anyone has advice on how to use the debugger more effectively I'm very interested in that as well.]
I'm looking at the debugger and under "all instances" there is an instance with ID 100147.
- Run in Debugger
- Wait 25 seconds for the game to build
- Step through code in the debugger and try to learn something. Eventually get a fatal error.
- Watch the game crash
- Manually kill the debugger
- Run in debugger again
- Step through code, trying a slightly different sequence of actions
- Crash again
- Repeat...
After 10 or 20 rounds this becomes very time consuming. Am I missing some feature of the debugger that would make this easier, e.g., by letting me restart the game, or step backwards, or get an interactive prompt? Or do I just need to crash and rebuild every time?
(I see there's a "restart game" button in the debugger, but when I press it, the game tries to complete the current function call and crashes anyway).
[update: upon request I'm adding the error message I'm getting, though if anyone has advice on how to use the debugger more effectively I'm very interested in that as well.]
Code:
ERROR!!! :: ############################################################################################
FATAL ERROR in
action number 1
of Mouse Event for Left Pressed
for object OTableSlot:
Unable to find any instance for object index '100147'
at gml_Script_generateItemOnTable (line 7) - contents = itemObj;
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_generateItemOnTable (line 7)
called from - gml_Script_tableItem (line 17) - generateItemOnTable(itemObj, id);
called from - gml_Object_OTableSlot_Mouse_4 (line 4) - tableItem();
Last edited by a moderator: