Skip to content

Latest commit

ย 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ MGT2 Calculator โ€” Perfect Game Helper

A lightweight desktop companion app for Mad Games Tycoon 2 that instantly shows you the optimal slider values, alignment settings, and design focus for any genre + subgenre combination. No more tabbing out to spreadsheets โ€” pin it on top of your game and make perfect games every time.

Built with Tauri v2 + React 19 + TypeScript.

๐Ÿ“ฅ Download

Platform Link
Windows (.exe) โฌ‡ Download Latest Release

Go to the Releases page and download the .exe or .msi installer from the latest release assets.


โœจ Features

  • Pre-computed data for 19 genres โ€” every single genre from Mad Games Tycoon 2
  • ~200 genre + subgenre combination overrides โ€” not averaged, not estimated, but exact values extracted from the game's data
  • 8 game slider recommendations โ€” Game Length, Game Depth, Beginner Friendliness, Innovation, Story, Characters, Level Design, Mission Design
  • Design Direction โ€” Core Gamers โ†” Casual, Nonviolent โ†” Explicit, Easy โ†” Hard per combination
  • Design Priority percentages โ€” Gameplay / Graphics / Sound / Technology split
  • Topic compatibility checker โ€” shows โœ… Perfect Match or โŒ Not Compatible for any topic + genre pair
  • Target Audience display โ€” highlights compatible audiences (Everyone, Children, Teenagers, Adults, Seniors) in green, grays out incompatible
  • Always-on-Top mode โ€” pin the window above your game so you never lose sight of the data
  • Window transparency โ€” adjustable real transparency so you can see through the window to your game
  • 3 languages โ€” English, Russian, Polish
  • Dark theme with custom title bar โ€” frameless window with integrated minimize/maximize/close controls
  • Tiny footprint โ€” native Tauri app, ~3 MB installed, near-zero CPU/RAM usage

๐Ÿ“ธ Why This Calculator?

Most "calculators" for MGT2 either:

  • Use averaged values that aren't accurate for specific combinations
  • Require you to open a browser and search through tables
  • Don't include design direction or design priority data

MGT2 Calculator uses the actual optimal slider values sourced from the definitive Steam Community Guide by Chronosuniverse. When a specific genre + subgenre combination has its own overridden values, you get those exact values โ€” not an average.

Screenshot of the app in action:

alt text


๐Ÿš€ Getting Started

Prerequisites

Tool Version Install
Node.js 18+ nodejs.org
Rust 1.70+ rustup.rs
npm 9+ Comes with Node.js

Windows users: Make sure you have the Microsoft C++ Build Tools installed (required by Rust/Tauri). During installation, select "Desktop development with C++".

Linux users: Install system dependencies โ€” see Tauri prerequisites.

Installation

# Clone the repository
git clone https://github.com/YOUR_USERNAME/MGT2_Calculator.git
cd MGT2_Calculator

# Install frontend dependencies
npm install

Development

# Start the app in development mode (hot-reload enabled)
npm run tauri dev

This will:

  1. Start the Vite dev server on http://localhost:1420
  2. Compile the Rust backend
  3. Launch the desktop window with DevTools available

Frontend Only (no Tauri)

If you only want to work on the UI without building Rust:

# Start Vite dev server
npm run dev

# Open http://localhost:1420 in your browser

Note: The "Always on Top" feature won't work in browser mode โ€” it requires the Tauri backend.


๐Ÿ“ฆ Building for Production

Build an Executable (.exe / .msi / .dmg)

npm run tauri build

The build output will be located in:

src-tauri/target/release/bundle/
โ”œโ”€โ”€ msi/           # Windows installer (.msi)
โ”œโ”€โ”€ nsis/          # Windows installer (.exe via NSIS)
โ”œโ”€โ”€ dmg/           # macOS disk image
โ”œโ”€โ”€ deb/           # Linux .deb package
โ””โ”€โ”€ appimage/      # Linux AppImage

Windows: You'll find your .exe installer in src-tauri/target/release/bundle/nsis/ and the portable .msi in src-tauri/target/release/bundle/msi/.

Build Frontend Only

npm run build

Output goes to dist/.


๐Ÿ—๏ธ Project Structure

