Skip to content
shoedlerPublic

About

A multiplayer fitness party game for the Wahoo KICKR CORE smart trainer, made with Godot

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

WATTLANDS: pixel-art scenes from the four games, with the name across the middle

Wattlands

Multiplayer games for a smart trainer. You pedal, and the trainer pushes back with whatever the game is doing: a fish pulls on the line, a shell forces a sprint, a wave of attackers becomes an interval. It runs on Windows 10/11 with a Wahoo KICKR CORE or KICKR CORE 2.

Four games share one app. Someone hosts and reads out a room code, friends join with it, and bots can fill the empty seats. There are no accounts. Every target is a percentage of your own FTP, so riders of different strength can share a session.

Riders
Turbo Reel 1-4 Sport fishing on a shared ocean
Castellum Rotae 1-4 Co-op tower defense, powered by treadwheels
Workout 1-8 Group intervals on a country road
Torque Company 1-4 Crew a pedal-powered landship at night

Getting started

Download the Windows zip from the releases page, unzip the whole folder and run Wattlands.exe. Close Zwift, the Wahoo app and anything else that might hold the trainer, and keep the trainer's firmware current.

Then pedal. Twenty seconds of pedaling on the title screen creates a profile and starts a ride, and every game plays through to the end without a keyboard. FTP is the power you can hold for about an hour. A new profile starts at 200 W: set yours in the profile or run the FTP test in Settings. Until it's verified, ERG targets are 15% lower. In ERG the trainer holds a set power however fast you spin. In SIM it acts like a road with a grade, and you shift gears.

  • Pedal navigation (in Settings) is for riding with no keyboard in reach. The focus moves by itself, a short surge picks, and coasting for 3 s goes back, except during an ERG phase.
  • The ride menu (Esc or P) can discard a ride so nothing from it is kept. It asks first, and Yes needs the keyboard or a controller. If you're hosting, that ends the session for everyone, though the others keep their rides.
  • Heart rate: pair a Bluetooth strap in Settings > Trainer > Sensors. It shows next to your power and goes in your FIT file. Other riders never see it.
  • No trainer? Run Wattlands.exe -- --mock-trainer from a terminal in that folder (or use Settings > Trainer > Use the mock trainer) to ride a simulated rider, and add --mock-keyboard to steer it. docs/TRAINER.md has the keys.

The games

Turbo Reel

Turbo Reel: a boat fights a giant grouper over an old wreck, with the fight panel showing target watts, cadence band and line

Pedal your boat out of the harbour, past the shallows and the reef, to the deep water where the big fish live. Cast at a fish you can see and the fight starts. The trainer holds the fish's pull in ERG and your cadence does the work: too slow and the line snaps, too fast and the hook comes out. Get the fish to the boat and you have 15 s to sprint for the gaff. Fill the meter and it's a Trophy, worth half as much again.

Free Roam is a race for points over 10 to 60 minutes. While your lure is out you can jig it home: hold 40% of your FTP or more and the wait for a bite drops from about 30 s to about 15. The big game trip is a hard 30 minutes on its own map, where nothing lives but yellowfin tuna and giant grouper and both bite from the first cast. Workouts follow a plan and everyone scores together. Other riders' fights show on your screen, with their fish, line and watts.

Castellum Rotae

Castellum Rotae: the fort with four colored treadwheels driving its weapons, a siege tower on the road and the HUD on

A Roman fort has one gate and one road leading to it, and attackers are coming down that road. Each rider turns a great treadwheel and couples it to the gold mine, the tree ballista, the great onager, the arrow organ or the tar works.

Waves are ERG intervals, and the breaks between them are for recovering and shopping. What you pick goes on a receipt the whole room sees. Anyone can vote an item off, and whatever is left when the break ends is bought. Overdrive is a 30 s sprint that doubles your output as long as you hold your FTP. A session takes 31 to 55 minutes.

Workout

Workout: four riders under a SPRINT gantry with a crowd at the roadside, and the HUD plates on

The plain one, and the one for up to eight. Everyone rides the same timeline at their own percentage of FTP, on a country road that goes from the blue hour to full daylight. A crowd and a gantry turn out for scored sprints.

Sessions run 28 to 40 minutes: an easy ride with three sprints, sweet spot, threshold, VO2 and a rolling road. To ride your own, drop .zwo files in %APPDATA%\Godot\app_userdata\WATTLANDS\workouts and pick them under Ride in the lobby.

Torque Company

Torque Company: the split screen, with the landship in a cutaway on the left, enemy tanks far off on the right, a shell in flight and a SURGE TO EVADE warning

Up to four riders crew a landship through a forest at night. The enemy stands 800 to 2400 m away, so the screen splits: your tank and the road on one side, a long-lens view of the enemy on the other. There are six seats (Drive, Gun, Loader, Lights, Secondaries, Repairs), each with its own feel on the trainer, and you can change to any seat that is free or held by a bot.

A mission opens with 3 minutes in a hangar, the tank up on a stand with its tracks spinning in the air while you try the seats, then a 2 minute roll-out through the door. Both are warm-up. Out on the road, a telegraphed shot glows for at least 6 s before it lands. On a SIM seat (Drive, Loader, Secondaries), holding a sprint for 2 s makes it miss, 3 s against the Behemoth. There's no button for it.

The host picks Easy, Normal or Hard, which changes the enemy and the repair rate, never your effort plan or its limits. Ambush takes about 15 minutes, and on its default Hard you should expect to lose the tank once or twice. The ride carries on regardless. Ashfall Road takes 30 to 41 minutes, and free roam 10 to 60.

