openrct2-plugin-peepsim
Guest simulator plugin for OpenRCT2
OpenRCT2 Plugin Boilerplate
A modern boilerplate for creating OpenRCT2 plugins with ES6+ JavaScript, automatic transpilation, and CI/CD via GitHub Actions.
Features
- ES6+ syntax with automatic transpilation to ES5
- Multi-file project support with Rollup bundling
- Hot-reloading during development with watch mode
- Automated releases via GitHub Actions
- Version management from package.json
- Modern tooling (Babel 7, Rollup 4)
Requirements
Installation
- Click "Use this template" to create a repo using this boilerplate
- Clone your new repository to your computer
- Run
npm installto install dependencies (requires Node.js) - Update the plugin name in
package.json(replaceopenrct2-plugin-boilerplate)
Configuration
Local Development Setup
- Copy
deploy.config.example.jsontodeploy.config.json - Update the
pluginPathto your OpenRCT2 plugin directory:- Windows:
C:/Users//Documents/OpenRCT2/plugin/ - macOS:
~/Library/Application Support/OpenRCT2/plugin/ - Linux:
~/.config/OpenRCT2/plugin/
- Windows:
TypeScript Definitions
Update the path in src/index.js to point to your OpenRCT2 installation's openrct2.d.ts file for IntelliSense support.
Build Commands
npm run build- Build the plugin oncenpm run watch- Automatically rebuild when source files changenpm run deploy- Build and copy to your OpenRCT2 plugin directory
With hot-reloading enabled in OpenRCT2 and watch mode running, changes are automatically reflected in-game without restarting.
Development
Create your plugin in the src/ directory:
src/index.jsis the entry point- Import other modules using ES6
importsyntax - The plugin name and version are automatically read from
package.json
Releases
Releases are automated via GitHub Actions:
- Update your code and commit changes
- Create and push a version tag:
git tag v1.0.0 git push origin v1.0.0 - GitHub Actions will automatically:
- Update
package.jsonwith the tag version - Build the plugin
- Create a GitHub release with the built file
- Update
License
MIT