SportsRecomp
============
Play your own copy of Wii Sports on a Windows 10 or 11 PC.
Built on ResortRecomp's, PartyRecomp's and Party9Recomp's launcher and
runtime by Lane Carle (crazyman12).

SportsRecomp contains NO part of the game: no code, no pictures, no sounds,
nothing made from them. You need your own Wii Sports disc (USA, RSPE01,
revision 1), copied to your PC as a disc image, and Dolphin installed (only
its DolphinTool is used, to extract the disc). The launcher then translates
your copy into a PC program and builds it, here, on your own PC.

Wii Sports is Nintendo's. SportsRecomp isn't made, sponsored, or endorsed by
Nintendo.

STATUS: EARLY VERSION (0.1.0). See "WHAT'S BEEN TESTED" at the end.


FIRST TIME
----------
1. Keep this folder somewhere with about 4 GB free (not inside Program Files).
2. Open Launcher.exe.
3. Play tab: pick your disc image, and DolphinTool.exe from your Dolphin
   folder under "Disc tools". Press "Set up the game".
4. Wait. The disc is extracted (a minute), then the game's code (main.dol)
   is translated and built with the compiler in the builder folder: about
   10 minutes.
5. Press Play.

CONTROLLERS AND MULTIPLAYER
---------------------------
Up to four players. Wii Remotes take player 1, 2, 3 and 4 first, then
Joy-Cons and gamepads, in the order they connect (even mid-game). The
keyboard and mouse always play as player 1 too.

Wii Remotes: pair each one once (Launcher > Wii Remote tab), then play as on
the Wii: every swing, throw and punch is the remote's own motion, and its
Nunchuk works for Boxing. No sensor bar is needed for the menus: a Wii Remote
Plus or MotionPlus points with its gyro. Hold it still for a moment after it
connects, then point at the middle of the screen and press A to centre it.
C re-centres, F9 / F10 flip left-right / up-down. A plain Wii Remote points
by tilting it.

Nintendo Switch Joy-Cons: pair them once (Launcher > Joy-Con tab: hold the
sync button on the rail until the lights move, then click "The lights are
moving"). Hold the right Joy-Con upright like a Wii Remote, top towards the
screen, and swing it like one:
  A = A   ZR = B   stick = d-pad   Y = 1   B = 2   X = -   + = +
  HOME = HOME   R or pressing the stick re-centres the pointer
With both connected, the left Joy-Con is the Nunchuk (stick, ZL = Z, L = C).
A left Joy-Con on its own is a Wii Remote (right arrow = A, ZL = B).

Gamepads (Xbox, PlayStation, Switch Pro and others):
  A = A   B or right trigger = B   X = 1   Y = 2   Start = +   Back = -
  Guide/PS/Home = HOME   d-pad or left stick = d-pad
  right stick = pointer (click it to centre); a pad with a gyro points by
  turning it, and its accelerometer swings like a remote
  LEFT BUMPER = the sport's main swing   RIGHT BUMPER = the other swing

Keyboard and mouse:
  mouse = pointer, left click = A, right click = B
  Z = A   X = B   1, 2   Enter = +   Backspace = -   H = HOME   arrows = d-pad
  SPACE = the sport's main swing   V = the other swing   F = left punch
  Boxing: G guards the face, T the body, A and D lean (dodge)
  hold the MIDDLE MOUSE BUTTON and flick the mouse to swing it like a remote
  N plugs the Nunchuk in or takes it out, I J K L its stick, Q = C, E = Z

The swings, sport by sport (Space / left bumper, then V / right bumper):
  Tennis    forehand / backhand; serving, press once to toss the ball
            and again to hit it
  Baseball  swing the bat; time it to the pitch. Pitching, it throws
            (hold A or B as on the Wii for other pitches)
  Bowling   hold to step up (B is held for you), let go to bowl;
            A and D twist the remote for spin
  Golf      hold: the golfer steps up to the ball, then the longer you hold
            the harder the shot (just short of full power at the longest);
            let go to swing. V makes a practice swing
  Boxing    right punch / left punch (F too). G or the d-pad up guards
            the face, T or the d-pad down the body

THE MOUSE AS THE POINTER
Move the mouse over the game window and it points for player 1, even with a
Wii Remote or gamepad in player 1's hands. It keeps the pointer while you
hold it still, until the remote or pad itself points somewhere else; move the
mouse again to take the pointer back.

THE FIRST TIME YOU PLAY: STUTTER
--------------------------------
The first time each scene appears, your graphics card has to prepare the
shaders it draws with, and the game waits for them. They're kept (in
%APPDATA%\Wii Sports Recomp), so from then on that scene loads and plays
smoothly.

ONLINE
------
Launcher > Online. Everyone plays the host's game and save; only controller
input travels, so it stays smooth. Input delay is measured when everyone has
joined: about 50 ms on a home network. Each PC plays as one player.
The easiest way is a relay server (no port forwarding for anyone but the
relay's computer). It runs on Ubuntu or Windows: see relay\SERVER-SETUP.txt,
or on Windows just double-click relay\Start relay.bat. A relay you already
run for Wii Sports Resort, Wii Party or Mario Party 9 works for Wii Sports
too.

YOUR SAVE
---------
Kept in the "save" folder here. Play tab > Save data exports and imports it.

WHAT'S IN THIS FOLDER
---------------------
Launcher.exe            the launcher
PairRemote.exe          pairs a Wii Remote with Windows
PairJoyCon.exe          pairs Nintendo Switch Joy-Cons with Windows
builder\                the translator (DolRecomp), the runtime as source,
                        the graphics library, and a C compiler (GCC)
relay\                  the online room server, and how to run it
licenses\               the licence of every part (GPL-3.0)
*.dll                   libraries the game and launcher use
After setting up, you'll also have: game\ (your extracted disc),
SportsRecomp-Game.exe (your build), save\, and build-log.txt.
Don't share those: they're made from your copy of the game.

WHAT'S BEEN TESTED
------------------
Played by test scripts on this build:
- Boot, the health screen, the title, the main menu, the player count, Mii
  select and handedness, saving.
- Bowling: throws with the swing key, spin, pins, scoring and replays.
- Golf: course select, the tutorial, practice swings, and strokes onto the
  green with the power under control.
- Baseball: the intro, batting (fouls and strikes), and pitching after
  three outs (strikes and a strikeout).
- Tennis: serves (toss, then hit) and returns in a rally.
- Boxing: the tutorial, punches from both hands landing, and both guards
  (face and body) from the keyboard.
- Online: two players through a relay, on to Bowling and a throw, with 0
  desyncs in 10,600 fields and both players' pictures identical.

- A real Wii Remote Plus: connects in the game window, its buttons and
  tilt reach the game.

Not yet tried: a full sport with a real Wii Remote, and Joy-Cons. Please
report anything that goes wrong.
