Scribble icon indicating copy to clipboard operation
Scribble copied to clipboard

Scribble crashes my game!

Open DelayedVictory opened this issue 6 months ago • 4 comments

I've implemented scribble in my game, but recently people have started to report Scribble-related crashes that I cannot seem to fix. I cannot reproduce the issue on my end so I was hoping to get some answers here. I'm consistently getting 2 crash reports.

Crash report #1: For context - the object referenced in the error (obj_gate) does not contain any scribble code at all. Neither does it have any parents or child objects containing scribble code.

___
############################################################################################
ERROR in
action number 1
of Create Event
for object obj_gate:

DoAdd :2: undefined value
at gml_Script_scribble_tick
############################################################################################
gmlScriptscribble_tick (line -1)
gml_Script_anon@950@scribbleinitializescribble_system

Crash report #2:

___
############################################################################################
ERROR in
action number 1
of Draw Event
for object obj_header_money:

Variable <unknown_object>.__flushed(100103, -2147483648) cannot be resolved.
at gml_Script_scribble
############################################################################################
gml_Script_scribble (line -1)
gml_Object_obj_header_money_Draw_64

The object referenced in the error here does contain the following scribble code:

var _money = string(floor(money));
scribble("[spr_money]" + _money).scale(gui_text_scale).align(halign, valign).blend(color, 1).draw(gui_bbox_left + gui_text_margin, gui_y);

DelayedVictory avatar Dec 27 '23 10:12 DelayedVictory