People, who give the player items

View previous topic View next topic Go down

People, who give the player items

Post by Spane on Sun 9 Mar 2014 - 9:44

Can anyone find out the hex adresses of the items the person's will give us? So we can change th items given by the default person's? That would be really awesome because I always wanted the old man on death mountain will give us the moonpeal instead of the magic mirror.

Spane
Elite ROM Hacker
Elite ROM Hacker

Since : 2013-01-22

Back to top Go down

Re: People, who give the player items

Post by Conn on Tue 11 Mar 2014 - 20:03

Not a big deal:

Code:
$1E/E9FF A0 1A      LDY #$1A   
snes 1e/e9ff is pc 0f/69ff and 1a is item 26 (HM storeable). moon Pearl is dec 31, so hex 1f

so if you Change at 0f/6a00:1a -> 1f he happily will give you the moon Pearl!
avatar
Conn
Zelda God - Administrator
Zelda God - Administrator

Since : 2013-06-30

Back to top Go down

Re: People, who give the player items

Post by Spane on Wed 12 Mar 2014 - 3:15

Can you quick explain me to deal with those snes and pc adresses?

Spane
Elite ROM Hacker
Elite ROM Hacker

Since : 2013-01-22

Back to top Go down

Re: People, who give the player items

Post by Euclid on Wed 12 Mar 2014 - 4:58

PC Address is simply offset in a hex editor in a unheadered rom.

F6a00 -> change from 1A to 1F that's the fix you want.
avatar
Euclid
Zelda God - Administrator
Zelda God - Administrator

Since : 2012-06-21

Back to top Go down

Re: People, who give the player items

Post by Spane on Wed 12 Mar 2014 - 6:24

Thank's Euclid! So if you want you can search for the other adresses of all person's which give the player items? So we can change them all and itcan be included in the hacking compendium?

As far as i know the remaining person's are:
Sahasrala - Pegasus Boots
The Net Boy - Net
This obe Fish - Quake Medallion

Spane
Elite ROM Hacker
Elite ROM Hacker

Since : 2013-01-22

Back to top Go down

Re: People, who give the player items

Post by Conn on Wed 12 Mar 2014 - 9:12

The Problem is, when they throw the item at you (and you Need to collect it (flute, zora flippers, medallion) it is more asm necessary. I did it once for the flute dig up and you can check here to get an idea:
Zip: http://bszelda.zeldalegends.net/stuff/Con/random_special_treasure.zip
(read the doc).
For me it is now too much effort to check all the code to make it flawlessly. But the net and boots are easy, and I gave you the addresses of interest below.

Also, there's for the old man a check whether you collected the mirror. If you Change it to the Pearl, he will in the cave over and over again.
So you want to Change this as well:
Code:
$1E/E910 AF 53 F3 7E LDA $7EF353[$7E:F353]  
$1E/E914 C9 02
7ef353-02 is the Magic mirror so you Need to write at pc
0F/6910:
af 57 f3 7e c9 01
(since 7ef357-01 is the moon Pearl)


------------------------------------------------------
As for the net:
Code:
$06/B9C6 A0 21       LDY #$21
so at pc $03:39C7: 21 -> desired item

check if you already have collected:
Code:
$06/8D7F AF 4D F3 7E LDA $7EF34D
(pc 03/0d7f) - Change this to the new item ram Location as explained for the old man to not have him reappear.

----------------------------------------------------------
peg boots:
Code:
$05/F1FB A0 4B       LDY #$4B  
so pc 02/F1FC: 4b -> new item  

check if you already have collected:
Code:
$05/F177 AF 55 F3 7E LDA $7EF355
(pc $02/F177) - Change this to the new item ram Location  as explained for the old man to not have him reappear.


Last edited by Conn on Sun 7 Feb 2016 - 7:28; edited 3 times in total
avatar
Conn
Zelda God - Administrator
Zelda God - Administrator

Since : 2013-06-30

Back to top Go down

Re: People, who give the player items

Post by Spane on Wed 12 Mar 2014 - 11:45

Thank's dude this is really awesome! So the moonpearl can't be forgotten :-D

Spane
Elite ROM Hacker
Elite ROM Hacker

Since : 2013-01-22

Back to top Go down

Re: People, who give the player items

Post by Conn on Wed 12 Mar 2014 - 20:59

You're welcome Smile
I also updated the single hacks collection with these items now.
avatar
Conn
Zelda God - Administrator
Zelda God - Administrator

Since : 2013-06-30

Back to top Go down

Re: People, who give the player items

Post by Puzzledude on Sun 7 Feb 2016 - 6:26

Conn, you made a little typo (which is obvious):
peg boots:
Code:
$05/F1FB A0 4B       LDY #$4B  
so pc 05/F1FC: 4b -> new item  
This is actually 02, as 05 is SNES, we need PC address.

check if you already have collected:
Code:
$05/F177 AF 55 F3 7E LDA $7EF355
(pc $02/F177) - Change this to the new item ram Location  as explained for the old man to not have him reappear.

So:
Sahasrahla gives Moon Pearl, instead of Pegasus Shoes:
1.) SNES 05F1FB= A0 4B

PC (HEX) address= 02F1FC (change byte 4B, which is 75 in dec, which are Shoes in HM editor in a chest; change to 1F hex, which is 31 in dec, is Pearl in HM editor in chest). So at 02F1FC change from 4B to 1F.


2.) Fix "check if collected" so he doesn't reappear and give you the Pearl infinite times:
SNES 5F177, PC 2F177= AF 55 F3 7E, which is Ram $7EF355= ie Ram for Shoes.

Change at PC 2F177= to AF 57 F3 7E, which is Ram $7EF357= ie Ram for Pearl.

Or shorter at PC 2F178= from 55 to 57 (since the ram is close by 2 byte value).

Note: I haven't tested this in-game.
avatar
Puzzledude
Elite ROM Hacker
Elite ROM Hacker

Since : 2012-06-20

Back to top Go down

Re: People, who give the player items

Post by Conn on Sun 7 Feb 2016 - 7:29

so pc 05/F1FC: 4b -> new item  
This is actually 02, as 05 is SNES, we need PC address
Thanks Puzz, I corrected this now in my OP as well
avatar
Conn
Zelda God - Administrator
Zelda God - Administrator

Since : 2013-06-30

Back to top Go down

Re: People, who give the player items

Post by Puzzledude on Sun 7 Feb 2016 - 8:00

Conn wrote:
so pc 05/F1FC: 4B -> new item  
This is actually 02, as 05 is SNES, we need PC address
Thanks Puzz, I corrected this now in my OP as well
Yes, like said it's a typo, which could immediately be seen. Otherwise it is because of you that we can change, what the new given items by NPCs will be, since you traced it all.

ROM and RAM is not the same thing. This can be complex for beginners. Obviously you edit the ROM, however the ROM also contains information about RAM addresses, such as in this case. It actually uses little endian (aka reversed), so the command Load Ram address 7EF155, would be something like AF 55 F1 7E in the rom. When you code ASM or trace code, you will either see Ram addresses or the SNES Rom addresses.


Last edited by Puzzledude on Sun 7 Feb 2016 - 8:05; edited 1 time in total
avatar
Puzzledude
Elite ROM Hacker
Elite ROM Hacker

Since : 2012-06-20

Back to top Go down

Re: People, who give the player items

Post by Conn on Sun 7 Feb 2016 - 13:15

ROM = Read Only Memory
RAM = Read Access Memory

The game plays in ram. At each time you can find all information in ram (parameters), vram (graphics), aram (audio). The cpu changes these parameters by either loading data from the rom or ram.

If you manipulate rom (through hex editing), the decisions the cpu makes are changed permanently, if you manipulate ram (like PAR cheats) it is changed temporarily (unless you change ram addresses that goes into sram like items that is of course).
avatar
Conn
Zelda God - Administrator
Zelda God - Administrator

Since : 2013-06-30

Back to top Go down

View previous topic View next topic Back to top


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