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

Author Topic: My First Hack. Zelda 1. Several questions  (Read 3516 times)

Cyneprepou4uk

  • Hero Member
  • *****
  • Posts: 533
  • I am the baldest romhacker
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #20 on: May 03, 2020, 12:04:35 pm »
If the hame has already loaded colors in ppu, and you started logging afterwards, no wonder you haven't found blue combinations. Logger can't see the past.
iromhacker.ru - NES ROM hacking tutorials for beginners. Please use Google Translate browser extension

Shadoo

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #21 on: May 03, 2020, 03:53:35 pm »
Ahhh so I had to start it before selecting my savegame. tried it and it worked... maybe a little too good I found the actual loaded instances of 16 27 30 and 02 22 30 and colored them in my red black pattern. I indeed changed my sword and boomerang to black/red. And also all other items in my inventory lol.

But for the first time now I dont have a question anymore now its just fiddling with details maybe changing the items sprites or maybe play around more with what to color and what not.

Maybe I will find more things to do another day but for now the rom seems done!

May 03, 2020, 05:14:37 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
Ok I celebrated too early lol.

As I said in my previous post it seems I colored more than I wanted in fact I also colored most enemies black/red that was not planned.

https://imgur.com/a/ygs4wt2

I defnitely only changed a total of 6 numbers (didnt change the transparence so only 3 colors of 2 instances) it seems enemies and magic sword are linked together and always share colors color 25-28 in that case. So instead of changin these colors I somehow have to tell the sword to use the same color pattern as Link 17-20.
« Last Edit: May 03, 2020, 05:14:37 pm by Shadoo »

Cyneprepou4uk

  • Hero Member
  • *****
  • Posts: 533
  • I am the baldest romhacker
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #22 on: May 03, 2020, 06:26:35 pm »
This will reqiure some debugging with write breakpoint on sword sprite attribute address. Or wait until someone here will give you the location.
iromhacker.ru - NES ROM hacking tutorials for beginners. Please use Google Translate browser extension

Shadoo

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #23 on: May 04, 2020, 12:44:02 pm »
Ehh literally no idea what you are talking about. Could you provide further detail? A tutorial an article or something?

Cyneprepou4uk

  • Hero Member
  • *****
  • Posts: 533
  • I am the baldest romhacker
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #24 on: May 04, 2020, 01:18:39 pm »
Too much work for a newbie to find a single byte.

But if you want to, you can read about debugger window description on my site. And on the internet there should be lots of tutorials.

However sprite address is dynamic and a bit harder to locate in ram. Anyway it will take too long to explain everything to you here.

You can read about how sprite data is stored in ram
https://wiki.nesdev.com/w/index.php/PPU_OAM
iromhacker.ru - NES ROM hacking tutorials for beginners. Please use Google Translate browser extension

NesDraug

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #25 on: May 05, 2020, 11:04:33 am »
I might as well post this here. The bad news (you already know that) is that a lot of things share palettes! This is what I've found during the making of my hack:

019d08  Heart menu left
019cf0  Hearts menu right

019cfd - Link1 in menu
019d01 - Link2 in menu
019d05 - Link3 in menu

Also: Link has a new skin/hair palette for each LEVEL!

009573 - Link tunic in scrolling intro
(also green weapons)
009574 - Link skin in scrolling intro
009575 - Link hair/outline in scrolling intro

00A297 - Link's tunic AND green weapons* (overworld)
019325 Link's skin and green weapons (overworld)
019326 Link's hair/outline and green weapons (overworld)
019329 Blue enemies and blue weapons (overworld)
01932C Red enemies and red weapons (overworld)

*The green palette weapons ALWAYS has the same color as Link
and will change to the pallette of the blue or red ring.

0x6BA5 - Green Tunic color?
0x6BA6 - Blue Tunic color
0x6BA7 - Red Tunic color

LEVEL 1
019414 MENU: HEART METER (LEVEL1)
019415 MENU: KEY COIN MAP COLOR (LEVEL1)
019416 MENU: HEART BACKGROUND COLOR (LEVEL1)
019417 NOTHING?
019418 WALLS (LEVEL1)
019419 WALLS (LEVEL1)
01941A Walls (LEVEL1)
01941B NOTHING?
01941C FLOOR (LEVEL1)
01941D FLOOR (LEVEL1)
01941E FLOOR (LEVEL1)
01941F OUTLINES (LEVEL1)
019420 UNUSED GREEN COLOR?
019421 Link skin (LEVEL1)
019422 Link hair/outline (LEVEL1)
019423 NOTHING?
019424 blue PALLETTE/White sword (LEVEL1)
019425 blue PALLETTE/White sword (LEVEL1)
019426 blue PALLETTE/White sword (LEVEL1)
019427 NOTHING?
019428 red palette/enemies/mastersword (LEVEL1)
019429 red palette/enemies/mastersword(LEVEL1)
01942A red palette/enemies/mastersword (LEVEL1)
01942B NOTHING?
01942C Cyan palette/enemies (LEVEL1)
01942D Cyan palette/enemies (LEVEL1)
01942E Cyan palette/enemies (LEVEL1)
02943F NOTHING?


LEVEL 2
019510 - 019513 MENU: HEART METER  (LEVEL2)
019514 - 019517 WALLS   (LEVEL2)
019518 - 01951B FLOOR   (LEVEL2)
01951D - 01951F LINK COLORS  (LEVEL2)
019520 - 019523 BLUE PALLETTE/White sword   (LEVEL2)
019524 - 019527 RED PALETTE/enemies/mastersword   (LEVEL2)
019528 - 01952B CYAN PALETTE/enemies  (LEVEL2)


