Skip to content

Getting started

Tool Needed for
.NET 10 SDK Everything (newer SDKs work; projects target net10.0)
Docker The server’s PostgreSQL database and the server integration tests
A GitHub account Real sign-in and the admin dashboard (optional for local play)

The first build of the server downloads the Tailwind CSS CLI (about 110 MB, once per version) for the admin dashboard’s styles. Offline, add -p:AcidBoySkipTailwind=true (see Admin dashboard › Styling).

Terminal window
dotnet run --project src/AcidBoy.Desktop -c Release -- path/to/game.gb

With no ROM the menu opens; press Ctrl+O to browse, or drop a .gb/.gbc file on the window. Esc opens the menu at any time. See Desktop app for controls and settings.

The Open ROM file browser
Open ROM (Ctrl+O)
A Game Boy Color game running
Playing
Terminal window
dotnet build src/AcidBoy.Desktop # the desktop app (AcidBoy.slnx also builds the mobile app: needs the maui-android workload)
dotnet test tests/AcidBoy.Tests # emulator and desktop tests
dotnet test tests/AcidBoy.Server.Tests # server tests; need Docker (skipped without it)
Terminal window
docker compose -f src/server/docker-compose.yml up -d # PostgreSQL on localhost:5432
dotnet run --project src/server/AcidBoy.Server # http://localhost:5280

The server applies database migrations at startup. In Development it enables Sign in with Developer, which needs only a name, so you can try everything without OAuth apps.

Terminal window
dotnet run --project src/AcidBoy.Desktop -c Release -- --server http://localhost:5280

Start it twice. In each window:

  1. Esc → Online… → Sign in with Developer, each window with a different name.
  2. Load a game, e.g. Pokémon Red in one window and Blue in the other.
  3. Channels… → Pokémon Gen 1.
  4. One player picks the other in the channel and chooses Challenge to link; the other presses Y.

Both link cables now go through the server. Use the games’ Cable Club as on real hardware. Afterwards, Online → Match history shows the match and any trade or battle result.

Both windows share one settings file, so the window that signs in last is the account remembered for next time. --server keeps the sign-in from being saved at all.

3. GitHub sign-in and the admin dashboard (optional)

Section titled “3. GitHub sign-in and the admin dashboard (optional)”
  1. Create a GitHub OAuth app: GitHub → Settings → Developer settings → OAuth Apps → New.

    • Homepage URL: your repository or site.
    • Callback URL: http://localhost:5280/auth/callback/github.
  2. Store its credentials and make yourself the first admin. Use your numeric GitHub id from gh api user --jq .id:

    Terminal window
    cd src/server/AcidBoy.Server
    dotnet user-secrets set "Auth:Providers:github:ClientId" "<client id>"
    dotnet user-secrets set "Auth:Providers:github:ClientSecret" "<client secret>"
    dotnet user-secrets set "Admin:Bootstrap:0" "github:<your numeric id>"
  3. Restart the server, open http://localhost:5280/admin and sign in with GitHub.

Discord and Google work the same way under Auth:Providers:discord and Auth:Providers:google; see Authentication.

What Where
Battery saves Next to the ROM: <rom>.sav (second copy in a local link: <rom>.2.sav)
Emulator settings settings.json in %APPDATA%\AcidBoy, ~/Library/Application Support/AcidBoy or ~/.config/AcidBoy
Controller mappings gamecontrollerdb.txt next to settings.json
Online sign-in In settings.json: DPAPI-encrypted on Windows; the file is user-only elsewhere
RAM dumps (Debug builds, F9) ram-dumps/ next to settings.json
Server data PostgreSQL (Docker volume acidboy-db in development)
Server secrets dotnet user-secrets (development) or environment variables