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

Author Topic: [Help] Changing which palette a certain sprite loads in ALttP.  (Read 1380 times)

ShadowOne333

  • Hero Member
  • *****
  • Posts: 1250
    • View Profile
[Help] Changing which palette a certain sprite loads in ALttP.
« on: February 03, 2016, 10:23:17 am »
I've been working on a hack called "A Link to the Past Redux" lately which you can find here:
http://www.romhacking.net/hacks/2594/
So far, everything has been working nicely and most of the bugs have been fixed today.

The only remaining "bug" is that of the shared palettes between certain sprites.

For example, the palette for Agahnim is shared for the Dead King’s sprite at the beginning and the very same palette is shared with the thieves that appear in the Lost Woods (the ones that try to steal your stuff).

Something similar happens when I try to change the King of Hyrule's palette.
That palette is shared with the green soldiers that you find in the overworld and dungeons, so any change done to the King of Hyrule will end up changing the soldiers too.

Is there a way to change which palette is loaded for certain sprites?
Like specify to the game that I want the thieves and green soldiers palette to use the normal palette, and specify that I want the new palette for only the King of Hyrule and Aganhim (Dead King too).

I haven't found anything yet about this.
I know it is possible with NES and its attribute tables, but I don't know if the SNES has something similar.

Any help would be greatly appreciated!

henke37

  • Hero Member
  • *****
  • Posts: 643
    • View Profile
Re: [Help] Changing which palette a certain sprite loads in ALttP.
« Reply #1 on: February 03, 2016, 02:02:13 pm »
Well, anything is possible with enough work. Just a small matter of finding how the game loads the palettes.

SunGodPortal

  • Hero Member
  • *****
  • Posts: 2921
  • 2 + 2 = 5
    • View Profile
War is Peace. Freedom is Slavery. Ignorance is Strength.

ShadowOne333

  • Hero Member
  • *****
  • Posts: 1250
    • View Profile
Re: [Help] Changing which palette a certain sprite loads in ALttP.
« Reply #3 on: February 04, 2016, 11:12:04 am »
See if this is what you need:

http://www.zeldix.net/t444-change-global-palette-of-a-sprite?highlight=palette
Yes!
That info is really useful!

I already fixed the thief in the Lost Woods. :)
All I gotta do now is try to find which sprite belongs to the King of Hyrule in the credits and I think that should be it. :P