News:

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

Main Menu

Spazer+Plasma Fusion Confusion

Started by Mentlegen, September 04, 2017, 07:28:38 PM

Previous topic - Next topic

Mentlegen

So i recently patched my hack with JAM's Spazer+ Plasma .997 as well as the fusion patch which permits spazer+plasma only when a certian item is collected ( more info here: http://forum.metroidconstruction.com/index.php/topic,735.0.html)

In short, i applied BeamFusion and SpazerPlasmaMix from that page. I followed all the directions in the text file sent with BeamFusion.
The new item shows up in my hack with GFX in smile and a text description file, however i have a hard time understanding the text description in SMILE. I feel i have done something wrong because i get a black screen after the Nin1odoh logo on startup. My game also freezes if i try to enter a room with this item in it.

What am i missing?

PHOSPHOTiDYL

Apply splazma patch, one patch from the item folder, beamfusion.ips, setbeamfusionmessage.asm.

Gfx pointer in hex will look like 64 87 00 96 00 00 00 00 00 00 00 00.

00 96 is your pointer to gfx starting @ 049600.

00 80 = 8000 = 048000 = morph bombs.

00 90 = 9000 = 049000 = reserve tank.

00 91 will be the blank gfx to the right of reserve tank.
00 92 will be the blank gfx below reserve tank, & so on.






Mentlegen

Quote from: PHOSPHOTiDYL on September 04, 2017, 10:16:16 PM
Apply splazma patch, one patch from the item folder, beamfusion.ips, setbeamfusionmessage.asm.

Gfx pointer in hex will look like 64 87 00 96 00 00 00 00 00 00 00 00.

00 96 is your pointer to gfx starting @ 049600.

00 80 = 8000 = 048000 = morph bombs.

00 90 = 9000 = 049000 = reserve tank.


00 91 will be the blank gfx to the right of reserve tank.
00 92 will be the blank gfx below reserve tank, & so on.
So i applied what you listed in order, and my game now runs and i can collect the item. However, it seems that i can combine spazer and plasma prior to my collection of the item. What's going on there? does it have to do with the hex above? (i am not very inept at this)

PHOSPHOTiDYL

Quote from: Mentlegen on September 06, 2017, 12:06:04 AM
However, it seems that i can combine spazer and plasma prior to my collection of the item.

Umm yeah that seems to happen...
I guess there's a missing check in the beam fusion code.
The get plm beam code is in bank $84.
The equip screen beam code is in bank $82.

I'm looking at the wave/ice split code.
0208C5 to 0A 29 solves the collection issue in $84.


PHOSPHOTiDYL

Yeah so there needs to be new code that cancels out the other beams when collecting in bank $84.
Or you could be cheap for now & skip the part that adds your collected beams to your equipped beams.
0208B9 = EA EA EA EA EA EA EA EA EA.

That leaves some ridiculous code in bank $82 for the equip screen.
Whatever beam you're enabling, you want to AND out the others.
Tilemap bits for whatever beam is cancelling the others...

Is pointers to enabled item tilemaps in ram.
LDA $C06E : STA $00 = ice
LDA $C070 : STA $00 = wave
LDA $C072 : STA $00 = spazer
LDA $C074 : STA $00 = plasma

Code would prolly start with LDA $09A6 : CMP #$4000 for beam fusion check.


Mentlegen

Quote from: PHOSPHOTiDYL on September 06, 2017, 03:42:36 AM
Yeah so there needs to be new code that cancels out the other beams when collecting in bank $84.
Or you could be cheap for now & skip the part that adds your collected beams to your equipped beams.
0208B9 = EA EA EA EA EA EA EA EA EA.

That leaves some ridiculous code in bank $82 for the equip screen.
Whatever beam you're enabling, you want to AND out the others.
Tilemap bits for whatever beam is cancelling the others...

Is pointers to enabled item tilemaps in ram.
LDA $C06E : STA $00 = ice
LDA $C070 : STA $00 = wave
LDA $C072 : STA $00 = spazer
LDA $C074 : STA $00 = plasma

Code would prolly start with LDA $09A6 : CMP #$4000 for beam fusion check.

I changed the values at 0208C5 to 0A 29 and this fixed the problem. The only thing is that i have to manually go to the pause menu and equip both spazer and plasma. Doesn't seem like a problem. Thanks for the help!