A downloadable compiler

Download NowName your own price

🎮 GMLC – Runtime GML Compiler for GameMaker

📘 What It Is

GMLC lets your GameMaker projects compile and execute GML code at runtime, allowing live scripting, mod support, and dynamic behavior — all inside the GameMaker engine.

It’s the same language you already use in the IDE, just running dynamically during gameplay.

⚙️ Core Features

  • Compile and run GML source strings during runtime.

  • Tiered sandbox profiles for secure script execution (pure, safe, moderate, unsafe).

  • Fetch callable functions (like main, step, or draw) from compiled code.

  • Full support for static, constructor, and method semantics.

  • Clear compile-time and runtime error reporting.

🚀 Quickstart

var env = new GMLC_Env();
var program = env.compile("return 42;");
var result = program();        // Executes the compiled code
show_debug_message(result);    // Prints: 42

Compiled programs behave like normal scripts and can expose callable sub-functions:

var env = new GMLC_Env();
var program = env.compile(@'
function foo() {
    return "bar";
}
');
var _foo = env.get("foo");
show_debug_message(_foo());    // Prints: bar

⚠️ About execute_string()

A legacy helper, execute_string(_code), runs code instantly without caching or environment reuse. It’s simple but slow — use only for quick, one-off tests.

execute_string(@"show_debug_message('quick test');"); 

🔗 Get the Library

Import the .yymps file into your project via Tools > Import Local Package in GameMaker.

Full documentation, examples, and source: 👉 GitHub Repository

(Inspired by work from NerriKiffu and the GameMaker Kitchen community.)

Published 2 days ago
StatusReleased
CategoryAssets
Authortinkerer.red
TagsGameMaker

Download

Download NowName your own price

Click download now to get access to the following files:

GMLC_1_0_2.yymps 1.3 MB

Leave a comment

Log in with itch.io to leave a comment.