OpenGMK / OpenGMK

A rewrite of the GameMaker Classic engine runners with additional tooling
GNU General Public License v2.0
275 stars 25 forks source link

Executing GMK #141

Open IntinteDAO opened 8 months ago

IntinteDAO commented 8 months ago

It is possible that there is such an option, but I have not found it.

GM8Emulator allows you to run EXE files. Is there an option to run GMK files? As far as I know, Runner runs GMK files.

Running GMK files may make it possible to develop an alternative Runner for Enigma-Dev / LateralGM. I imagine that someone creates a game in LateralGM, and the output file (gmk) goes to GM8Emulator and is run.

Adamcake commented 8 months ago

OpenGMK doesn't currently have anything to compile GMK to exe/runner data.

IntinteDAO commented 8 months ago

@Adamcake Well, yes, but I guess the EXE file (in GM8) if I'm not mistaken is Runner + GMK, or not?

If not then I'd be happy to educate myself, if so, can't OpenGMK in theory just run the game based on the GMK file?

Adamcake commented 8 months ago

While it is very similar to that, there are some key differences:

There's some other minor stuff, like how the assets' directory structure and last-modified timestamps are stripped out of the exe, but those are the big ones.

IntinteDAO commented 8 months ago

@Adamcake I understand that it is technically impossible for OpenGMK to run GMK files?

Adamcake commented 8 months ago

Maybe not impossible, but more like making something that doesn't already exist. OpenGMK is a sourceport project, but gamemaker doesn't have any way to run a .gmk directly, so there would be nothing for us to port.

The only option would be to write a .gmk to .exe-format compiler, then run from there.

IntinteDAO commented 8 months ago

I understand. I meant that there are projects like Enigma-Dev focusing on providing an environment (IDE) like Game Maker and at the same time building GM code. I was thinking if OpenGMK can't run GMK format (Enigma-Dev code is converted to C++ and compiled, so it is incompatible).

Probably we can close issue?

cher-nov commented 8 months ago

Probably we can close issue?

This is only a partial duplicate of #101, so let it be.