Posts: 2,583
Threads: 99
Joined: Aug 2009
Reputation:
52
12-10-2015, 03:53 PM
(This post was last modified: 12-10-2015, 03:55 PM by Gi Nattak.)
Madsiur actually made a version of this for my hack a long time ago to allow Banon's sprite and the ghost also I think. I'm fairly sure he won't mind me posting it if it might help you out with yours:
Code:
This code assume sprite 17 riding pose is at FF/2EE0 and sprite 20 at FF/5C40
funny at FF/3D20
EE/8943: 2000B0 JSR $B000 (Jump to empty space)
EE/B000: ADFB11 LDA $11FB (Sprite number for map character)
EE/B003: C911 CMP #$11 (Compare to sprite ID 17)
EE/B005: F005 BEQ $B00C
EE/B007: C914 CMP #$14 (Compare to sprite ID 20)
EE/B009: F012 BEQ $B01A
EE/B00B: 60 RTS (Return if not an exception)
EE/B00C: A960 LDA #$C0 (Low byte of sprite 17 offset)
EE/B00E: 856A STA $6A
EE/B010: A929 LDA #$3C (Middle byte of sprite 17 offset)
EE/B012: 856B STA $6B
EE/B014: A9FF LDA #$FF (High byte of sprite 17 offset)
EE/B016: 856C STA $6C
EE/B0XX AB PLB
EE/B0XX AB PLB
EE/B018: 4C8089 JMP $8980
EE/B01A: A980 LDA #$40 (Low byte of sprite 20 offset)
EE/B01C: 856A STA $6A
EE/B01E: A94B LDA #$5C (Middle byte of sprite 20 offset)
EE/B020: 856B STA $6B
EE/B022: A9FF LDA #$FF (High byte of sprite 20 offset)
EE/B024: 856C STA $6C
EE/B026: AB PLB
EE/B027: AB PLB
EE/B028: 4C8089 JMP $8980
I'm confident this was the final version of the code, it's the only one I can find in my asm files folder.
We are born, live, die and then do the same thing over again.
Posts: 28
Threads: 13
Joined: Dec 2015
Reputation:
4
That did help a little bit, thanks. I didn't use that solution exactly, but I did find an alternative that fits my current method, thanks to you (and Madsiur). Now I just need to adjust it even more to fix Banon completely, and then figure out a way to fix the sprites in the shop menu. As far as I can tell, that's the ONLY place left where the sprites are messed up.
Posts: 28
Threads: 13
Joined: Dec 2015
Reputation:
4
12-10-2015, 04:47 PM
(This post was last modified: 12-10-2015, 04:56 PM by 13375K37CH3R.)
Yes, I know now what Madsiur's code does, and again, thanks to that I was able to fix all of the sprites on the world map, including Banon's. Now all that's left is to fix the sprites in the shop menu.
And yes, I did know that there are three pointer tables and I adjusted the pointers in all three tables. It seems the shop menu has some other way of handling sprites, because the sprites in other menus, such as party selection, are unaffected.
Yes! I did it! I fixed the shop menu! Now I can officially post this on my website! Again, thanks for the help!
Posts: 28
Threads: 13
Joined: Dec 2015
Reputation:
4
Sure, I can do that. I'll write a text file with the code changes. I won't include the actual change to the sprite data, just the pointers and math and all that stuff.
Posts: 3,975
Threads: 278
Joined: Oct 2011
Reputation:
65
12-11-2015, 11:59 PM
(This post was last modified: 12-12-2015, 06:27 AM by madsiur.)
So just to clarify things, catone's last 3 posts content were "null" in a html tag. I'm assuming he wanted them deleted, so I did that. If you guys want a post deleted, write something like "Delete this post", otherwise it's confusing.