LEVEL 3
019610 - 019613 WALLS   (LEVEL3)
019614 - 019617 FLOOR   (LEVEL3)
019618 - 01961B LINK COLORS    (LEVEL3)
01961C - 01961F BLUE PALLETTE/White sword   (LEVEL3)
019620 - 019623 RED PALETTE/enemies/mastersword   (LEVEL3)
019624 - 019627 CYAN PALETTE/enemies    (LEVEL3)


LEVEL 4
01970C - 01970F WALLS   (LEVEL4)
019710 - 019713 FLOOR   (LEVEL4)
019714 - 019717 LINK COLORS    (LEVEL4)
019618 - 01961B BLUE PALLETTE/White sword    (LEVEL4)
01961C - 01961F RED PALETTE/enemies/mastersword   (LEVEL4)
019620 - 019623 CYAN PALETTE/enemies    (LEVEL4)


OVERWORLD PALETTES (THANKS TO DR. FLOPPY)
19314: (30) Gray palette: mountains (ALSO INGAME MENY TEXT)
19315: (00) Gray palette: pathway (ALSO INGAME MAP)
19316: (12) Gray palette: water (ALSO INGAME MENU)
19317: (0F) Gray palette: outline (DOESN'T WORK?)

19318: (16) Red palette: mountains (ALSO LIFE BAR)
19319: (27) Red palette: pathway (KEY AND COIN INGAME MENU)
1931A: (36) Red palette: water (TRIFORCE OUTLINE INGAME MENU)
1931B: (0F) Red palette: object outline
 
1931C: (1A) Green palette: mountains
1931D: (37) Green palette: pathway
1931E: (12) Green palette: water
1931F: (0F) Green palette: object outline
 
19320: (17) Brown palette: mountains
19321: (37) Brown palette: pathway
19322: (12) Brown palette: water
19323: (0F) Brown palette: object outline (ALSO MENU BACKGROUND)

« Last Edit: May 07, 2020, 03:14:23 am by NesDraug »
Hello! You found my shop of strange and wonderful things!
https://www.tumblr.com/blog/nesdraug

Shadoo

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #26 on: May 05, 2020, 04:55:29 pm »
But the problem is no longer where the colors are the problem is that the magical sword shares the colors with red enemies. When I want the world to remain the same only changing Link and his items to black/red, then I must somehow make sure the magical sword shares the colors with Link instead.

Side note: are you sure he has new palette for every level? I know he has in level 3.

NesDraug

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #27 on: May 06, 2020, 02:41:41 am »
Yeah, I just posted my findings so far.

I'm not super sure about Link's palette in every single level. But I'm working on it. I'll update the list as I go.

The green palette weapons ALWAYS has the same color as Link, both in overworld and in levels.

Edit: I found the adresses for LEVEL palettes. Yes. Every level seem to have it's very own set of palettes.


I'll update previous list as I go along.

EDIT 2:
Oh, I forgot, there's already a ROM MAP.
https://datacrystal.romhacking.net/wiki/The_Legend_of_Zelda:ROM_map

« Last Edit: May 07, 2020, 03:32:12 am by NesDraug »
Hello! You found my shop of strange and wonderful things!
https://www.tumblr.com/blog/nesdraug

Hasmal

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #28 on: May 08, 2020, 12:26:34 am »
If you look at the Item palette assignments,

https://datacrystal.romhacking.net/wiki/The_Legend_of_Zelda:Items_palette_assignments

none of the swords are listed. They are at $6B5C. The default value is $FF, and it seems to be for the Magic Sword, but the other 2 swords are linked, sequentially. If you change the value to $00 (the next value after $FF), it increments the palettes of all swords and even 'increments' the sprite used. So the White Sword gets the red palette and the Magic Sword sprite. Value $01 increments again, and this time, the Wooden Sword and Magic Sword are swapped.

https://imgur.com/a/4uBLfir

Shadoo

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #29 on: May 08, 2020, 06:23:52 pm »
Hmm not quite sure if I get it right but... It sounds like I can only swap the starting point of the three swords. Afaik it is lke this: the wooden sword uses same colors as for example Link, The white Sword (and magical boomerang) use the same as blue enemies, and the magical sword uses the same colors as red enemies. so even if I swap these three around so the magical sword uses Links colors then the white and wooden sword will use other colors instead?

My goal to make Link and his equipment and all three swords use the same Dark Colors while the world will stay the same will not be achieved by that will it?

NesDraug

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #30 on: May 09, 2020, 02:24:17 am »
Hmm not quite sure if I get it right but... It sounds like I can only swap the starting point of the three swords. Afaik it is lke this: the wooden sword uses same colors as for example Link, The white Sword (and magical boomerang) use the same as blue enemies, and the magical sword uses the same colors as red enemies. so even if I swap these three around so the magical sword uses Links colors then the white and wooden sword will use other colors instead?

My goal to make Link and his equipment and all three swords use the same Dark Colors while the world will stay the same will not be achieved by that will it?

Well, you could redraw the weapon sprites to just have one or two colors with YY-CHR.
Hello! You found my shop of strange and wonderful things!
https://www.tumblr.com/blog/nesdraug

Shadoo

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: My First Hack. Zelda 1. Several questions
« Reply #31 on: May 09, 2020, 03:11:51 am »
I thought about that aswell but the problem still remains. When lets say the Magical Sword shares coors with red enemies and I want to use at least red and black. I could redraw them but the enemies will have 2 of their 3 colors red and black aswell. Or maybe I only color my things black then enemies would still have 2 free colors. But I dont want a compromise when I can smell how close I am to have it a proper way.