News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

Question regarding Missile use & a Spiderball patch?

Started by Draconis Kenjishiya, August 19, 2013, 11:06:32 AM

Previous topic - Next topic

Draconis Kenjishiya

I was thinking the other day how I wanted more of a "Prime" feel to my hack, and while making five separate "combo" effects for the five beams in Super Metroid is currently beyond my capacity as a programmer, I thought that perhaps I could start simple and make it so that to use a Super Missile, you also needed five missiles. Like, you'd fire a Super Missile, and it would cost 1 SM like in the usual game, but it would also cost five missiles, and you needed both?

I am not giving up on the idea of five combo effects, but I don't even know how to begin that so one thing at a time. Ahem. Does anyone know how I would go about doing the Missile effect?

ALSO! I have this Spiderball patch, attached to this post. I found it in my old hacking folders from years ago and idk who made it or even how it works. I'd like to include it, but I want to give the creator credit as well as learn how it functions. Does anyone know its origin?

Quote58

#1
Missile thing would be pretty easy to make, and I would assume the spiderball patch is the one scyzer put up way back when. If it is, then it works via bts and you can find it on her site.

Edit: this code is probably longer and less efficient than it should be, but here
[spoiler]Lorom
org $90BECF   
        JSR $F640       
org $90F640
   LDA $09D2 : CMP #$0001 : BNE + : LDA #$0001 : RTS
   +
   CMP #$0002 : BEQ + : RTS
   +
   LDA $09C6 : CMP #$0005 : BMI + : SEC : SBC #$0005 : STA $09C6 : LDA #$0002 : RTS
   +
   INC $09CA : LDA #$0000 : RTS[/spoiler]
That'll make it so that when you fire a super missile, you use up 5 missiles. If you don't have 5 missiles left, it won't change your super missile count, and you shoot power beam instead because I was too lazy to have it store your current beam and then load that before the rts.

Draconis Kenjishiya

Hm, I copied and pasted the code you posted into a .asm file and applied it, but it made every weapon I attempted to use fire the grapple beam instead. I make use of Scyzer's Prime HUD, as well as some other patches including Yellow Scrolls, Double Jump, JAM's Bugfix, Chain Blocks and DC's Map Patch.

Quote58

well, I tested it on a vanilla rom, so it's probably a patch conflict.

Scyzer

I advise not using that spiderball patch. It's shit, inefficient, and buggy. It was not tested at all, and made entirely in a hex editor in about half an hour (hence why it is IPS).
In fact I am going to remove it from my site right now.

Draconis Kenjishiya

Ah, okay. Thank you for your quick responses. I won't use the patch, then, and I'll figure out which of my patches is conflicting with the Super Missile alteration patch.