Riding safely

This is hard exercise on a machine that pushes back. You ride at your own risk, and the software comes with no warranty (LICENSE). If you're not sure hard efforts are right for you, ask a doctor first.

Everything that changes the load goes through one safety governor on your own PC. Other riders' machines can only ask, and yours decides. These are the limits it holds in every game:

Ramps In ERG the target rises by at most 30 W per second and drops at once. The one exception is a haptic pull, which adds up to 50% of FTP at once for at most 3 s. In SIM the load follows the grade, and haptics add at most +3% for at most 8 s. Settings > Haptics turns all haptics off.
Warm-up For your first 5 minutes of riding, ERG stays at or under 65% of FTP, grade between -2% and +3%, and haptics are off. The count starts at your first pedal stroke and starts over after 20 minutes off the bike. You can skip this in your profile.
Rescue In ERG at 60% of FTP or more, if cadence falls under 45 rpm for 3 s or power under 75% of target for 5 s, the target drops to 50% of FTP. Back at 70 rpm for 3 s and it ramps up again over 10 s. A game never ends your ride for this.
Hard efforts ERG tops out at 150% of FTP, with at most 5 minutes above 105% and 1 minute above 120%. After that it holds you down until you've ridden 2 minutes at 90% or less. The FTP test lifts these limits up to 1000 W or your trainer's maximum, since it ends when you fade.
Coasting After 3 s, ERG drops to 30% of FTP or 50 W, whichever is higher. After 10 s a solo ride pauses until you pedal again. In a group you're marked away, and the game only stops once every rider has.
Panic Hold Backspace for 1 s, or View + Menu on a controller. The app sets the trainer to a flat road at once and holds it there until you resume.
Exit The app sets the trainer flat and lets go of it.

The app can only do this while it's running and connected. After a crash, a killed app, a PC going to sleep or a lost Bluetooth link, the trainer may keep its last load. Stop pedaling, and switch the trainer off at the wall if you need to.

Keep the trainer's firmware current: before version 1.5.5, a switch between ERG and SIM could spike to 2000 W.

None of this replaces your own judgement. If something feels wrong, stop pedaling.

Playing together

Someone chooses Host a room, picks a game and reads out the room code. Everyone else chooses Join a room and types it. On one network that's all: the host's PC runs the room and the others find it by its code. The first time, Windows asks to let Wattlands through the firewall on every PC. Allow it, and tick public networks too if Windows counts yours as one (later it's under Windows Security > Firewall > Allow an app). Everyone on that network can see your room and its code, so host on networks you trust.

If a friend's PC can't find the room, or they're elsewhere and share a VPN with you (Tailscale is the easy one), the host's lobby shows an address such as 192.168.1.20:8790. They enter it in Settings > Network > Relay and join with the code. Clear that setting to go back to finding rooms on your own network.

Everyone needs to be on the same release, and the lobby says so if you aren't. If you drop out you have two minutes to rejoin with the same code. If the host's app closes, the session ends and everyone keeps their ride.

For friends elsewhere with no VPN, one of you can run a small relay on a machine everyone can reach. It needs this repository and Node 22.18 or newer, and listens on port 8787:

node server/relay/src/main.ts

Everyone then sets Settings > Network > Relay to ws://<relay address>:8787/v1, or wss://<host>/v1 for a hosted one. With a relay, a host who drops out gets two minutes to come back before the room closes. Its README covers hosting, limits and settings.

Controls

Keyboard Xbox controller
Move Arrows or WASD Left stick or D-pad
Confirm / Back Enter or Space / Esc A / B
Ability 1 / 2, Item, Swap 1 / 2, F, R X / Y, RB, LB
Virtual gears down / up Q / E LT / RT
Pause P Menu
Panic Hold Backspace 1 s View + Menu
Help F1 Left stick click
Fullscreen F11 or Alt+Enter

Rebind them in Settings > Controls. Zwift Click and Play buttons can map to these keys through BikeControl.

Your rides and Strava

Every ride is saved as a FIT file in %APPDATA%\Godot\app_userdata\WATTLANDS\rides. To upload to Strava, create your own API application at https://www.strava.com/settings/api with the callback domain localhost, enter its Client ID and Secret in Settings > Strava, and choose Connect. Then upload from the results screen or turn on auto-upload.

If something doesn't work

  • "Another app may hold control": close Zwift, the Wahoo app and any other trainer app, then reconnect.
  • The trainer won't connect: remove any Windows Bluetooth pairing of it, keep it close and update its firmware. Wattlands talks to it over FTMS.
  • No Bluetooth trainers show at all on a fresh PC: install the Visual C++ x64 runtime.
  • Friends can't find your room: check the firewall on both PCs and that you're on the same network, then try the address the lobby shows. With a relay, check it's running and that everyone's Relay setting points at it.

Contributing

The game is written in Godot 4.7.2 and GDScript. Art and sound are built from code and recipes in this repository, with no sample packs and no image or audio service at runtime. The one starting point that isn't code is the reference image behind Torque Company's landship and forest, made from a prompt, which scripts rebuild as pixel art.

CONTRIBUTING.md gets you from a clean clone to a pull request, with or without a trainer. To find your way around, start at docs/README.md. What changed and when is in the changelog. To report a safety or security problem, see SECURITY.md.

License

MIT, see LICENSE. Third-party code and assets are listed in CREDITS.md, docs/DEPENDENCIES.md and docs/THIRD_PARTY_NOTICES.txt.

About

A multiplayer fitness party game for the Wahoo KICKR CORE smart trainer, made with Godot

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages