Zelda III: Hyrule Explorer

Page 3 of 3 Previous  1, 2, 3

Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by Conn on Fri 22 Mar 2019 - 7:00

eyeballkid pm:ed me for help, here's what I did to fix the problem (next to setting 00CBAD: 0C --> 04)

upper rom: corrupt rom by eyeballkid
lower rom: original



when restoring the lower original marked bytes the sequence is fixed


Zelda III: Hyrule Explorer - Page 3 Image228
Conn
Conn

Zelda III: Hyrule Explorer - Page 3 Image212

Since : 2013-06-30

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by eyeballkid on Fri 22 Mar 2019 - 7:15

Conn wrote:
when restoring the lower original marked bytes the sequence is fixed

This is absolutely genius! Thanks so much Smile

I should definitively sit down and learn how this is done... I suppose you found the offending bytes with the debugger? There wouldn't be some kind of tutorial around that gets one started with this?
eyeballkid
eyeballkid

Zelda III: Hyrule Explorer - Page 3 Image213

Since : 2016-12-26

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by Conn on Fri 22 Mar 2019 - 8:19

Great I was able to fix. I have 15 years experience in coding, so I know where to look, and how to work with a debugger. The technique I used was to debug the original and the manipulated corrupt rom with trace once, first logs making anything but trigger the bugged event (pulling the lever). Then I disabled the hook and set it again, triggering the event.

The result is two logs for each rom. I discard the first log (where superfluid actions are logged like walking and such). So the second log contains only the action of interest. Comparing the original with the corrupt log (without the superfluid actions discarded it was only 62 kb long) revealed a change in the X-register. So I searched where this change occurs and restored these bytes (given addresses above).

... and here we go.

As said, I have a lot practical experience, but for somebody without much asm experience finding such stuff is out of reach.
Conn
Conn

Zelda III: Hyrule Explorer - Page 3 Image212

Since : 2013-06-30

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by eyeballkid on Fri 22 Mar 2019 - 8:32

Conn wrote:[...] for somebody without much asm experience finding such stuff is out of reach.

OK, here I see my problem Very Happy

I understand what you explain in theory. I know how to use a debugger (e.g., gdb) for "regular" code. The methodology is obviously very similar. But the assembler code is simply unreadable for me... So, probably I should learn asm.
eyeballkid
eyeballkid

Zelda III: Hyrule Explorer - Page 3 Image213

Since : 2016-12-26

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by Puzzledude on Fri 22 Mar 2019 - 13:36

I thought the further problem was on a different address, since the code might use a pointer and jump there. I wonder if there is a pointer to around 0271C0 in the section around 00CBAD.
Puzzledude
Puzzledude

Zelda III: Hyrule Explorer - Page 3 Image213

Since : 2012-06-20

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by Conn on Fri 22 Mar 2019 - 14:54

Yes, the pointer is this one:
Code:
$01/CC9F B7 B7      LDA [$B7],y[$04:F1CD]  A:F1CD X:0034 Y:0000
$01/CCA1 C9 FF FF    CMP #$FFFF              A:A11B X:0034 Y:0000

$01/CC9F= pc 00CC9F (a bit later executed after 00cbad)
$04:F1CD=pc 0271cd (your pointer)
Conn
Conn

Zelda III: Hyrule Explorer - Page 3 Image212

Since : 2013-06-30

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by zeldaistehbest on Thu 18 Apr 2019 - 4:12

Hi, any chance to get this working with the Master Quest hack?
https://www.romhacking.net/hacks/601/

Thanks.

zeldaistehbest
Newcomer

Since : 2019-04-18

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by eyeballkid on Thu 18 Apr 2019 - 4:33

zeldaistehbest wrote:Hi, any chance to get this working with the Master Quest hack?
https://www.romhacking.net/hacks/601/

Thanks.

Hey! Did you try simply applying the two patches consecutively? Especially in both possible orders ...

EDIT: I gave it a quick try. Applying the Master Quest patch first, and the Hyrule Explorer patch second seems to work fine.
eyeballkid
eyeballkid

Zelda III: Hyrule Explorer - Page 3 Image213

Since : 2016-12-26

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by zeldaistehbest on Fri 19 Apr 2019 - 3:05

Hopefully it works. I'll try it out... Now I wonder if you can combine Master Quest, Redux and Hyrule Explorer.

Thanks!

zeldaistehbest
Newcomer

Since : 2019-04-18

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by eyeballkid on Sat 20 Apr 2019 - 9:02

zeldaistehbest wrote:Now I wonder if you can combine Master Quest, Redux and Hyrule Explorer.

I also gave that a quick try, but Master Quest + Redux already fails...
eyeballkid
eyeballkid

Zelda III: Hyrule Explorer - Page 3 Image213

Since : 2016-12-26

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by Puzzledude on Sat 20 Apr 2019 - 18:51

If you honestly think that combning random different IPS patches is a good idea, think again. While the game "might load", combining any multiple IPS patches is a bad idea, and will most surely produce bugged roms. You need to know exactly what the IPS is doing via hex and make sure the same hex space is not affected, but it usually is, so...
Puzzledude
Puzzledude

Zelda III: Hyrule Explorer - Page 3 Image213

Since : 2012-06-20

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by Conn on Sun 21 Apr 2019 - 4:07

You can use this program to check the compatibility:
https://www.romhacking.net/utilities/1080/
Conn
Conn

Zelda III: Hyrule Explorer - Page 3 Image212

Since : 2013-06-30

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by eyeballkid on Sun 21 Apr 2019 - 9:09

Conn wrote:You can use this program to check the compatibility:
https://www.romhacking.net/utilities/1080/

In principle, very good idea! But Master Quest comes only as .bps / .ups, which the patch checker cannot handle... In principle, one could make an .ips from the patched ROM and then check, though.
eyeballkid
eyeballkid

Zelda III: Hyrule Explorer - Page 3 Image213

Since : 2016-12-26

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by eyeballkid on Sun 21 Apr 2019 - 9:20

Puzzledude wrote:If you honestly think that combning random different IPS patches is a good idea, think again. While the game "might load", combining any multiple IPS patches is a bad idea, and will most surely produce bugged roms. You need to know exactly what the IPS is doing via hex and make sure the same hex space is not affected, but it usually is, so...

Sure. This could very well not work... Hence, I said that I only gave it a quick try and the resulting ROM still loaded fine. That doesn't mean that it isn't broken at a later stage... However, someone interested in combining the different patches is the perfect candidate for testing the result - as they are obviously interested in it anyway.

In general, if the ROM structure was changed during the modifications two patches will most likely not work together as they assume specific parts of the ROM at wrong addresses.

I'd assume that if Hyrule Magic was used for both patches, the ROM will have basically the same structure. In that case, the patches should work more or less as intended.

In summary, what I meant to say is: I only tried if the ROM is not completely broken when combining these patches. In that cases it might be worth to "test by playing" whether it works. MQ+Redux broke right away, which means it will be more involved to get that working.
eyeballkid
eyeballkid

Zelda III: Hyrule Explorer - Page 3 Image213

Since : 2016-12-26

Back to top Go down

Zelda III: Hyrule Explorer - Page 3 Empty Re: Zelda III: Hyrule Explorer

Post by Sponsored content


Sponsored content


Back to top Go down

Page 3 of 3 Previous  1, 2, 3

Back to top


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