You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As soon as I launch my game, I get an error message saying:
ERROR in
action number 1
of Create Event
for object oGame:
ds_map_exists argument 1 incorrect type (struct) expecting a ds_map
at gml_Script_scribble_typists_add_event (line 33) - if (ds_map_exists(__scribble_config_colours(), _name))
############################################################################################
gml_Script_scribble_typists_add_event (line 33)
gml_Object_oGame_Create_0 (line 19) - scribble_typists_add_event("screenshake", scribbleScreenShake);
I looked into the code, and there are 3 of these if statements:
if (ds_map_exists(__scribble_config_colours(), _name))
{
__scribble_trace("Warning! Event name \"" + _name + "\" has already been defined as a colour");
exit;
}
if (ds_map_exists(__scribble_get_effects_map(), _name))
{
__scribble_trace("Warning! Event name \"" + _name + "\" has already been defined as an effect");
exit;
}
if (ds_map_exists(__scribble_get_macros_map(), _name))
{
__scribble_trace("Warning! Macro name \"" + _name + "\" has already been defined as a macro");
exit;
}
Since the config colors function for example returns a struct, It's complaining about there being a struct passed the the function, ds_map_exists();. Wouldn't you use struct_exists(); with the same arguments? Very odd. I wasn't tampering with any of the internal code, just updated Gamemaker...
The text was updated successfully, but these errors were encountered:
As soon as I launch my game, I get an error message saying:
I looked into the code, and there are 3 of these if statements:
Since the config colors function for example returns a struct, It's complaining about there being a struct passed the the function, ds_map_exists();. Wouldn't you use struct_exists(); with the same arguments? Very odd. I wasn't tampering with any of the internal code, just updated Gamemaker...
The text was updated successfully, but these errors were encountered: