bros35

bros35 is a native PC port of Super Mario Bros. 35 for Windows, macOS, and Linux that brings back 35-player battles and offline course practice.

README

bros35

release downloads Discord Patreon Ko-fi Buy Me a Coffee

bros35 runs Super Mario Bros. 35 (Nintendo Switch, 2020) natively on Windows, macOS (Apple Silicon) and Linux, including the Steam Deck, with an experimental Android build. The game's code is statically recompiled from your own copy of the game.

Nintendo shut the game's servers down on March 31, 2021. bros35 brings 35-Player Battle back: against real players on a bros35 server, against 34 bots on your own computer, or both, and Course Practice works offline with every course open.

Chat and news: the project's Discord server, https://discord.gg/RYY2vqNapH (bug reports and feature requests go on Issues, below).

No game files are included. You need your own copy of Super Mario Bros. 35 for Nintendo Switch, version 1.0.2.

How online play works

Online play works out of the box: a public bros35 server is set by default. Bot matches (Settings > Gameplay > Online) decides where each 35-Player Battle is played and against whom:

Bot matchesWhere the battle isWho you playWhen it startsInternet
Auto (default)On the server when someone is waiting there; otherwise on your computerReal players, with the server's bots in the empty places - or 34 botsWhen the lobby's wait runs out - or at once against botsOnly to ask the server
AlwaysOn your computer34 botsAt onceNo
NeverOn the serverReal players, with the server's bots in the empty placesWhen the lobby's wait runs outYes
Players onlyOn the serverReal players only - the empty places are out at "GO!", as on Nintendo's serversWhen the lobby's wait runs out, with at least 2 playersYes
  • Wait for players sets how long you wait in a server's lobby: see Waiting for players below.
  • If anyone in a lobby chose Players only, that battle has no bots, for everyone in it.
  • Any bros35 server works: enter its address in Settings > Gameplay > Online, or Reset server for the public one. To run your own, see Running a server. Blank: every battle is against bots on your computer.
  • Course Practice is always offline.
Waiting for players

Each player picks a wait in Settings > Gameplay > Online (Wait for players: 5 seconds to 1.5 minutes). A player's wait starts when they join the server's lobby, and the lobby starts its battle as soon as the first of its players' waits runs out - so nobody waits longer than they chose, and everyone who joined before then plays in that battle.

The lobbyThe battle startsThe empty places
Real players on Auto or NeverWhen the first player's wait runs outThe server's bots fill them
Anyone in it on Players onlyWhen the first wait runs out, once at least 2 players are inOut at "GO!" - no bots
Alone, on Players onlyNot yet: you keep waiting on "Matching..." until someone joins (Cancel leaves)-
34 real playersAt once-

For example, with one player on 30 seconds and one on 1 minute:

Who joins firstSecond player joinsWhat happens
30 s player, at 0:001 min player, at 0:20The 30 s wait runs out at 0:30: the battle starts with both.
1 min player, at 0:0030 s player, at 0:10The 30 s wait runs out at 0:40: the battle starts with both.
1 min player, at 0:0030 s player, at 0:45The minute runs out first, at 1:00: the battle starts with both.
30 s player, at 0:001 min player, at 0:35That lobby closed at 0:30; the second player opens a new one.

A player on Auto goes to the server only when someone is already waiting there, so they always join an open lobby; Always never waits - its battles against bots start at once.

Reporting a problem

Please report bugs and request features on the Issues tab - not on Discord or anywhere else - with its Bug report or Feature request form. The bug report form asks for:

  • The log from the play session where the problem happened: bros35.log. Each start writes a new one and moves the one before to bros35.previous.log, so attach bros35.log before you start bros35 again - or bros35.previous.log if you've started it once since (started twice since: that log is gone - make the problem happen again). Where it is:
    • Windows: in the bros35 folder, next to bros35.exe
    • macOS: ~/Library/Application Support/io.github.bros35
    • Linux and Steam Deck: ~/.local/share/bros35
    • Android: Android/data/io.github.bros35/files on the phone's storage
  • The version (bottom of the start screen, such as v1.0.0).
  • What happened, and where: a battle (on a server or against bots), Course Practice (which course), a menu.
  • How to make it happen again, if you know.
  • Your setup: the controller (and whether you started bros35 from Steam), the display and its aspect ratio, your CPU and GPU.
  • Screenshots or a video, if you have them.

Features

Playing

  • 35-Player Battle online on a bros35 server: the players waiting there are matched together. A public server is set by default; anyone can run their own (docs/server.md) and enter its address in Settings > Gameplay.
  • Bot matches (Settings > Gameplay > Online), each battle's choice of opponents:
    • Auto: joins the players waiting on the server; when nobody is, a battle against 34 bots on your computer starts at once.
    • Always: every battle against 34 bots on your computer - no internet needed.
    • Never: every battle on the server; after your wait (Wait for players), the server's bots fill the places nobody took.
    • Players only: real players only, as on Nintendo's servers - no bots. After your wait the battle starts with everyone in the lobby; alone, you wait until someone joins.
  • Wait for players (Settings > Gameplay > Online): how long you wait in a server's lobby for other players - see Waiting for players.
  • The bots play the game's rules: they target players and each other, send the enemies they defeat, and drop out over the match - sooner the ones your enemies reach, which counts as your KO. Some replay runs you recorded earlier, so their tiles move.
  • Spectating after a knockout, as in the original.
  • Course Practice offline, with every course open.

Controls

  • Any controller SDL knows: Xbox, PlayStation, Switch, the Steam Controller and most others, plus keyboard. The game's own button prompts are redrawn with your controller's buttons (or keys).
  • Menus go by the button labels: A / Cross confirms and B / Circle goes back on any controller (Settings > Controls > Face buttons changes that).
  • In a course the face buttons are laid out as on a Switch controller - the bottom one jumps, the left one runs. Settings > Controls has a diamond of the four buttons: set each to Jump, Run, Item roulette or Nothing.
  • Every button and key can be rebound.
  • Keyboard: WASD or the arrows move, Left Shift jumps, Left Ctrl runs, X uses the item roulette, Tab and Esc are the game's + and -.
  • bros35's own menu: F1, or on a controller both sticks pressed in, Back + Start, or the Home / Guide button.

Video

  • Internal resolution up to 4K, SMAA anti-aliasing, AMD FSR upscaling, V-Sync and HDR.
  • Ultrawide (21:9, 32:9): the game's screen stays in its 16:9 shape in the middle, its background filling the sides.

And

  • Discord status: your Discord profile shows that you're playing, and what - a battle (players left, your KOs) or Course Practice (the course) - with a "Join the Discord" button under it. Settings > Gameplay turns it off, and has the invite too.
  • Game files from your own dump: the extracted exefs and romfs folders, or a .nup package (the NUP format).
  • Updates from the start screen (Windows and the AppImage install them in place).
  • Portable on Windows: everything bros35 writes stays in its folder.

Requirements

  • Windows: Windows 10 or 11, 64-bit.
  • Linux: a 64-bit x86 distribution with glibc 2.35 or newer (Ubuntu 22.04, Debian 12, Fedora 36, Arch, SteamOS on the Steam Deck, ...).
  • macOS: a Mac with Apple Silicon (M1 or newer).
  • Android (experimental): a 64-bit ARM phone with Vulkan 1.3 (Android 13 or newer) - see Android.
  • A CPU with SSE4.2 (AVX2 runs the game code faster) and a GPU with a Vulkan 1.3 driver.
  • About 1 GB of disk space once set up, plus about 2 GB while the setup builds the game code.
  • Your own Super Mario Bros. 35 v1.0.2 game files: the exefs and romfs folders of the game with its 1.0.2 update, extracted from your own dump with your usual Switch tools, or a .nup package of it. bros35 never asks for keys.

Getting started

Windows
  1. Download bros35-v1.0.0-windows.zip from Releases and extract it somewhere you can write to (Documents or a games folder - not Program Files).
  2. Run bros35.exe. On the start screen, choose your game files folder (the one holding exefs and romfs) or your .nup package, then Set up. It copies what it needs and recompiles the game on your PC: once, and it takes several minutes.
  3. Press Play.
macOS (Apple Silicon)
  1. Download bros35-v1.0.0-macOS.dmg from Releases, open it and drag bros35 onto Applications.

  2. bros35 isn't notarized by Apple, so macOS won't open it as downloaded. Open Terminal once and run:

    xattr -dr com.apple.quarantine /Applications/bros35.app
    

    This clears the "downloaded from the internet" mark from the app and from the tools inside it that recompile the game: without this, macOS stops them. Do it again after each update.

  3. Open bros35, choose your game files and Set up, then Play.

Everything it writes goes to ~/Library/Application Support/io.github.bros35. The first time each effect appears, MoltenVK compiles its shader for Metal, which can show as a brief hitch.

Linux
  1. Download bros35-v1.0.0-linux-x86_64.AppImage from Releases and make it executable (chmod +x, or in your file manager: Properties -> Permissions -> executable).
  2. Run it, choose your game files and Set up, then Play.

Everything it writes goes to ~/.local/share/bros35. If the AppImage won't start with a FUSE error, install your distribution's fuse3 package.

Steam Deck
  1. In Desktop Mode, put the AppImage in your home folder (for example ~/Games/bros35/), right-click it -> Properties -> Permissions -> "Is executable", and copy your game files onto the Deck or its SD card.
  2. Run the AppImage, choose your game files and Set up (once; it takes a while on the Deck). Do this in Desktop Mode: the file picker is a desktop dialog.
  3. Add it to Steam: Games -> Add a Non-Steam Game to My Library -> Browse (set the file type to "All Files") -> the AppImage. It then starts from Game Mode.
Android

The Android build is experimental and hasn't been tried on a phone yet. A phone can't run the setup (it builds the game code with a compiler), so the game code is built on a computer and copied over with the game files: docs/android.md has the steps. Controls need a controller.

Starting without the start screen

--play goes straight into the game (for Steam's launch options, Playnite and other launchers). Until the game files are set up, the start screen opens as usual.

Running a server

bros35-server is the server 35-Player Battle plays on: plain C with no libraries besides the system's, as a program, a Linux service or a Docker container. docs/server.md explains it and its options; server/cloud/DEPLOY.md puts it on a small cloud machine.

Credits

bros35 is built on PrimeRecomp, the Metroid Prime Remastered recompilation, itself a fork of LAS Recomp (MIT).

Legal

bros35 is a fan project. It is not affiliated with, endorsed by or sponsored by Nintendo or Arika. Super Mario Bros. and Super Mario Bros. 35 are trademarks of Nintendo. No game files, game code, assets or fonts of the game are included - not in this repository and not in release builds. You must provide your own legally obtained copy of the game. Online play is only on bros35 servers.

License

bros35's code is open source under the MIT License (copyright Peiikai, and the PrimeRecomp and bros35 contributors for their changes). Third-party components keep their own licenses: Dear ImGui (MIT), Vulkan Memory Allocator (MIT), SMAA (MIT), AMD FSR 1 (MIT), AMD's FSR API headers (MIT), AMD's FSR 3 / 4 runtime in the Windows release (AMD's license, binary form only: AMD-FSR-LICENSE.md next to the executable), bcdec (MIT), miniz (MIT), code ported from Ryujinx (MIT), the Press Start 2P and Rubik fonts (SIL OFL 1.1), SDL 3 (zlib), FFmpeg (LGPL 2.1+, linked dynamically), shaderc (Apache 2.0), OpenSSL (Apache 2.0), zstd (BSD), the Zig compiler (MIT; its LLVM / Clang / LLD: Apache 2.0 with LLVM exceptions; its C library headers keep their own licenses) and the game code generator helper's bundled libraries listed below (Unicorn is under the GPL: the helper is a separate program the setup runs, and its sources are this repository plus Unicorn's published sources). The license covers bros35's code only - it grants nothing for Nintendo's game, which you must supply yourself.

Source code of bundled third-party components

The Windows release includes these components; their source code for the exact versions shipped is available here:

