AcidBoy Online in the emulator
Main menu → Online… connects to an AcidBoy server (default http://localhost:5280, changeable
under Online → Server or with --server). Everything here uses the server’s
REST API, its lobby hub and its link relay.
Signing in
Section titled “Signing in”| Option | How it works |
|---|---|
| GitHub, Discord, Google | AcidBoy opens your browser at the server’s sign-in page, waits on a loopback port, and receives a one-time code (OAuth with PKCE, see Authentication) |
| Developer | Development servers only: just a name, no password |
- Staying signed in: the sign-in is remembered as a refresh token in
settings.json, encrypted with DPAPI on Windows and in a user-only file elsewhere, until you choose Sign out. --serverruns: with--server, the sign-in is not saved, because it belongs to that server.- Banned accounts: sign-in is refused with the reason and the end date.
The Online menu
Section titled “The Online menu”| Item | What it does |
|---|---|
| Unplug link cable | Shown while linked; ends the link (the other player is told) |
| Challenge from X… | An open challenge (also answerable with Y/N from the pop-up) |
| Back to lobby… | The channel or room you are in |
| Channels… | Public lobbies with player counts (General, Pokémon Gen 1/2, Tetris, plus any an admin creates) |
| Private room… | Create a room (optionally with a password) and share its 6-character invite code, or join one |
| Friends… | Requests to accept or decline, friends with their status, find players by name |
| Match history… | Every match with a W/L/D badge and the score |
| My records… | Your wins, losses and draws per game |
| Leaderboards… | The top players per game, ranked by verified match wins |
| Sign out |
![]() Online menu |
![]() Channels |
Lobby screen
Section titled “Lobby screen”- Players: the screen lists the players in your channel or room with their loaded game and status (Linked).
- Player actions: pick a player to Challenge to link, Add friend, Invite to my room (friends) or remove them.
- Restriction while linked: you can’t challenge while you are linked; unplug first.
Challenges
Section titled “Challenges”- The challenged player gets a pop-up: “X (POKEMON RED) wants to link with you”, Y accepts and N declines.
- It expires after 30 seconds.
- On accept, both emulators plug their cable into the server’s relay and the link starts. Online links always use the Internet sync setting.
![]() An incoming challenge |
![]() Linked through the relay |
Press T to open the chat over the running game:
- The game keeps running while you type, with its buttons released.
- Keys: Enter sends and keeps the line open. Enter on an empty line, or Esc, returns to the game. PgUp/PgDn, the mouse wheel and End scroll.
- Notices: joins and leaves appear as dimmed lines.
- While the chat is closed: new messages show briefly in the bottom-left corner with an unread count.
- Limits: messages are up to 200 characters, 5 messages per 5 seconds. Muted players are told until when.
Notifications
Section titled “Notifications”Pop-ups in the top-right corner show server and moderator messages:
- friend requests and friends coming online;
- kicks, mutes and bans;
- a closed channel;
- the end of a set: “You won the set 5-3 (Tetris)”.
Challenges and invites stay until answered with Y/N or until they expire.
Match history
Section titled “Match history”Each match shows the opponent, the game, the score and a badge:
- [W] won;
- [L] lost;
- [D] draw.
Opening one shows:
- both games, when it started and how long it lasted;
- how it ended and who ended it;
- every round, battle and trade, marked Verified (both emulators saw it) or One side only (it doesn’t count).
![]() Match history |
![]() A match |
See Win detection for which games report results and Data model for how a winner is decided.
Code map (Online/)
Section titled “Code map (Online/)”| Type | Role |
|---|---|
OnlineClient |
Sign-in, token refresh, REST calls, the SignalR hub connection; mirrors the lobby for the menus. Used from the main thread only; background work posts results through Poll(). Version counts changes for LiveMenuScreens |
OAuthLoopback |
Browser sign-in: loopback TCP listener, PKCE verifier/challenge, state check |
SecretProtector |
DPAPI protection of the saved refresh token |
OnlineMenus |
All Online screens |
ChatOverlay |
The chat panel, unread badge and peek feed |
MatchResults |
Describes results from the player’s side (“Round 3: you won (2-1), Pikachu vs Squirtle”) |
Games/ |
Result trackers |
DesktopApp connects the pieces:
StartOnlineMatchbuilds aNetworkLinkoverOnlineClient.OpenRelayAsyncwhen the server sendsMatchReady;TrackGameResultsreports what the tracker sees;OpenChatopens the chat overlay.






