Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

GMRoomPack

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

Command line interface shortcut?

A topic by moppin created Feb 24, 2020 Views: 310 Replies: 2
Viewing posts 1 to 3

Hi. Sorry to be asking for help again, 

I've been making use out of this extension a lot and it has become a central part of development for my current project. Thank you again for making it!

As I'm using this very often in development now, I wondered if there was any way to skip going through the command line questions every time I wanted a series of rooms packed. I'm not very familiar with the whole command line stuff but from what I can understand of the documentation, you're supposed to be able to skip answering the questions by putting in the input / output paths (and optional flags) after "GMRoomPack ", right?

I'm using this on Mac so the series of commands starts with "neko GMRoomPack ", so I'm trying something like this:

neko GMRoomPack rooms/rpInterval00_00/rpInterval00_00.yy scripts/roompack_test/roompack_test.gml

but no matter what I put in I get the following error:

Error occurred: std@sys_file_typ
Called from sys.FileSystem::kind line 59
Called from RoomPacker::procOnce line 133
Called from RoomPacker::procOnceSafe line 202

Am I missing something here?

Developer

To use GMRoomPack from terminal as shown, you would want to either open terminal in project directory (so that relative paths work as expected), or use absolute paths (e.g. ~/dev/someproject/rooms/rpInterval00_00/rpInterval00_00.yy)

Ah thanks for the explanation, but I'm still having some problem getting it to work.

I tried using relative paths with the terminal open in the project directory, with something like this:

neko datafiles/GMRoomPack/GMRoomPack.n rooms/roompackLevel00/roompackLevel00.yy scripts/roomUnpack_level00/roomUnpack_level00.gml —watch

but it's giving me this error:

Error occurred: [file_open,/user/dev/GameMakerStudio2/game_project/rooms/roompackLevel00]

Tried the same thing using absolute paths but it gave me the same error. From what I can tell, I don't have the file open on GMS2. 

Would you have any idea what might be causing this?

I was able to do the same thing by going through the command line questions.