Quick Start
Getting started with Slot Engine Panel
Introduction
Slot Engine Panel is part of Slot Engine, a family of TypeScript libraries for building, simulating and testing slot games.
Panel is a web GUI for interacting with, and inspecting Slot Engine games. It features various useful tools for Slot Engine game developers:
- Game statistics overview
- Payout statistics (payout occurrences, unique payout counts)
- Game simulation (configuration, start, stop)
- Simulation insights
- Bet (crowd) simulation
- Reel set designer
- Books & events explorer
Installation & Setup
Set up Panel using the @slot-engine/panel library.
Install package from npm
Set up your Node.js project and install @slot-engine/panel.
It's recommended to set up Panel in the same repository as your game(s), but that's not a requirement.
Slot Engine Panel requires your games to use @slot-engine/core >= 0.2.0.
npm i @slot-engine/panelConfigure Panel
Set up Panel in a separate file. For detailed configuration options, see the configuration guide.
import { createPanel } from "@slot-engine/panel"
import { game as MyGame } from "../../path-to/my-game"
const panel = createPanel({
games: [MyGame],
})
panel.start()Ensure Game Compatibility
For Panel to be able to resolve file paths correctly, your game needs to specify the configuration option rootDir: __dirname.
Also, your game must use @slot-engine/core >= 0.2.0.
export const game = createSlotGame<GameType>({
rootDir: __dirname, // required if connecting this game to @slot-engine/panel
// ...
})Furthermore, if you want to use the reel set designer, your reels CSV files must be prefixed with reels_.
Run Panel
You can run the file however you like. The easiest way to do this is by using the tsx library.
cd ./path-to/your-panel
pnpm tsx watch ./index.tsRunning Panel in watch mode is not required, but recommended. This way Panel will recognize changes to your game and you don't need to restart Panel after every change.
Troubleshooting
When you're coming from @slot-engine/core 0.1.x, some features of Panel may not work correctly the first time you launch it.
Slot Engine Panel needs some files which are only generated during a simulation run.
If you notice obvious 404 or 500 errors when using Panel for the first time,
ensure your game is on a compatible Core version and re-run simulations.
This should generate the necessary files Panel needs.
Use of AI on this page: All texts were initially written by hand and many were later revised by AI for improved flow. All AI generated revisions were carefully reviewed and edited as needed.