Changing item palettes!

Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by RedScorpion Fri 28 Jun 2013 - 13:40

Conn from BS Zelda Team helped me out

Hardcode snes (without header) ist 08/9f00,
pc without header: 04/1f00

original value 04. Change to 02 = red.

thanks

red
RedScorpion
RedScorpion

Changing item palettes! Image111

Since : 2013-04-28

http://www.snes-projects.de

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Puzzledude Fri 28 Jun 2013 - 14:20

I've tested this out and it works. The actual address in the hex editor is 41F00 (written normally) if the file has no header. Change this to 02 and the placed bomb is red.
 
This really is good news, since I know I wanted to change the palette of some in-game items (sprites actually), like bomb and cane of byrna (when you swing it in the game) and I was changing the gfx, learning, that no matter what colour I use, I am stuck with certain colours only (like blue, green, purple, grey etc).
 
So another palette must be loaded to achieve the red, orange etc colours. I wonder if the palettes go in order. Like bow, boomerang, hookshot, bomb etc in the hex string. In a combination with gfx edit any colour is possible.

Edit:
02 is red
04 is blue
08 is green

00, 06, 10 not recommended (black and dark brown). Odd values (bugged gfx).

12 repeats the cycle of 02, so 12 is the same as 02 (with possible different subcolours).
Puzzledude
Puzzledude

Changing item palettes! Image213

Since : 2012-06-20

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by RedScorpion Fri 28 Jun 2013 - 18:30

I asked seph to invite conn from bs zelda team to our litte hacker group.

He find out the request from seph. I think he has a lot of knowledge about the zelda rom, because he has change a lot in Zelda AST.

Thanks

red
RedScorpion
RedScorpion

Changing item palettes! Image111

Since : 2013-04-28

http://www.snes-projects.de

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Wed 3 Jul 2013 - 4:59

This really is good news, since I know I wanted to change the palette of some in-game items (sprites actually), like bomb and cane of byrna (when you swing it in the game) and I was changing the gfx, learning, that no matter what colour I use, I am stuck with certain colours only (like blue, green, purple, grey etc).
If you need to find out more items palettes, check 7E/0990-7E0A00. Use the item and see whether you get a 22 (red), 24 (blue), 28 (green) in this block somewhere. The bomb palette e.g., was stored at 7E/09d3, so I was able to trace the hardcode in a second. You should find other codes here as well, e.g. 7e/099b will change the palette for staff of byrna.

I'll check whether I can find out about the bomb below bushes... need a savestate or anything
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Puzzledude Wed 3 Jul 2013 - 9:41

Changing the bomb palette is probably the most difficult of all items. When I was editing
the gfx, I found numerous gfx tiles, with the bomb. In my oppinion there are around 10
or more different palettes for bombs altogether.

Here are my findings (incomplete).



CHANGING THE BOMB PALETTES IN ALTTP

1.)

41F00 - bomb in-game (when placed on the ground), change 04 (blue) into
02 is red or 08 is green
(address found by Conn)
-----------------------------------

2.) A

484C3 bomb in a chest (as 1 bomb = chest item number 39 in HM), change 02 (blue) into
01 is red or 04 is green or 0D is dark green
(address found by RedScorpion)

2.) B

484C4 bomb in a chest (as 3 bombs = chest item number 40 in HM), change 02 (blue) into
01 is red or 04 is green or 0D is dark green
(address found by RedScorpion)

2.) C

484CD bomb in a chest (as 10 bombs = chest item number 49 in HM), change 02 (blue) into
01 is red or 04 is green or 0D is dark green
(address found by RedScorpion)


Palettes from 484C3 - 484CD corespond to HM item numbers 39 to 49.
So all palettes from all chest items are here! From item 00 to 75.
------------------------------------


3.)

6F681, bomb in the inventory, B2 2C B3 2C C2 2C C2 6C (is blue)
change to B2 24 B3 24 C2 24 C2 64 (is red)
change to B2 3C B3 3C C2 3C C2 7C (is green)
(address found by coordinate searching, B2, B3, C2)
------------------------------------


4.)

?????, bomb as independent sprite
major sprite palettes are in bank DD000 though


5.) A

?????, bomb as item (under jar or bush)


5.) B

?????, respawning bomb, when an enemy is defeated



6.) Not in a direct relationship with Link's TNT

?????, bomb thrown by Hinox enemy (default is blue)



7.) Not in a direct relationship with Link's TNT

?????, bomb thrown by Red-knight (default is green)



8.) Not in a direct relationship with Link's TNT

?????, bomb drop (a set of bombs which fall if the wrong switch is pulled), (default is green)




9.) A

?????, 3 bombs which you buy from the dark world bomb-shop


9.) B, is equal to 2B

484C4, 3 bombs which Link holds above his head after purchase, change 02 (blue) into
01 is red or 04 is green or 0D is dark green


9.) C

?????, 10 bombs which you buy from the normal shop


9.) D, is equal to 2C

484CD, 10 bombs which Link holds above his head after purchase, change 02 (blue) into
01 is red or 04 is green or 0D is dark green




10.) Not in a direct relationship with Link's TNT

?????, super bomb (default orange)


Last edited by Puzzledude on Wed 3 Jul 2013 - 12:46; edited 1 time in total
Puzzledude
Puzzledude

Changing item palettes! Image213

Since : 2012-06-20

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Wed 3 Jul 2013 - 12:19

here's a further:

change the value at 04/84cd (pc, unheadered) from 02 to 01 and the bombs in the shop when you hold them in your hand have a red palette. This does not work however for the palette when entering the shop, only when you bought them. Wasn’t able to trace other palettes yet, it’s difficult, unfortunately
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Puzzledude Wed 3 Jul 2013 - 12:52

Yes, it seems like 484C4 and 484CD are used for two things each. The bombs in the chest and the bombs when buying them. If I leave aside all the bombs, which are not in direct relationship with Link's TNT, a smaller amount of bomb palettes is left to find.
Puzzledude
Puzzledude

Changing item palettes! Image213

Since : 2012-06-20

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Wed 3 Jul 2013 - 14:00

That was a bitch... needed 3 hours to get this value:
pc, w/o header: 0f/749e: make a 02 instead of 04 to change the shop bomb
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Wed 3 Jul 2013 - 14:25

Below pot:
Pc, w/o header: 06/b395: d4 to d2 – also 06/b396 and 06/b397 have a d4. These could be bombs at other places, e.g. plants, left by monsters. You need to check.

Seems your mail is in my spam, if you need more palettes let me know 8)
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Wed 3 Jul 2013 - 15:28

uooh, my best guess is that there's a difference between the german and english version of alttp.
0xF749E = 0xf749b 04 -> 02
0x6b395 = 0x6b435 d4 ->d2

check these values, sorry for this.

You'll also find at 0x6b436 and 0xb437 a d4; these could be for plants and enemies bomb drops.
You need to check this... let me know which values are missing.

Here's an image with the area and the alterative hex value highlighted. The upper part is the german alttp with changed values to make the bomb red, the lower your rom you sent me without change (english version???)

https://i.servimg.com/u/f34/18/39/92/77/image111.jpg
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Puzzledude Wed 3 Jul 2013 - 16:02

Regarding bombs
 
We basically have it all now.
 
0xF749B 04 -> 02
normal shop bomb palette before buying
address found by Conn (after 3 hours)
 
 
 
Main palette (reused many times)
0x6B435 D4 -> D2
fixes bomb as sprite, bomb as a respawn from enemies,
bomb under jar (indoors), bomb under bush (outdoors)
address found by Conn
 
 
 
0x6b436 and 0x6b437
couldn't find any effects here
 
 
The only thing missing are the 3 bombs bought from the dark world bomb shop
while on the ground.
But this shop can be left out, so is the super bomb (SePH, will PU have this bomb?).
Also bombs which are handled by enemies are not icluded, but this is also not mandatory,
since enemies can handle bombs, while Link handles TnT.
Puzzledude
Puzzledude

Changing item palettes! Image213

Since : 2012-06-20

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Wed 3 Jul 2013 - 16:55

Great that it works :)If you need more bomb values let me know (plants, etc...) I'm pretty good now tracing this ^^

cane of byrna: make it green and then repixel it to the golden colors (see attached picture):
0x6a6b2: 04 -> 08

book of mudora: already has yellow colors in the green palette (need to repixel, see attached picture)

staff of somaria (red to green):
0x68534: 22 -> 28
0x68538: 22 ->28
0x68546: 22 -> 28
0x68558: e2 -> e8
0x6855a: e2 -> e8

The bow uses the red palette (x2), the arrow the blue one (x4). To make the bow have the blue palette to be able to repixel (see attached picture), change:
0x68498; 22 -> 24
0x6849c: a2 -> a4
0x684a4: 62 ->64

Here's how the palette look like and how to repixel green palette to golden:
https://i.servimg.com/u/f34/18/39/92/77/image410.jpg
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by RedScorpion Wed 3 Jul 2013 - 17:19

Haha,

great!

@Seph: I think you could change the name of the topic to "Conn: I need help changing..." Smile

Thanks

red
RedScorpion
RedScorpion

Changing item palettes! Image111

Since : 2013-04-28

http://www.snes-projects.de

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Puzzledude Wed 3 Jul 2013 - 17:39

Do not change the Vertical black lines, however, the black, that is not in the main verticals, should be the empty space for more palettes? I remember this from miscelaneous colours, so I added a new grey colour in the inventory colours. In GoT hack, one of the canes will have a newly defined palette for the inventory, namely grey. Other colours are standard red, blue, green, orange.
 
Actually there are 2 similar red inventory colours, so I just changed one of them into grey (namely the Pegasus Shoes). They don't use the normal red (but you really can not see this this in practice). So if the shoes go to normal red, one space is empty.
 
But this is for inventory palette, you are actually in the sprite palette. By the way, in-game items are actually considered as sprites (so are the items, when they appear, when opening the chest).
Puzzledude
Puzzledude

Changing item palettes! Image213

Since : 2012-06-20

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Wed 3 Jul 2013 - 18:45

Puzzledude is right, the same palette is used for all sprites (items, monsters, npc, link). Therefore most items upgrade with a palette swap blue-red-green as well as monsters do (or as you see with the mail from green-blue red). I'd not exchange any colors in the palettes since you may miss the color in another sprite. If possible give the item another color out of the same palette with snesedit or whatsoever, as I suggest to make the palette swap to green and then use the yellow colors that are already in there.

Of course you can only do this for items that do not upgrade. The swap blue-red-green is in the same vertical column. If you give another color of this palette and upgrade, the colors in the same column will be allocated.
But since you only want the book, byrna and bow to be repixeled with another color you're safe since these aren't upgradeable.
A golden tunic e.g. wouldn't be makeable, since if you recolor the green tunic and upgrade to red, the red one will be grey instead then.
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Fri 5 Jul 2013 - 5:54

that really is a problem... I realize now the first time. basically it is possible of course to give an item 4 tiles instead of two, and add further 2 (or 4) so that different staffs are used. In theory it is simple, you need to transfer the required tiles from another place directly into vram and tell at the code that 4 tiles are used instead of two.
But the devil is in detail, e.g. if you have space left or want to keep it uncompressed.

If you want I can make some tests, but I'd need a rom with the desired tiles included (some space left in unused regions...?) Then I somehow have to find the item when used ingame (with the savestates found I can play to the chest where the items are).
When this is done, I make a dma vram transfer of the new tiles (and change the map, so that all 4 tiles are displayed) but since I'd not stir too much in your patch you'd need to tell me where I can add some code.
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Sat 6 Jul 2013 - 17:44

I was able to change all items and sent you the rom back Smile
There's a small beauty-mistake: the items aren't centered when coming out of the chest (because they are now 16x16 instead of 8x8).
I traced 7E/0830 to control the alignment (there's a value of 77, 7C or whatever). This value needs to be made smaller (test by cheating). I couldn't trace it due to some weird pla opcodes. Maybe anybody here can do this?
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Sat 6 Jul 2013 - 19:21

you're welcome Very Happy  if there are any other graphical issues of this sort left let me know Wink
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Sun 7 Jul 2013 - 0:19

Nothing to thank, I'm happy if I can help out in your awesome work!

Great news: I was able to trace the alignment, so all new items are centered! Smile (I'm little bit pedantic in such things ^^)

Sorry for the swap... those two staffs :shock: fixed as well... sent you an email with the fixed rom.
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Sun 7 Jul 2013 - 9:04

There's another bug, I have noticed when using somaria: The addresses I gave you for the palette swap were only for using into left direction. Please change the rest yourself in the rom you have:

staff of somaria (red to green):
posted already (left use):
0x68534: 22 -> 28
0x68538: 22 ->28
0x68546: 22 -> 28
0x68558: e2 -> e8
0x6855a: e2 -> e8

Here are the new values that change it to green also on right, up and down use:
068552: 62 -> 68
06853a: 62 -> 68
06853E: 62 -> 68
06854C: A2 -> A8
06854E: A2 -> A8

068540: 22 -> 28
068544: 22 -> 28
068532: 22 -> 28
06852E: 22 -> 28

The bow has the same issue:
left use (posted already above)
0x68498; 22 -> 24
0x6849c: a2 -> a4
0x684a4: 62 ->64

right
0684AA: 22 -> 24
068496: e2 -> e4
068492: 62 -> 64

up:
068486: A2 -> A4
068488: E2 -> E4

down:
06848C: 22 -> 24
06848E: 62 -> 64

Cane of Byrna only has the one value posted already above:
0x6a6b2: 04 -> 08
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Mon 8 Jul 2013 - 19:04

Great Smile
What's about the other two items you marked red (boomerang and lantern)?
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Mon 8 Jul 2013 - 19:13

I see, my memory is still fresh how to adjust in the code, so if you like me to include the boomerang (and flashlight when you have it), just send me again the latest version of the rom and the bin, and I'll add those in a second ^^
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Tue 9 Jul 2013 - 8:33

already hacked and sent back Very Happy

Edit:
BTW: the lantern is already 16x16 tile size, so there's nothing I need to do (you can change it as you did with Book Mudora).
If you need another palette for the flashlight coming out of the chest, change 04:84AE (currently 01, red). 02=blue, 04=green
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Re: Changing item palettes!

Post by Conn Tue 9 Jul 2013 - 14:24

I think so except you want to change other 8x8 items (but there aren't many left I guess - so far I can see only the hookshot isn't on your list) ^^

No need being credited, I do not set much value on on this and my help here was also small. For me it is enough to help you guyz out making amazing hacks Wink
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Changing item palettes! Empty Changing item palettes!

Post by Conn Tue 9 Jul 2013 - 18:24

*lol, ok do as you wish Razz ... guess if all the credits I gained for hacking bszelda were weighted in gold I could live 2 lifetimes with this ^_^
Conn
Conn

Changing item palettes! Image212

Since : 2013-06-30

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum