GRIPFORGE COMPILER

Your game project,
generated in Rust.

A pre-build step: the compiler reads the project.gripforge of a game, all its scenes and the kit.api.json of its Game Kits, checks them and generates the game’s Rust files. Your usual build then compiles them, native and wasm: games ship without reading JSON at start-up, and every mistake is caught before a player sees it.

  1. project.gripforgescenes, kits, settings
  2. Strict checkkit.api.json
  3. init_scene.rs · index.rsRust files in .build/ · typed façades
  4. Your game’s build, outside the tool
  5. native.so · .dll · .dylib
    wasmgame.main.wasm
01

What it does

gripforge-build reads your project and generates the Rust of the game’s own module.

Every scene, generated

Reads project.gripforge, every scene it names and the kit.api.json files downloaded into the project, checks them strictly, and writes one init_scene.rs per scene.

Ready for your build

It writes a Rust crate in .build/ (index.rs, one init_scene.rs per scene). It compiles nothing: your game’s usual build turns it into native and wasm.

Typed façades

Each Game Kit is called through a typed façade generated from its kit.api.json: a renamed property is caught before your build.

Errors an AI can fix

Each problem names the file, the scene, the element and the property, with what is expected. --json gives a report for your tools.

Why pre-build

Faster loading

Scenes are turned into Rust ahead of time: no scene file is read when the game starts.

Errors before the build

A mistake stops generation instead of showing up in front of a player.

Same result as dev.builder

The generated game reaches the same state as the development mode: what you edited is what ships.

02

Use it

One native binary per platform, nothing else to install. It only generates Rust: your game’s usual build compiles it.

1. Download the binary for your platform

Linux x64 and ARM64, Windows x64, macOS Intel and Apple Silicon.

All platforms
2. Generate

Checks the project and writes the Rust files into .build/ next to it. Nothing is compiled.

gripforge-build path/to/my-game
Check only, with a JSON report
gripforge-build path/to/my-game --check --json
3. Run your game’s usual build

It compiles the generated crate, native and wasm, like any Rust code (rustup, wasm32-unknown-unknown, rust-src).

Example of an error
error section_field_unknown — project.gripforge › scene level › property kits.core.light.brightness
  core.light.ambience has no property brightness
  Expected: use one of exposure, preset, seconds, tonemapping

Never edit .build/ by hand: change project.gripforge and generate again. Exit code 0 means generated, 1 means the project has errors. All options in the README

03

Downloads

Every version published on GitHub, newest first.

Latest

v0.1.1

Release on GitHub

The generated crate takes the public part of the kits SDK (gripforge-abi, gripforge-kit-guest,

gripforge-kit-access) from this repository, sdk/ (copied from module-kits by tools/sync-sdk, revision in

sdk/sdk.json, see PROVENANCE.md), by git at the compiler's tag (tag = "v0.1.1"): a game builds without any

access to the kits repository. --sdk <dir> takes it by path (this repository's sdk/ or a kits checkout);

--sdk-rev or GRIPFORGE_SDK_REV another tag, commit or branch. The CI generates the example room and builds it,

native and wasm, on sdk/ alone.

The spec of an element of a node passes what dev.builder passes: type, asset, archetype, entity and, of its

parent node, parentNode, parentType, parentEntity, parentAsset, parentArchetype: a collision or an

animation under its parent works built. Typed nodes (collision, animation) reach the generated code.

A model named by its Library id reaches the generated code by that id.

The header of the generated scenes says to run gripforge-build <project>.

Install

Download the archive of your platform below, check it against SHA256SUMS, unpack it: gripforge-build is one binary, no runtime. release.json lists the files.

```

f46247f86e0283157d6496460d73d1e6003f8d88bb5f3dabc8bbf9e4485b950e gripforge-build-0.1.1-aarch64-apple-darwin.tar.gz

17c93ee4dcdff8a8736c131d2109d86229f49100d4b89e2f1dbfdd122d6e8d3d gripforge-build-0.1.1-aarch64-unknown-linux-gnu.tar.gz

1f5a03bd3d2aede06626c0d4d562ef2efcd43d143d150ad3254b4e55becb17d2 gripforge-build-0.1.1-x86_64-apple-darwin.tar.gz

317d6eda3f1b7b95b41d7b7775fe8374cb3036035767bc80a72ac952783f23ef gripforge-build-0.1.1-x86_64-pc-windows-msvc.zip

41915232c249214807f7c51f9f1c52f1fd7fe9f0ac1d56a88806ab161aebf913 gripforge-build-0.1.1-x86_64-unknown-linux-gnu.tar.gz

4d5971072b9ffc3d0b5f776c29db84f292607ae1a2d5ae80b72b0fcddea69da6 release.json

```

Linux

  • ARM64gripforge-build-0.1.1-aarch64-unknown-linux-gnu.tar.gz1.4 MB
    sha256 17c93ee4dcdff8a8736c131d2109d86229f49100d4b89e2f1dbfdd122d6e8d3dDownload
  • x64gripforge-build-0.1.1-x86_64-unknown-linux-gnu.tar.gz1.5 MB
    sha256 41915232c249214807f7c51f9f1c52f1fd7fe9f0ac1d56a88806ab161aebf913Download

Windows

  • x64gripforge-build-0.1.1-x86_64-pc-windows-msvc.zip1.4 MB
    sha256 317d6eda3f1b7b95b41d7b7775fe8374cb3036035767bc80a72ac952783f23efDownload

macOS

  • Apple Silicongripforge-build-0.1.1-aarch64-apple-darwin.tar.gz1.4 MB
    sha256 f46247f86e0283157d6496460d73d1e6003f8d88bb5f3dabc8bbf9e4485b950eDownload
  • Intelgripforge-build-0.1.1-x86_64-apple-darwin.tar.gz1.5 MB
    sha256 1f5a03bd3d2aede06626c0d4d562ef2efcd43d143d150ad3254b4e55becb17d2Download

Other file

  • release.json2 KB
    sha256 4d5971072b9ffc3d0b5f776c29db84f292607ae1a2d5ae80b72b0fcddea69da6Download

Checksums

  • SHA256SUMS666 B
    sha256 7b1be0a2ab53d8f532da95a06c1d099e14cc9a8cd1798759834669ff5d59ebadDownload

Earlier versions

v0.1.0

gripforge-build: one native binary. Reads project.gripforge and the kit.api.json of the kits of the project,

checks it strictly, generates game.json, init_scene.rs per scene, index.rs and the crate of the game's module.

Compiles nothing.

The spec of an element of a node passes what dev.builder passes: type, asset, archetype, entity and, of its

parent node, parentNode, parentType, parentEntity, parentAsset, parentArchetype (fields of the accessors'

Spec, the literal ends with ..Default::default()): a collision or an animation under its parent works built.

Errors for an AI: stable codes, file › scene › element › property, what is expected; --check, --json.

A kit missing from the project says which one (and its version) and how to install the kits.

The generated crate calls each kit through the accessor the kit ships in its folder (<kit>/access/rust,

gripforge-kit-access-<kit> at the kit's version), by a local path; access_missing, access_mismatch.

--kits-path <dir> (was --kits): the kits, and their accessors, from another folder (the sources of the kits, for

their demos).

--compress-textures / --no-compress-textures / --compress-textures-url: the GLB without KHR_texture_basisu

are sent to the public texture route, the compressed copy is written in <out>/textures/ (cache by sha256), the

gains are in the report (textures). A failure is a warning, the build goes on. Off by default. New dependencies:

ureq (rustls), sha2, base64.

The generated crate takes the kits SDK of module-kits at 108031bf9f6ca9a5ea811a55058c3600b2c5227d (accessors in the

kits' folders, Spec with the node's kind and its parent); --sdk-rev or GRIPFORGE_SDK_REV change it. The header of the generated scenes says to run

gripforge-build <project>.

Install

Download the archive of your platform below, check it against SHA256SUMS, unpack it: gripforge-build is one binary, no runtime. release.json lists the files.

```

03fc1e43dd0300a33ccf2c190c46a7c294888f37e8c7cbc058dfef0b0f2c45e6 gripforge-build-0.1.0-aarch64-apple-darwin.tar.gz

7e446da62d1027459e20b266106c69ea44eda81a1975b4e5f3704d4ba73b5ca3 gripforge-build-0.1.0-aarch64-unknown-linux-gnu.tar.gz

aa3e712a80f3a18069a1376ef64efd6d04a0c8477f4bc26c558ed1e87d7b6fda gripforge-build-0.1.0-x86_64-apple-darwin.tar.gz

b2cdb9eeae2ccddb4010feb5126025ec49de6feb3f29883d35d76fec822b20ff gripforge-build-0.1.0-x86_64-pc-windows-msvc.zip

154184d79e2dc3ba763a0ef62518efaa02ec99ab276f020c7702377dbff2644c gripforge-build-0.1.0-x86_64-unknown-linux-gnu.tar.gz

da777f3cb7fe745177940ccc6f383a5ba095f43203bb7fb34c72ff08f1ec4447 release.json

```

Linux

  • ARM64gripforge-build-0.1.0-aarch64-unknown-linux-gnu.tar.gz1.4 MB
    sha256 7e446da62d1027459e20b266106c69ea44eda81a1975b4e5f3704d4ba73b5ca3Download
  • x64gripforge-build-0.1.0-x86_64-unknown-linux-gnu.tar.gz1.5 MB
    sha256 154184d79e2dc3ba763a0ef62518efaa02ec99ab276f020c7702377dbff2644cDownload

Windows

  • x64gripforge-build-0.1.0-x86_64-pc-windows-msvc.zip1.4 MB
    sha256 b2cdb9eeae2ccddb4010feb5126025ec49de6feb3f29883d35d76fec822b20ffDownload

macOS

  • Apple Silicongripforge-build-0.1.0-aarch64-apple-darwin.tar.gz1.4 MB
    sha256 03fc1e43dd0300a33ccf2c190c46a7c294888f37e8c7cbc058dfef0b0f2c45e6Download
  • Intelgripforge-build-0.1.0-x86_64-apple-darwin.tar.gz1.5 MB
    sha256 aa3e712a80f3a18069a1376ef64efd6d04a0c8477f4bc26c558ed1e87d7b6fdaDownload

Other file

  • release.json2 KB
    sha256 da777f3cb7fe745177940ccc6f383a5ba095f43203bb7fb34c72ff08f1ec4447Download

Checksums

  • SHA256SUMS666 B
    sha256 71585a49d5dd281d71b9e53f1eaae5bea73259c062230d249af47973c3ac081eDownload
Release on GitHub