Hi! First of all I'd like to thank you for this extension; the possibilities this introcudes into my project have re-lit my enthusiasm to work on it again~! I have run into a small issue though, but it's not a big deal as I'm still wrapping my head around a few things elsewhere so no rush-
Right.
I can load individual rooms from a .json fine, no issue; but when it comes to loading specific and or random rooms from a map I'm entirely lost. I'm 95% sure it is something I'm doing wrong; but no matter how much I look at the cheat sheet documentation I can't figure out quite what it is.
I've included my code and the resulting error; any help would be greatly appreciated. I've had this issue crop up throwing an error regarding expecting a number from roomWidth and roomHeight also.
var json_rooms = room_pack_load_file( _dir + "rm_seg_1.json", 0, 0, room_pack_flag_instances ); // 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 ], 384 / 2, 0, room_pack_flag_instances ); // and when you're done: ds_map_destroy( json_rooms );
