Skip to content

About

Mario Forever with rollback netcode

Resources

Stars

10 stars

Watchers

0 watching

Forks

Repository files navigation

Klawiatura

Klawiatura (a.k.a. Mario Together) is an enhanced port of Mario Forever 4.0, written in plain C.

Check out the releases or play in your browser to get started.

Features

  • Online multiplayer with up to 8 players
  • Basic mod system with custom levels and worlds
  • Native support for Windows, Linux, and web browsers
  • Keyboard and gamepad support

Restorations

  • Original map screens (1.16.1 - 3.0)
  • Checkpoints in main worlds (4.4+)
  • Hammer Bro fights (5.08+)
  • Koopa Troopa Liberation, Starman Running and World of Stupidity (4.4 - 6.0+)

Enhancements

  • Stereo sound panning
  • Minor graphics and audio fixes
  • Improved physics and interactions

Multiplayer

Note

If you have trouble connecting to lobbies, check NutBlast's troubleshooting section.

Multiplayer is the main kicker of this project. You can host and find lobbies through NutBlast master-servers. Lobbies can hold up to 8 players. If you aren't satisfied with the public master-server instance, you can host your own NutBlaster and set your server address to it in the settings.

Make sure your game's version and checksum match with other players you want to play with. Your checksum is only affected by mods that have level and/or world files and the order in which they are loaded. Lobbies are filtered based on your game's version and checksum.

If you're going to update Klawiatura by overwriting your older build, clear your data folder first so you don't get any incorrect checksums.

Tip

Discord integration is available for 64-bit Desktop builds. You can invite other players to your lobbies through Discord, as long as they can connect to the same NutBlaster as you.

Launch options

You can adjust Klawiatura with these launch options:

Command Arguments Description
-d, -data <path> Sets the data folder path to load mods from. Note that every folder in this path will be considered a mod and will be loaded in alphabetical order.
-s, -force_shader Skip checking supported OpenGL extensions. Useful if running under RenderDoc or WSL, where the checks fail even if the game runs fine otherwise.

Building This Yourself

In order to build this, you will need a C/C++ compiler and CMake installed on your computer, as well as the libraries listed below. Make sure to download, install, and familiarize yourself with the aforementioned tools before you proceed.

Note

If the SDK is not present, Discord integration will be disabled.

Move the discord_social_sdk folder from their ZIP download to external/discord.

Compiling

Once you have the tools and libraries ready, executing the build is simple:

cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
cmake --build build --config Release

The resulting binaries should now reside in build or build/Release, depending on which build-system CMake generated configuration for. There will be junk in the directory, but you only need the following files to run Klawiatura successfully:

  • data
  • discord_partner_sdk.* (64-bit only)
  • Klawiatura.*
  • soundfont.sf2
  • gamecontrollerdb.txt

Considerations

Listing some of the things we learned the hard way that you should consider:

  1. Under MSVC, only RelWithDebInfo and Release builds are available. CRT is also statically linked, so checking for memory leaks with heob is not possible unless you build with GCC.
  2. Under Emscripten, Debug builds may be rejected by the browser due to yyjson functions generating too many local variables.

Attribution

This project's source code is public-domain under the terms of the Unlicense. Refer to the provided copy of the license for more info.

This is a free, open-source project not created for any sort of profit. We do not condone any commercial use of this project.

Mario, related characters and original assets belong to Nintendo. Mario Forever is an unofficial fangame created by Buziol, and all of the custom assets that form Mario Together, which is built on top of Mario Forever, are created by individuals and communities listed in the game's main menu credits.

Copying, modifying, and/or porting this project does not make the aforementioned materials your work.

About

Mario Forever with rollback netcode

Resources

Stars

10 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages