Skip to content
プロジェクト

概要

GameMaker Classicのエンジンランナーを再実装し、追加ツールも提供します。

ゲーム・エミュレーター

この数値の測り方

計測したスター増加

24時間
0
7日間
+3
15日間
+8
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

OpenGMK

OpenGMK is a modern rewrite of the proprietary GameMaker Classic engines, providing a full sourceport of the runner, a decompiler, a TASing framework, and libraries for working with gamedata yourself.

[!IMPORTANT] Please remember that this project is a work in progress. Your savestates may break in future releases.

Please also be aware that there might never be a stable release, since nothing ever happens.

Downloading

There are pre-built binaries for Windows x86:

The release page hasn't been updated in a long time, so it's worth noting to better build it yourself.

Compiling

If you want to compile GM8Decompiler or GM8Emulator:

  1. Install the Rust toolchain.
  2. Open a terminal (On Windows: Press Win+R, type "powershell", hit Enter).
  3. Clone the repository: git clone --recurse-submodules https://github.com/OpenGMK/OpenGMK.
  4. Go into the repository: cd OpenGMK.
  5. Compile the crates: cargo b -r (ignore the warnings).
  6. The programs gm8emulator and gm8decompiler will be located in the target/release folder.

Copy-pastable version for very lazy people:

git clone --recurse-submodules https://github.com/OpenGMK/OpenGMK
cd OpenGMK
cargo build --release
./target/release/gm8emulator

[!TIP] You can also recursively initialize the submodules after you've already cloned:

git submodule update --init --recursive

[!WARNING] Only MSVC is currently supported for Windows. This means that target tuples ending in -pc-windows-gnu may not compile.

Native DLLs for 64-bit Windows

If you're on Windows 64-bit and would like to play games with GM8Emulator that require 32-bit DLLs to function such as GMFMODSimple or supersound, you'll also need to build the WoW64 server. It requires the additional installation of the i686-pc-windows-msvc toolchain with rustup and you will need to build it separately.

rustup target add i686-pc-windows-msvc
cd gm8emulator-wow64   # inside the OpenGMK repo folder
cargo build --release --target=i686-pc-windows-msvc

The compiled WoW64 server program will be located in the gm8emulator-wow64/target/i686-pc-windows-msvc/release folder. The binary should either be manually copied to the same folder as gm8emulator.exe to work, or the OPENGMK_WOW64_BINARY environment variable should be set with the path to the binary.

Alternatively, you could build the project as 32-bit on Windows directly, eliminating the need for the WoW64 server. You should note that this will produce a bit slower program, since 32-bit operating mode is no longer considered primary in today's processors, and the i686 instruction set is much older. In order to do this:

# inside the OpenGMK folder
rustup target add i686-pc-windows-msvc
cargo build --release --target=i686-pc-windows-msvc
./target/i686-pc-windows-msvc/release/gm8decompiler
# or
./target/i686-pc-windows-msvc/release/gm8emulator

Cross-platform extension emulation is planned for the long-term future.

Recording and Replaying TASes

To play a game normally, simply pass the only argument to gm8emulator:

gm8emulator path/to/game.exe

To start record mode, or continue a previous recording, also pass a project name with -n. A folder for the project will be created in:

  • Windows: projects/.
  • Linux (Near™ Future): $XDG_DATA_HOME/opengmk/projects/ or ~/.local/share/opengmk/projects/.
gm8emulator path/to/game.exe -n project-name

While in record mode, a save#.bin is generated for each savestate (where # is the number of the savestate). You can export a save#.gmtas file, which is for sharing, and has input data only. If you've lost your save#.bin, or need to migrate OpenGMK versions, you can recreate it by simply replaying your save#.gmtas:

gm8emulator path/to/game.exe -l -f path/to/save#.gmtas -o path/to/save#.bin

Note that -l here means disabling the framelimiter so it goes by faster.

All command-line steps will be streamlined in a future release.

Common errors

Q: Loading a game throws failed to load 'filename' - unknown format, could not identify file or similar.

