Views: 772,465,144
7 users online: Bensalot, kamekku14, Katrina, Mandagary, Marcozzo Daro, placeholdertest, Yourio_ - Guests: 24 - Bots: 164Users: 40,569 (1,854 active)
Latest: Malachi731
Tip: Make a backup of your hack before using any external tools on it.Not logged in.
P-balloon timer fix 2.0 by GreenHammerBro
Forum Index - Valley of Bowser - Moderation Questions - Patches - P-balloon timer fix 2.0 by GreenHammerBro
Pages: « 1 »
File Name: P-balloon timer fix 2.0
Submitted: 08 October 2017 - 21:47:03 PM by GreenHammerBro
Obsoletes: P-balloon timer fix
Authors: GreenHammerBro
Tool: Asar
Requires Free Space: Yes
Bug Fix: Yes
Featured: No
Description: Fixes a bug where the p-balloon timer does not freeze when $9D is set (such as L and R scrolling).

-You can now cancel balloon at any time by pressing a button (A by default)
-Fixes a bug that only exist via ASM methods that clears the timer (to #$00); the countdown decrements the timer BEFORE checking if its zero, making it possible to decrement it to #$FF and refilling the timer.
-Fixes additional bug (can be turned off if you want to) that Mario retains his state (spinjump, air flag, etc) prior grabbing it.

See patch's comments for more fixes.
The problem with DontLosePBalloon.asm was that, depending on the value of !RetainType, it would either restore original code or install a hijack to allow the P-Balloon to be retained after an animation. Patching it with !RetainType = 1 after already having patched it with !RetainType = 0 would leak freespace.

Originally posted by Submission Notes
you can now repatch "DontLosePBalloon.asm" without issues.

The purpose of this update is to clean the used up freespace if the steps mentioned below are taken. This doesn't work because of line 19, which checks for a JSL opcode ($22) at $019FBE. The patch's hijack (line 17), however, uses a JML opcode ($5C), so the condition is never true and consequently, the freespace block is never cleaned, which is the only thing the update is meant to fix. This can be proven with Lunar Magic's scanning feature (File -> Scan ROM) - both the current version and this update leak freespace if DontLosePBalloon.asm is reapplied with a changed !RetainType.

Line 19 also uses a single equals sign (rather than two equals signs) to check for equality. This is, as mentioned in Asar's manual.txt, a deprecated feature which could be removed in a future version.
Pages: « 1 »
Forum Index - Valley of Bowser - Moderation Questions - Patches - P-balloon timer fix 2.0 by GreenHammerBro

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2019 - SMW Central
Legal Information - Privacy Policy - Link To Us

Total queries: 9


Follow Us On

  • YouTube
  • Twitch
  • Twitter


  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • MFGG
  • Gaming Reinvented