MGT2_Calculator/
โ”œโ”€โ”€ src/                          # Frontend (React + TypeScript)
โ”‚   โ”œโ”€โ”€ components/               # UI components
โ”‚   โ”‚   โ”œโ”€โ”€ Header.tsx            # App header with language switch & pin button
โ”‚   โ”‚   โ”œโ”€โ”€ GenreSelector.tsx     # Main genre + subgenre selection
โ”‚   โ”‚   โ”œโ”€โ”€ ThemeSelector.tsx     # Theme picker with compatibility
โ”‚   โ”‚   โ”œโ”€โ”€ SliderDisplay.tsx     # Slider bars, alignment, design focus
โ”‚   โ”‚   โ”œโ”€โ”€ CompatibilityIndicator.tsx  # Match quality badges
โ”‚   โ”‚   โ”œโ”€โ”€ HistoryPanel.tsx      # Recent combinations history
โ”‚   โ”‚   โ”œโ”€โ”€ ErrorBoundary.tsx     # Error boundary wrapper
โ”‚   โ”‚   โ””โ”€โ”€ index.ts             # Barrel exports
โ”‚   โ”œโ”€โ”€ data/
โ”‚   โ”‚   โ”œโ”€โ”€ genres.ts             # All 19 genres + ~200 combination overrides
โ”‚   โ”‚   โ””โ”€โ”€ themes.ts             # Theme list with genre compatibility maps
โ”‚   โ”œโ”€โ”€ i18n/
โ”‚   โ”‚   โ”œโ”€โ”€ index.ts              # i18next initialization
โ”‚   โ”‚   โ”œโ”€โ”€ translations.ts       # Translation loader
โ”‚   โ”‚   โ””โ”€โ”€ locales/              # Translation JSON files
โ”‚   โ”‚       โ”œโ”€โ”€ en.json
โ”‚   โ”‚       โ”œโ”€โ”€ ru.json
โ”‚   โ”‚       โ””โ”€โ”€ pl.json
โ”‚   โ”œโ”€โ”€ store/
โ”‚   โ”‚   โ”œโ”€โ”€ useCalculatorStore.ts # Genre/theme selection + computed sliders
โ”‚   โ”‚   โ””โ”€โ”€ useAppStore.ts        # Window state (always-on-top, init)
โ”‚   โ”œโ”€โ”€ App.tsx                   # Root component
โ”‚   โ”œโ”€โ”€ App.css                   # Global styles + Tailwind import
โ”‚   โ””โ”€โ”€ main.tsx                  # React entry point
โ”œโ”€โ”€ src-tauri/                    # Backend (Rust + Tauri v2)
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ main.rs               # Entry point
โ”‚   โ”‚   โ””โ”€โ”€ lib.rs                # Tauri commands (always-on-top, window controls)
โ”‚   โ”œโ”€โ”€ tauri.conf.json           # Tauri configuration
โ”‚   โ”œโ”€โ”€ Cargo.toml                # Rust dependencies
โ”‚   โ”œโ”€โ”€ icons/                    # App icons for all platforms
โ”‚   โ””โ”€โ”€ capabilities/             # Tauri v2 security capabilities
โ”œโ”€โ”€ package.json                  # Frontend dependencies & scripts
โ”œโ”€โ”€ tsconfig.json                 # TypeScript configuration
โ”œโ”€โ”€ vite.config.ts                # Vite + Tailwind v4 setup
โ””โ”€โ”€ README.md                     # You are here

๐Ÿ› ๏ธ Tech Stack

Layer Technology Version
Desktop Framework Tauri 2.x
Frontend React 19.x
Language TypeScript 5.8
Build Tool Vite 7.x
Styling Tailwind CSS 4.x
State Management Zustand 5.x
Internationalization i18next + react-i18next 25.x / 16.x
Backend Rust 2021 edition

๐ŸŒ Localization

The app supports 3 languages out of the box:

Code Language
en English
ru Russian (ะ ัƒััะบะธะน)
pl Polish (Polski)

Translation files are in src/i18n/locales/. To add a new language:

  1. Create src/i18n/locales/{code}.json by copying en.json
  2. Translate all values
  3. Add the import and resource entry in src/i18n/translations.ts
  4. Add genre translations in the genreTranslations export
  5. Add the language option to the Header component's language switcher

๐Ÿ“Š Data Source

All slider values, alignment settings, design focus percentages, genre compatibility data, and target audiences are sourced from:

Perfect Game Sliders and Combinations [Updated] โ€” Steam Community Guide by Chronosuniverse

This guide contains the most comprehensive and accurate data extracted directly from Mad Games Tycoon 2's game files. Full credit to the guide author for their incredible work compiling this data.


๐Ÿค Contributing

Contributions are welcome! Here's how:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m "Add my feature"
  4. Push to the branch: git push origin feature/my-feature
  5. Open a Pull Request

Contribution Ideas

  • ๐ŸŒ Add more languages
  • ๐ŸŽจ Improve UI/UX
  • ๐Ÿ“ฑ Better responsive design
  • ๐Ÿ› Bug fixes
  • ๐Ÿ“– Documentation improvements
  • โญ New features (e.g., training slider recommendations, platform support data)

๐Ÿ“œ License

This project is open source. See the LICENSE file for details.


๐Ÿ™ Acknowledgments


Made with โค๏ธ for Mad Games Tycoon 2 players who want to make perfect games every time.

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages