Calling "event inherited()" seems to be a guaranteed crash for me - I guess this is the same issue
Dynamic zero
Creator of
Recent community posts
Hiya,
I seem to be getting this error and not exactly sure why. I have a test room with only one object -_______________________________________
############################################################################################
FATAL ERROR in
action number 1
of Key Press Event for S-key Key
for object obj_generator_2dig:
ds_map_find_value argument 1 incorrect type (string) expecting a Number (YYGI32)
at gml_Script_room_pack_raw_run_impl2 (line 10) - var l_lrs=l_rm[?"layers"];
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_room_pack_raw_run_impl2 (line 10)
called from - gml_Script_room_pack_load_map (line 18) - room_pack_raw_run_impl2(l_map);
called from - gml_Object_obj_generator_2dig_KeyPress_83 (line 10) - room_pack_load_map(json_rooms[?name],50,50);
I am calling the map load like this -
room_pack_blank_object = obj_blank;
var json_rooms = this_is_a_test(); // generated from rooms starting with rt_
// pick a random room name from the map:
var name = ds_map_find_first(json_rooms);
repeat (irandom_range(0, ds_map_size(json_rooms) - 1)) {
name = ds_map_find_next(json_rooms, name);
}
// and load that:
room_pack_load_map(json_rooms[?name],50,50);
// and when you're done:
ds_map_destroy(json_rooms);
Thanks,