Language…
20 users online: cletus_deletus, DanMario24YT, Domokun007, GRIMMKIN, Heitor Porfirio, iRhyiku, JezJitzu, Knetog, LightAligns, Maw, Nayfal, Nemesis1407, ocked, PMH, RZRider, sinseiga, SMW Magic,  Tahixham, TheXander, yoshiatom - Guests: 311 - Bots: 387
Users: 64,795 (2,374 active)
Latest user: mathew

Expanding on an Existing Patch

I used edit1754's Message Block and Light Switch Block Fix Patch to move the info and light switch blocks up a pixel in order for them to be in line with normal blocks to great success. But I want to expand upon it, doing the same thing to both turn block bridges (sprites 59 and 5A) and the exploding block with a fish/goomba/koopa in it (sprite 4C) but don't know how to do this.
Here is the original patch:
Code
header
lorom

org $0182EF
		dw BlkSprInit
org $01830D
		dw BlkSprInit

org $01FFF0
BlkSprInit:	LDA.b $D8,x
		SEC
		SBC.b #$01
		STA.b $D8,x
		LDA.w $14D4,x
		SBC.b #$00
		STA.w $14D4,x
		RTS

I have tried looking at all.log, the ROM and RAM maps, and numerous ASM tutorials, and I can't figure it out. Any help would be appreciated!
Thanks in advance!
Your layout has been removed.
Add this
Code
org $01822F
		dw BlkSprInit		; Sprite 59
		dw BlkSprInit		; Sprite 5A
org $018215
		dw Part			; Sprite 4C

Than add this somewhere
Code
org $01E2B0
Part:		JSR $83A4			; JSR back to original Code
		JMP BlpSprInit		; JMP to thing

and that should do it.
I change my layout every 4-5 months
Ah thank you so much! That worked perfectly!
Now if you don't mind me asking, could you explain (or point me to somewhere that will explain) how you knew that/how you found it out? I really want to learn these things so I don't have to ask all time :P
Thank you!
Your layout has been removed.
I had actually made the exact same upgrade to that patch the other day. What I did was look up the two org's already listed in the patch for the Info Box and the Light Switch in all.log. They are both part of a large Sprite Init Routine Table. So I just found the other sprites I needed, checked what Routines ran upon Init, and changed as needed.
Originally posted by tmercswims
how you knew that/how you found it out?

It was actually really easy. since the org's in this point to the INITSpriteTable in all.log at $01817D. i just looked through and found the Sprites. than i looked through the INITSpriteTable (x837D) with a hex editor and Ctrl+F'ed the 2 hex numbers that were to the left of the dw's and converted it back to LoROM to get the addresses.

But since Sprite 4C already pointed to code, you have to make it point to somewhere else that's empty in Bank 1 than JSR back to the code than JMP back to BlkSprInit
I change my layout every 4-5 months
Hmmm... Alright. See, I tried to do that, but I couldn't get from the big mess of the all.log to the orgs and the dws.
I'm assuming this is what you are talking about?

This table here?
But how did you get from that to the orgs and dws?
Don't have to answer, this is just learning for me now haha.
Your layout has been removed.
No, that's no the correct table, it's the SpriteInitPtr. i then went into a SMW Rom with a Hex Editor than went to x837D and pressed Ctrl+F than set it to hex and than put the two numbers there without spaces. once it was found, i converted it into LoROM with Lunar Address and put that in.
I change my layout every 4-5 months
Got it!
Ah thank you so much for your help and for putting up with my noobishness hahaha. I really appreciate it! :)
Your layout has been removed.