A: OpenGMK is made to support GameMaker Classic games. It’s possible the game you are trying to load was actually made with GameMaker: Studio, which is not supported.

If there is a data.win, game.unx, game.ios or similar file, then the game was not made in GameMaker Classic and OpenGMK cannot decompile or emulate it.


Q: Loading a game throws Error code 0xC0072095 or a mention of wgl.CreateContextAttribsARB.

A: Apparently, your system does not have the necessary version of OpenGL. At the moment, OpenGMK unfortunately requires OpenGL 3.3 with support for GLSL 3.30 shaders - we really hope to significantly soften this over time. Usually this situation occurs when attempting to run on integrated graphics hardware by Intel from the early 2010s and older. You can try updating the drivers (sometimes they add support for newer versions of OpenGL). If you also have a discrete GPU or graphics card, set OpenGMK to use it through the corresponding control panel.


Q: Loading/playing a game throws unimplemented kernel function or not yet implemented or similar.

A: Your game tried to access functionality that's yet to be implemented. The full GameMaker Classic standard library is absolutely massive, and there's a good bit left to cover. Sorry mate.


Q: Entering record mode throws invalid u8 while decoding bool or expected variant or similar.

A: This means that the save#.bin file in your project directory is out of date with OpenGMK. This is a byproduct of it being actively developed, and is bound to happen.

To fix it, open it in the build of OpenGMK it was created with, export a save#.gmtas from it, and recreate the save#.bin in the new build with that as described in the recording section.

History

GameMaker (formerly Game Maker) is an engine for creating Windows games, originally created by Mark Overmars in 1999 and YoYo Games since 2007. GameMaker 8 ("GM8") was the last of the numbered releases of GameMaker, released on 2009-12-22 (surpassing GameMaker 7) and succeeded by the vastly more popular GameMaker: Studio in 2011. The pre-Studio versions are often referred to as GameMaker Classic. Due to the huge behavioral differences, as well as Studio's lack of backward-compatibility, the classic engines are still very widely used, with thousands of games to their name.

One of GameMaker's original strengths as a game engine was its ability to compile an entire project into a single executable. No external dependencies or installers, just compile, send the .exe file to your friend and they will be able to play your game. This is achieved by having the target executable act as a phase file for the entire collection of assets required to run the game. In other words, the executable contains not only the game engine code, but all of the objects, scripts, sprites, room layouts, everything required for the game logic. This behaviour was made optional in Studio, giving the creator a choice between a standalone executable or .msi installer. However, the standalone builds just extract the contents of the installer to a temporary folder when they're launched, so sending the extracted contents as a .zip became much more preferable.

This project was originally started as GM8Emulator, a program that can load GameMaker Classic games, and accurately play the game within. The goal was to have it mimic the original engine as closely as possible, down to the sub-frame and implementation detail (if observable). Strictly speaking, "emulator" was not the correct term. In computing, an emulator is a piece of software on a computer system which emulates the behaviour of a different computer system. We aren't emulating any computer system, just the engine, unless you consider Game Maker Language its own architecture. A more accurate term would be a sourceport, but it didn't sound as cool at the time.

The project required us to write a decompiler as a starting point to extract the assets. Since we were already maintaining the most up-to-date fork of Zach Reedy's gm81decompiler from 2013, we used that as a starting point to develop a much faster version from scratch out of the new codebase, released as GM8Decompiler. GM8Decompiler was originally a separate repository, but the code is now merged into this unified repository which we named the OpenGMK Project.

Contributing

This project has only been worked on by a few people so far in their little free time. Contributions are always welcome, although we'd prefer if you got in contact beforehand to discuss details (opening an issue, for example). All contributions are licensed under the same licence as the project.

Additional Credits

  • DatZach for creating the original free and open source decompiler.
  • Jabberwock-RU for creating the project icon and logos.

Licence

OpenGMK is free and open source software, provided under the GNU General Public License v2. SPDX-License-Identifier: GPL-2.0-only.

OpenGMK is no way affiliated with GameMaker or YoYo Games.

関連プロジェクトを探す

読み込み中…