Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMRoomPack

Package GameMaker rooms and load them as you please · By YellowAfterlife

ds_list_size argument 1 incorrect type (undefined) expecting a Number

A topic by noobcakes created Nov 25, 2018 Views: 1,626 Replies: 3
Viewing posts 1 to 4
(1 edit)

I'm getting a code error when calling 

room_pack_load_file("sect2.json", 1100, 0);

It was working fine; then I need to move some objects around in my room as I was testing.  I moved the objects, re-exported and re-imported and now it is crashing with this message.

___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of PreCreate Event
for object obj_coin:
ds_list_size argument 1 incorrect type (undefined) expecting a Number (YYGI32)
 at gml_Script_room_pack_raw_run_impl2 (line 11) - var l_lrk=ds_list_size(l_lrs);
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_room_pack_raw_run_impl2 (line 11)
called from - gml_Script_room_pack_load_map (line 18) - room_pack_raw_run_impl2(l_map);
called from - gml_Script_room_pack_load_string (line 12) - room_pack_load_map(l_raw1,l_x,l_y,l_flags);
called from - gml_Script_room_pack_load_file (line 12) - return room_pack_load_string(buffer_read(l_buf,11),l_x,l_y,l_flags);
called from - gml_Room_room0_Create (line 1) - room_pack_load_file("sect2.json", 1100, 0);

Just as an FYI; I ended up just deleting the room and recreating it to work around this, but it seems like a bug so I thought I should report it.

Had this happen again on another room.  It was working fine; moved a few objects around and re-export/re-import and something has been corrupted getting the same issue.

I notice that the GMRoomPack.exe complains on the export "Couldn't retrieve contents of room_sect_1:RoomCreationCode.gml", but then it goes on to say "All good!" like the export was successful.

Hello! What would you like to pack?
1  A room
2  All of the rooms
3  Rooms starting with prefix
4  I'm here for the command-line arguments, actually
#?: 1
Name the room you'd like to pack!
(or paste the full path to .gmx/.yy)
Leave blank to go back!
> room_sect_1
Where would you like this packed to?
1  To a script
2  To an included file
3  To a GML/JSON file
4  Back
#?: 3
File path (.gml for GML format)?: C:\Users\Joiey\Documents\GameMakerStudio2\Santa Run\datafiles\sect1.json
Ready to go!
Args: C:/Users/Joiey/Documents/GameMakerStudio2/Santa Run/rooms/room_sect_1/room_sect_1.yy C:\Users\Joiey\Documents\GameMakerStudio2\Santa Run\datafiles\sect1.json
1  Go
2  Watch for changes: OFF
3  Readable JSON: OFF
4  Save params for later reuse
#?: 1
Couldn't retrieve contents of room_sect_1:RoomCreationCode.gml.
Updated C:\Users\Joiey\Documents\GameMakerStudio2\Santa Run\datafiles\sect1.json
All good!
Press any key to exit!
Developer(+1)

Fixed in the new version.