Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMRoomPack

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

Is there a fast way to create separate .json files for each room?

A topic by Phoebii created Mar 20, 2020 Views: 254 Replies: 2
Viewing posts 1 to 3

Hello,

So I am trying  to reduce room load time in my game. I found out that loading rooms from separate .json files is much faster.

Is there a way to pack a bunch of rooms to separate files, similarly to how I can pack a bunch of rooms to one file? Packing them one by one is a huge waste of time and prone to errors. I have 20 rooms.

If there isn't such feature, maybe there's another way to load rooms as fast? Or maybe this feature could be added?

Developer(+1)

You can make a batch script to invoke GMRoomPack for each room, like

@echo off
for /D %%f in (rooms\*) do (
    .\datafiles\GMRoomPack\GMRoomPack.exe %%f\%%~nf.yy .\datafiles\myrooms\%%~nf.json
)

and run that from project directory.

Finally got to implementing it - had to work on other parts of the game.
It works, thanks a ton! =]