Banner
Views: 801,637,436
Time:
4 users online: h.carrell,  MarioFanGamer, thirsty_pocket, WKerrick - Guests: 22 - Bots: 273 Users: 41,893 (1,729 active)
Latest: amaice
Winter C3 2020 Content Spotlight
lx5's "Cosmic Clones for SMW"!
Not logged in.
Ultimate P meter!!! (final title change.)
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Ultimate P meter!!! (final title change.)
Pages: « 1 »
Prime directive: to create a sprite-based P meter patch that will reside in the bottom left corner of the screen during gameplay, the meter is only active when Mario either has a cape or any such power up that requires speed to achieve liftoff. Also it being SA-1 compatible is a high priority. My only limitation is the lack of ASM knowledge, I'm only 52% proficient at ASM. At the most I can explain what I want to do and make sense of it, coding it I have no idea how to do such a thing. I know I would have to create a branch command that would only allow the code to continue if Mario had the cape or raccoon power, as I am planning to have the raccoon power in all of my hacks be a standalone custom power up instead of using it in place of the cape first things first I have to learn how to use the raccoon patch, and then I have to learn how to create a branch command that has to make a use of a custom powerup. How is this done? What documentation and tutorials are available for this? Where do I need to look?

--------------------
"Reluctance gets you nowhere, if you never ask for help you won't ever receive help. if you never try you may never fail but you'll never succeed either"
--Falkenheart
http://www.smwcentral.net/?p=post&do=reply&t=62550 finishing up my first patch any help is appreciated
Pretty easily, you can use this patch (unless the routine was bypassed):

Originally posted by patch.asm
lorom
header

; locations of the timer digits in the status bar
!Hundreds = $0F2C
!Tens = !Hundreds+1
!Ones = !Tens+1

org $008E6F

LDA $0F31
STA !Hundreds
LDA $0F32
STA !Tens
LDA $0F33
STA !Ones


Refer to this status bar map if you want to poke the values I used.
Originally posted by Lui37
Pretty easily, you can use this patch (unless the routine was bypassed):

Originally posted by patch.asm
lorom
header

; locations of the timer digits in the status bar
!Hundreds = $0F2C
!Tens = !Hundreds+1
!Ones = !Tens+1

org $008E6F

LDA $0F31
STA !Hundreds
LDA $0F32
STA !Tens
LDA $0F33
STA !Ones


Refer to this status bar map if you want to poke the values I used.


I was able to move the timer but blank the tiles are still uploading as blank images and cutting off the second row of my custom P meter,



I don't know how to prevent what you see in the screenshot from happening, I was told to set the addresses that are uploading the blank images to NOP, and I have no idea how to do that

--------------------
"Reluctance gets you nowhere, if you never ask for help you won't ever receive help. if you never try you may never fail but you'll never succeed either"
--Falkenheart
http://www.smwcentral.net/?p=post&do=reply&t=62550 finishing up my first patch any help is appreciated
You probably want something like this (to get rid of that completely):

Originally posted by patch.asm
lorom
header

org $008E81

BRA +
NOP #18
+


Or if you actually don't want zeros on your time counter, you can try using this instead:

Originally posted by patch2.asm
lorom
header

!location = $0F2D

org $008E81

LDX #$00
LDY #$00
- LDA $0F31,Y
BNE +
LDA #$FC
STA !location,X
INY
INX
CPY #$02
BNE -
+
How can I switch the P-meter from a Layer 3 status bar object to a sprite. Similar to how sprite status bar converts the status bar from Layer 3 to the sprite layer. I'm trying to figure out how to create a patch that is similar, I also think taking advantage of ExGfx that is the way to go. Is there a tutorial on using ExGfx in ASM?

--------------------
"Reluctance gets you nowhere, if you never ask for help you won't ever receive help. if you never try you may never fail but you'll never succeed either"
--Falkenheart
http://www.smwcentral.net/?p=post&do=reply&t=62550 finishing up my first patch any help is appreciated
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Ultimate P meter!!! (final title change.)

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

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


Total queries: 7

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • SMBX Community
  • ROMhacking.net
  • MFGG