Skip to content
gamespice-platformPublic

About

Optional Rust GDExtension that runs hot simulation code from the GameSpice addons natively, such as the bot sight scan. Each module returns the same answers as the script it replaces; a game without the library, and every web export, falls back to the script. Built with ci/install.sh.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

112 Commits

Folders and files

Repository files navigation

Optional native (Rust GDExtension) versions of hot simulation code from the GameSpice addons. Each module gives the same answers as the script it replaces. A game without the library, and every web export, simply runs the script.

Module Replaces
bots The sight scan of GameSpice Bot's brain

Install

  1. Run ci/install.sh (needs a stable Rust toolchain). It builds this machine's library into addons/gs_sim/bin/<platform>/ and writes addons/gs_sim/gs_sim.gdextension. Or unpack a release's gs_sim-<version>-<platform>.zip at the project root.
  2. Open or import the project once so the engine lists the extension.

Use

Nothing to call. GSSim.has(&"bots") tells whether a module is loaded, and GameSpice Bot uses it on its own when present.

Keep addons/gs_sim/bin/ and gs_sim.gdextension out of plain-template web exports. The opt-in web build is ci/web.sh; see docs/web.md.

Testing

Link the sibling addons (addons/gs_core, addons/gs_bot), install a library, then run examples/sim_selftest.tscn headless with Godot. Its arms section also needs gs-player-char's scan linked (examples/linked/gs_view_arms_clear.gd, skipped when absent), and its weapon suite (examples/sim_weapon_selftest.tscn) gs-weapon's addon (addons/gs_weapon, skipped when absent). Without a library the suite checks the fallback and says the native half was skipped. cargo test in rust/ tests the kernels alone.

Design and numbers: docs/design.md. Writing a native twin and its parity suite for any addon: GameSpice Core native-twins.

Status and licence

Part of the GameSpice platform: a family of Godot addons. Written with Claude Code and maintained by gamemann. Every addon has headless tests, but little of this has been played by real users yet, so expect rough edges and please open an issue when you hit one.

MIT licence, see LICENSE. The only closed part of the GameSpice platform is the web back end; you can use your own instead of GameSpice's.

About

Optional Rust GDExtension that runs hot simulation code from the GameSpice addons natively, such as the bot sight scan. Each module returns the same answers as the script it replaces; a game without the library, and every web export, falls back to the script. Built with ci/install.sh.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages