Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

noobcakes

7
Posts
3
Topics
1
Followers
A member registered Jul 06, 2017 · View creator page →

Creator of

Recent community posts

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!

I'm using the room_pack_load_file methodology with exported JSON rooms to load my rooms.  In the documentation I notice that the other methods have some corresponding function to cleanup when you are done with a room, such as ds_map_destroy.

I didn't see anything like this documented for the room_pack_load_file; so I'm wondering what is the proper method to cleanup after done with a room that has been loaded like this?

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.

(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);

Thank you so much for your prompt response!  This is an awesome extension that is going to save me so much time on my game!  You are the best my friend!

(1 edit)

I'm trying to use GMRoomPack with my first project using the export to JSON method.  The export seemed to go fine.  Now I'm trying to load the room into another room of my project using

room_pack_load_file("C:/Users/Joiey/Documents/GameMakerStudio2/Santa Run/datafiles/sect1.json", 0, 0);

Then when I try and run my project I'm getting the following error message.

___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of PreCreate Event
for object obj_game_controller:
Cannot load buffer file C:/Users/Joiey/Documents/GameMakerStudio2/Santa Run/datafiles/sect1.json
 at gml_Script_room_pack_load_file (line 10) - var l_buf=buffer_load(l_path1);
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_room_pack_load_file (line 10)
called from - gml_Room_room0_Create (line 1) - room_pack_load_file("C:/Users/Joiey/Documents/GameMakerStudio2/Santa Run/datafiles/sect1.json", 0, 0);