ComponentVersionLicenseSource
FFmpeg (LGPL configuration: only the codecs the game's movies use)9.0.2LGPL 2.1+https://ffmpeg.org/releases/
SDL 33.4.18zlibhttps://github.com/libsdl-org/SDL/releases/tag/release-3.4.18
shaderc (GLSL to SPIR-V)2026.4Apache 2.0https://github.com/google/shaderc
OpenSSL (online play; linked in)3.6.5Apache 2.0https://github.com/openssl/openssl/releases/tag/openssl-3.6.5
zstd (.nup packages; linked in)1.5.7BSDhttps://github.com/facebook/zstd/releases/tag/v1.5.7
libiconv (used by SDL 3)1.19LGPL 2.1+https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.19.tar.gz
GCC runtime: libgcc, libstdc++16.2.0GPL 3.0 with the GCC Runtime Library Exceptionhttps://gcc.gnu.org/
winpthreads (mingw-w64)14.0.0MIT / BSDhttps://www.mingw-w64.org/
Zig (builds the game code during setup; includes LLVM, Clang, LLD)0.17.0MIT; LLVM: Apache 2.0 with LLVM exceptionshttps://ziglang.org/download/0.17.0/zig-0.17.0.tar.xz
PyInstaller (packs the game code generator)6.22.3GPL 2.0+ with bootloader exceptionhttps://github.com/pyinstaller/pyinstaller/releases/tag/v6.22.3
CPython (game code generator)3.12.10PSFhttps://github.com/python/cpython/releases/tag/v3.12.10
Capstone (game code generator)5.0.9BSD 3-clausehttps://pypi.org/project/capstone/5.0.9/
Unicorn (game code generator)2.1.4GPL 2.0 (Python bindings: BSD)https://pypi.org/project/unicorn/2.1.4/, https://github.com/unicorn-engine/unicorn
python-lz4 (game code generator; includes LZ4)4.4.5BSD 3-clause; LZ4: BSD 2-clausehttps://pypi.org/project/lz4/4.4.5/
Press Start 2P font3.000SIL OFL 1.1https://github.com/google/fonts/tree/main/ofl/pressstart2p
Rubik font (SemiBold, from the variable font)2.300SIL OFL 1.1https://github.com/googlefonts/rubik
SMAA (shader and lookup textures, built in)2013 (repository master)MIThttps://github.com/iryoku/smaa
miniz (its inflater, built in)3.1.2MIThttps://github.com/richgel999/miniz
AMD FSR SDK runtime: amd_fidelityfx_loader_vk.dll, amd_fidelityfx_upscaler_vk.dll (AMD's signed binaries; FSR 3 / 4)2.4.0AMD's license (binary redistribution; AMD-FSR-LICENSE.md)https://github.com/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK/releases/tag/v2.4.0 (tools/fetch_ffx.sh)

The build scripts that fetch and build these (with checksums) are in this repository: tools/build_deps_windows.sh and tools/primegen.spec. The Windows build takes SDL 3, shaderc, OpenSSL, zstd, libiconv and the compiler runtime from MSYS2's UCRT64 packages (https://packages.msys2.org, which links each package's source).

The Linux AppImage bundles the same components, built from pinned sources (with checksums) in an Ubuntu 22.04 container by tools/linux/build_deps.sh and tools/linux/gen_helper.sh - FFmpeg 9.0.2 (the same LGPL configuration), SDL 3 3.4.16, shaderc 2026.3, Zig 0.17.0, PyInstaller 6.22.3, CPython 3.12.15, Capstone 5.0.9, Unicorn 2.1.4, python-lz4 4.4.5 and the fonts - with OpenSSL and zstd linked in from Ubuntu 22.04's packages. The C / C++ runtime (glibc, libstdc++), the Vulkan loader and the GPU drivers are the system's and are not bundled. The macOS app bundles SDL 3, FFmpeg, shaderc, the Vulkan loader and MoltenVK (Apache 2.0) built by tools/build_deps_macos.sh, with OpenSSL and zstd linked in from Homebrew. The Android build bundles SDL 3, FFmpeg and shaderc built by tools/android/build_deps.sh.