[MINIGAMES] Dueling Trials - Battle Blitz & Race Rivals (updated to v1.2)

Share your completed SMBX episodes or play and discuss others.

Moderator: Userbase Moderators

Zenetal
Cheep-Cheep
Cheep-Cheep
Posts: 10
Joined: Thu Nov 16, 2023 2:51 pm
Flair: Creativity is intelligence having fun

[MINIGAMES] Dueling Trials - Battle Blitz & Race Rivals (updated to v1.2)

Postby Zenetal » Fri Feb 21, 2025 5:00 pm

Image

Image

Last time updated: April 6th, 2025

Information
A local-multiplayer episode that you can play with your friends. It features 2 minigames - Battle Blitz and Race Rivals

Battle Blitz - A modern version of the SMBX 1.3 Battle Mode, where this time you are able to customize your user experience however you like. That includes custom lives count for each player, start-up power-up selections, all vehicles options, support for duplicate characters and an ability to change your players costume.
Race Rivals - Somewhat similar to Mario Kart, this is a minigame where you must stay ahead of your opponent in time or reach the finish line first. This acts more like speedrunning levels where your goal is to be as fast as possible. Similarly to Battle Blitz, this minigame is also highly configurable, featuring some basic power-up options for good balance, timer settings that let you set the amount of time you have to finish any level (disabling the timer is also an option) and duplicate characters are also supported as well as an option to change your players costume.

Development periods
This is my first episode that I've ever made and also my first time using LunaLua. Since 2018, I wanted to create a similar project like this, but mainly focused on reviving the old battle mode, which is now called Battle Blitz as a finished minigame (more information about this in the Note section). Race Rivals on the other hand, wasn't even planned until late 2024. This minigame was my side-project while I worked on Battle Blitz, so I started making 2 minigames at the same time. Lastly, I decided to merge those two minigames in an episode together, making this episode exist in the first place.

Older versions
If you want to install the latest release, the download button above is the correct link (you can still download the latest version here, it will be placed on top of the list). This list will change every time Dueling Trials receives an update. Newer versions will be placed on top and older versions will be placed on the bottom of the list. Here are all the versions placed in order:
VERSIONS: show
Latest release: v1.2
Image
Release: v1.1
Image
Oldest release: v1.0
Image

Changelog
Below is a list of what has changed over the past few versions. This will also receive changes every time the episode updates. Here are the changes:
CHANGES: show
Version 1.2:
  • Added Link in Race Rivals
  • Fixed a critical bug that caused the player to get pretty much infinite lives if a Yoshi is holding the spawned reward item
  • Removed spawned rewards for Peach, Toad and Link in Battle Blitz due to the previous critical bug
  • Replaced the old spawning reward system from Battle Blitz with a new one and it will only support Mario and Luigi for now
  • Fixed an issue where if any Yoshi picked up any 1-UP Mushroom it would add 5 to 6 lives instead of only 1 life
  • The following items are now in spawned rewards in Battle Blitz:
ㅤㅤ-? Mushroom (not new, highest chance to get)
ㅤㅤ-Clone Power-up Mushroom (new, second common item to get)
ㅤㅤ-1-UP Mushroom (new, the lowest chance to get)
ㅤㅤ-Starman (new, less common than the ? Mushroom and the Clone Power-up Mushroom but more common than a 1-UP)

  • The following items are now removed from spawned rewards in Battle Blitz:
ㅤㅤ-Mouser Bomb (removed, when Yoshi had a bomb in his mount it would increase the amount of lives rapidly)
ㅤㅤ-Ice Block (removed, would be buggy at times on collision when holding it after it has been spawned
  • If a player already has a specific power-up in his reserve box, the spawned item will not appear only if the player has any of the reserve power-ups below:
ㅤㅤ-Any Fire Flower variant
ㅤㅤ-Any Ice Flower variant
ㅤㅤ-Super Leaf
ㅤㅤ-Tanooki Suit
ㅤㅤ-Hammer Suit
  • If a player already has a specific power-up in his reserve box, the spawned item will replace the current one only if the player has any of the reserve power-ups below:
ㅤㅤ-Any Super Mushroom variant
ㅤㅤ-Any spawned reward (meaning if you for example got Starman in your reserve box, it can be replaced with another spawned reward)
  • If a player has any power-up in his reserve box and the spawned item is a Starman or a 1-UP, those two will replace any power-up in the reserve box
  • Fixed "-PAUSED-" not showing in the main menu
  • Organized the main menu slightly
  • Added a new "Statistics" option in the main menu
  • Added live tracking for total playtime, victories for each player and total coins
  • Replaced the "Restart Menu" pause menu option in the main menu with "Restart Episode"
  • Added a new "Random Minigame" option in the pause menu
  • Fixed a bug in Race Rivals where Peach or Toad would clip in lava blocks if the down key was held or while flying by disabling the damage from lava blocks
  • Replaced the old lava gimmick in Race Rivals with a new one; if you touch any lava block, you get teleported to your spawn point
  • Adjusted the Race Rivals level "Volcanic Madness" to make it support Link and fixed some impossible parts because of the lava gimmick change
  • Updated the "Random Settings" option in Race Rivals to include or exclude Link
  • Costumes will now be saved when you close SMBX2, saving you some time
  • You no longer need to delete the ".sav" and ".save" files if any issues occur, as it's not their fault anymore if anything unintentional happens
Version 1.1:
  • Added some missing visuals from all the menus (dashes in "SMW-Arena" and "SMB3-Raceway")
  • Fixed Stopwatches not working in both Battle Blitz and Race Rivals (clearly shown in the map "Chocolate Land")
  • Dueling Trials no longer interrupt Mario Challenge runs (hopefully)
  • Link is now fully disabled in Race Rivals through code until he gets fixed in the next update
Version 1.0:
  • Full release

Preview
Some screenshots:
TOGGLE: show
Image
Image
Image
Image
Image

Custom levels support

This episode supports adding custom content, including scripting in LunaLua, meaning you can create both custom Battle Blitz and Race Rivals levels. The way you add your levels is really simple; just drag and drop the level you want to add in the right folder or save your new level in that right folder and that's it. Battle Blitz levels go in the "levels-battle-blitz" folder and Race Rivals levels go in the "levels-race-rivals" folder. No need to make something like a config file and then edit it or anything similar, the game already recognizes all the levels in the folder.

[!] WARNING:

When creating your Race Rivals level, make sure to warp between sections in order. This means that both players >must< start from section 0 and then if you want you can continue to warp to multiple sections from 0 to 20, starting from section 0, then to section 1 until the last section 20. This keeps track of which player is farther than the other player. Using more sections is optional, but if you are going for more sections, have this in mind. If you do end up messing with sections in your levels and didn't go in order, the game will not track the distance between players accurately, therefore potentially announcing the false winner of the race.

[!] INFORMATION:

When creating your Race Rivals level, to prevent the player from getting stuck below any surface place while bouncing from the bottomless pits, make sure to place 4 blocks below any surface place, so the player can't get stuck. People usually put 2 blocks below a block to prevent the player from skipping a part of the level, however in Race Rivals, 2 blocks are not enough. Place 4 blocks if you want your level to be functional and fun to play. As for the top part of levels, 2 blocks should be fine.

Custom Battle Blitz and Race Rivals levels only support the ".lvlx" format. Now, I can name a bunch of reasons why I first of all didn't even bother adding support for ".lvl" format and why it's outdated right now. It is always recommended to use the ".lvlx" format to experience the true SMBX2 beta 5 version in your levels and this doesn't only apply for Dueling Trials. Not to mention that a good amount of features are disabled in the ".lvl" format.

If you encounter any issues while playing the episode or especially when you're scripting something, you can try to delete every "progress.json" file you see in the episode. Those files can sometimes mess with the game and cause unexpected bugs. As of update v1.2, save files do not mess with the episode anymore, meaning any issues with the save files have been fixed.

Note

The biggest plan for Dueling Trials was to make it support actual multiplayer, but I decided to take a break from this project and learn more about Lua in the meantime, so I can make a stable multiplayer version of this episode later. Now, someone already implemented this before I could do it myself (MrDoubleA in his Battle Arena project), however it's worth noting that I started this project long before anyone else, even when I didn't know any Lua I still managed to pull off a somewhat functional battle system with almost 100% layers and events only. It may sound too good to be true, but yes, no Lua was used whatsoever, except for 1 line of text in one of the latest updates I made and in the actual latest update I used a little Lua for better lives detection, but that's literally all. Every other version didn't have any Lua scripts (you can find my old project here if you're interested to see its build and how exactly I did this). Not to be confused with the upload date and my account creation date, this old project was sitting on my computer for a long time because I didn't think it was worth uploading it to the public, but after some time I changed my mind. Also, I never had a forums account, however I was still active in the SMBX community since 2014.

Some levels in Race Rivals may be weird to play to say at least. I wasn't sure from the start how this minigame would even turn out in terms of good gameplay/experience, so expect some mini exploits and weird gameplay. This isn't a major bug or anything, it's just a situation that can happen if you and your opponent play the minigame perfectly. One example of those situations is when you arrive to the POW generators, you will take some time to break the wall to continue on your way and in the meantime, your opponent can catch up to you.

As for the bugs, any major bugs shouldn't occur. If some small bugs appear, they shouldn't be a problem for me to fix. This version should also be a stable first release and the episode will continue to receive updates if this goes well and gets attention from a decent amount of people. Also, if someone decides to take a look at any of my codes, just remember that not everything is perfect there and you may encounter some awkward parts.

Credits

-Menu backgrounds sourced via Pinterest
-Graphics made by Witchking666, h2643, PROX, DARKMECHA and Sednaiur
-Music and sound effects not by Zenetal (more credits are in specific folders)
-Bouncy pits created by Rixitic and KBM-Quine
-Boost Block made by AndrewPixel/Akromaly
-Modern Reserve Box created by KBM-Quine
More credits can be found in the episode and specific levels

Stuff by me:
-The entire episode and almost all the scripts are by Zenetal
-Small graphics patches/extensions done by Zenetal
-Every battle and race level made by Zenetal

Special thanks:
Big thank you to all the people in the Codehaus discord server who helped me a little with some parts of the code (MrNameless, Marioman2007, MrDoubleA, KBM-Quine, and Supermario1313)
Last edited by Zenetal on Sun Apr 06, 2025 10:07 am, edited 4 times in total.

MegaDood
Torpedo Ted
Torpedo Ted
Posts: 1797
Joined: Wed Nov 01, 2017 2:43 am

Re: [MINIGAMES] Dueling Trials - Battle Blitz & Race Rivals

Postby MegaDood » Sat Feb 22, 2025 5:16 am

This is amazing, thank you for this project.
I can see the love that was put into it, and I hope it gets a lot of use!


Return to “Episodes”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari