rust-gamedev/wg

Modding

Kinrany opened this issue · 1 comments

Couldn't find any references to game modifications in this repo, so I'll start a new topic.

I wonder if it's possible to use Rust's type system and piggyback on Cargo to make it easier for games to support modding.

  • Mods are often incompatible with each other. Having an architecture with static guarantees that that is not the case would be awesome and allow modders to build on each other's work.
  • Every game with modding support, official or otherwise, needs a package manager to make it easy to install mods. It would be great if there was a reusable package manager for mods. (They don't need to be compatible between games.)

There's also the case of roblox-ts, a custom TypeScript -> Lua transpiler. They're using NPM for package management even though their packages are not necessarily valid TypeScript.

This seems similar to package managers for mods. Maybe Cargo could support these use cases by extracting the relevant parts into separate reusable crates.