Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

GMRoomPack

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

"Cannot load buffer file" error

A topic by noobcakes created Nov 24, 2018 Views: 426 Replies: 2
Viewing posts 1 to 2
(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);
Developer

If it's in your included files, you would just have "sect1.json", not an absolute path (from which you cannot load because of sandboxing).

(+1)

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!