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

169 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.

This is a GameSpice addon (MIT, built with Claude Code). examples/sim_selftest.tscn is the headless suite, and cargo test in rust/ covers the kernels. The games in Zee's Games run on GameSpice addons and live servers, and they load this library where a build ships it. Bug reports go to the issue tracker.

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.

Used by

All of these games from Zee's Games vendor this addon:

The whole collection is at zeesgames.com.

Licence

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