News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: SMAS-SMB3 Palette Set (Overworld) Coding difficulties  (Read 2291 times)

insectduel

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Insectduel's Domain
SMAS-SMB3 Palette Set (Overworld) Coding difficulties
« on: July 27, 2011, 02:55:06 pm »
I've been researching this for a week and still have not proceeded the source. However, I found the palette set located at ROM OFFSET x10D976 if you use the headered SNES rom, when I edited the hex value, it won't change the palette set for each overworld level. Then I started seeking RAM or a Pointer location to see where it came from. Which is found in ROM OFFSET x14C0AA started at the LDA location BD XX XX followed by the STA location 8D XX XX where the palette code came from.

I don't understand why BD XX XX in x14C0AA would point to a x10D976 and does not make sense. Even if I try finding where the unused slots in the x14XXXX location, it's still not functioning unless I have to find the bankswitch or something.

Now I've been forced to create a custom palette for each overworld level and it's going to take a whole lot a space plus hardcoding stuff which I have 0% knowledge of and I don't know how custom palette works when I'm hardcoding 65536 ASM.

I'm still trying to seek the main palette sets for each overworlds.

I've provided ROM OFFSETS for World 8 Overworld palette and I used vSNES by savestate to find them in the ROM.

x1E2280 - World 8 Palette 1
x1E22A0 - World 8 Palette 2
x1E22C0 - World 8 Palette 3
Please do not send me RHDN's private messages to contact me, you must use Facebook and I'll be able to reply to you quickly. I AM NOT AN ACTIVE RHDN MEMBER!

Mattrizzle

  • Jr. Member
  • **
  • Posts: 43
    • View Profile
Re: SMAS-SMB3 Palette Set (Overworld) Coding difficulties
« Reply #1 on: August 01, 2011, 06:23:14 pm »
You're correct in stating that altering x10D976 has no effect on the game.  Values from here are stored into $73B, a RAM address which is never read while in a world map!

Setting a read breakpoint on the offset of World 8's first palette and entering World 8 led me to the following 16-bit pointer table, which does change the palette sets:

x14C9BF-x14C9D0 [00 9E 80 9E 00 9E 00 9F 00 9F 80 9F 00 A0 80 A0 00 9E]

x1E2280 = $3C:A080

insectduel

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Insectduel's Domain
Re: SMAS-SMB3 Palette Set (Overworld) Coding difficulties
« Reply #2 on: August 05, 2011, 10:31:48 am »
Thank you SO much Mattrizzle!  ;)
Please do not send me RHDN's private messages to contact me, you must use Facebook and I'll be able to reply to you quickly. I AM NOT AN ACTIVE RHDN MEMBER!