Romhacking.net

Romhacking => Newcomer's Board => Topic started by: SCD on October 08, 2015, 11:53:50 pm

Title: Need quick help on Hyrule Magic.
Post by: SCD on October 08, 2015, 11:53:50 pm
Hi,

I need a quick help on Hyrule Magic.

I’m trying to restore the unused Sanctuary entrance doorway for the Sanctuary on a hack I’m working on, but I’m having a problem getting it to work right. I tried one thing and I went through the door and walk right to the bottom wall of the Sanctuary and I’m stuck in the building. I tried another thing and I went through the door and it put me in a dark room with no way out. Is there something I need to change with a hex editor to get the door to work right? The door object I’m using uses the numbers 2F and 30 of the Sanctuary door objects.
Title: Re: Need quick help on Hyrule Magic.
Post by: SunGodPortal on October 09, 2015, 12:08:23 am
I'd PM Puzzledude or Seph. I don't recall which, but I know either one or both of them have made a hack with this entrance included.
Title: Re: Need quick help on Hyrule Magic.
Post by: SCD on October 09, 2015, 12:18:27 am
Alright,

I'll PM them so they can help me on this.

Thank you.
Title: .
Post by: Chpexo on October 09, 2015, 05:34:31 pm
.
Title: Re: Need quick help on Hyrule Magic.
Post by: SunGodPortal on October 09, 2015, 07:15:55 pm
Quote
Zeldix.net is where puzzledude and SePH go on and it specializes in Zelda III. If you have any other questions, it would be best to go there.

Yeah and that site is chock full of Zelda III resources too. Awesome site. Highly recommended.
Title: Re: Need quick help on Hyrule Magic.
Post by: SCD on October 09, 2015, 11:36:43 pm
Zeldix.net is where puzzledude and SePH go on and it specializes in Zelda III. If you have any other questions, it would be best to go there.

I checked it out, it's a pretty cool site.

Thanks for the info Chpexo.
Title: Re: Need quick help on Hyrule Magic.
Post by: puzzledude on October 10, 2015, 06:19:52 am
Yes, I believe we talked about this on PM also. As far as I can tell, you want to use the fancy door object 2F or 30 specifically, in the sanctuary as an exit. But this will not work. The game will by default not allow these doors for exiting the house or the sanctuary - even Hyrule castle is questionable. This fancy exit was designed for all the pendant and crystal dungeons and usually if you enter on bg1. I believe 3rd pendant is entered on bg2, probably why the object 30 was programed in the first place.

I can only recomend you to use the door object 02B in the sanctuary with exit-definition-door 033 for this exit to work. You see the problem is that the room above the sanctuary is bg2, after the Mantle is moved, its bg1 again (which is otherwise impossible - you can not go through the door and switch the bg, but here it happens).

So you see the first room uppon entering the sanctuary and the first room uppon entering Hyrule castle... these 2 rooms have some orthodox programing - that's why they probably refuse the dungeon exits 2F and 30.

Title: Re: Need quick help on Hyrule Magic.
Post by: SCD on October 10, 2015, 08:24:52 am
Yes, I believe we talked about this on PM also. As far as I can tell, you want to use the fancy door object 2F or 30 specifically, in the sanctuary as an exit. But this will not work. The game will by default not allow these doors for exiting the house or the sanctuary - even Hyrule castle is questionable. This fancy exit was designed for all the pendant and crystal dungeons and usually if you enter on bg1. I believe 3rd pendant is entered on bg2, probably why the object 30 was programed in the first place.

I can only recomend you to use the door object 02B in the sanctuary with exit-definition-door 033 for this exit to work. You see the problem is that the room above the sanctuary is bg2, after the Mantle is moved, its bg1 again (which is otherwise impossible - you can not go through the door and switch the bg, but here it happens).

So you see the first room uppon entering the sanctuary and the first room uppon entering Hyrule castle... these 2 rooms have some orthodox programing - that's why they probably refuse the dungeon exits 2F and 30.

Alright,

I just though it would have been possible to restore the unused entrance doorway for the Sanctuary, it's not a big deal.

Thank you all for helping me.
Title: Re: Need quick help on Hyrule Magic.
Post by: puzzledude on October 10, 2015, 08:48:45 am
Mannaged to come up with the solution though.

The game will allow this door combination in the sanctuary!
Door object 02F on position 7,
and the exit will work - but this will require for you to also move the wall lower.

And you can see, that the door gfx matches with bg2 wall. This means you need to put the bg2 wall much lower than normal to match that, and the bg1 wall far to low - and partially off-HM-room-screen (this doesn't break the game though).

You can clearly see that the game was not designed for this, but it works nevertheless - a bit forced out.


(http://www.bwass.org/bucket/z3000.png)

(http://www.bwass.org/bucket/z3001.png)
Title: Re: Need quick help on Hyrule Magic.
Post by: SCD on October 10, 2015, 09:15:29 am
Awesome.

How do I move down the door and the bottom wall and how far do I need to move them down? I know how to move the side walls, but I don't know how to do the rest.
Title: Re: Need quick help on Hyrule Magic.
Post by: puzzledude on October 10, 2015, 09:52:45 am
Moving door: select with mouse and then press num4 on the keyboard to change the positions (you need pos7). And you need the door type 02F. (bg3 is checked under edit)

Moving walls - nothing much - with the mouse - pretty much like you move the icons on the desktop - but you need the correct bg checked. In this case the lower wall is on bg1, while the upper wall is also on bg1.

Lower wall is matched with the exit door, upper wall comes on top of it so that the lower wall covers its frame - otherwise a passage from wall to floor.

Try to take this room apart on a test rom to see how walls are made - normal wall and the "deep" or lower wall - to achieve the depth of the room (you know the lower area when you use the indoor steps).

Try to learn from this picture and see what is wrong and what needs to be done for it to be right.
(http://www.bwass.org/bucket/addw.png)
Title: Re: Need quick help on Hyrule Magic.
Post by: SCD on October 10, 2015, 11:01:33 am
I followed your instructions and the doorway works perfectly now.

Thank you very much for helping me on this.
Title: Re: Need quick help on Hyrule Magic.
Post by: puzzledude on October 10, 2015, 11:57:56 am
Nice, also because of this thread
http://www.romhacking.net/forum/index.php/topic,20518.0.html

I'm leaving forum for a while and I also blocked my personal messaging. Don' try to contact me, I won't be there to see it.
Title: Re: Need quick help on Hyrule Magic.
Post by: SCD on October 12, 2015, 11:19:59 am
I ran into a problem from using the Hyrule Magic editor for my hack I'm working on, apparently the editor messes up monologue #371 (the ending sequence text) where the last part of the text gets cut and it won't let you type it back in.

Does anyone know the hex values for the ending sequence text so I can restore the missing text by using a hex editor.
Title: Re: Need quick help on Hyrule Magic.
Post by: ShadowOne333 on January 31, 2016, 08:11:03 pm
I ran into a problem from using the Hyrule Magic editor for my hack I'm working on, apparently the editor messes up monologue #371 (the ending sequence text) where the last part of the text gets cut and it won't let you type it back in.

Does anyone know the hex values for the ending sequence text so I can restore the missing text by using a hex editor.
Sorry to bump this, but I am also running into the very same problem as SCD.
The text is cut off at the end and there's not enough space to manually write it in with a Hex editor.

I have tried ZSE (Zelda Script Editor, simply crashes and closes when I try to add it), adding it with Hyrule Magic (no luck, it keeps deleting the last portion of it) and also with Black Magic (which gives me errors upon importing the script, making it impossible to import that line back).

Anyone has any clue about this?!
It's driving me insane!

The starting point for that particular text is at 0x0762DF in a headerless ROM.
It starts like this:
7A 02 6D 00 6B 02 16 1E
In which 7A is the Speed, 6D is the position and 6B is the window, the [16 1E] is the start of "Welcome".
The whole text finished at 0x7664E with the END code for ALttP [7F].

If someone could shed some light about this, I'd be really grateful!
Title: Re: Need quick help on Hyrule Magic.
Post by: SunGodPortal on January 31, 2016, 08:27:41 pm
Have you thought about shortening some of the preceeding entries or even replacing some that you might not be using (like the Chris Houlihan message) with something like "void" to free up some space?

EDIT: Somewhat related. You may find this thread interesting:
http://www.romhacking.net/forum/index.php/topic,21188.0.html (http://www.romhacking.net/forum/index.php/topic,21188.0.html)
Title: Re: Need quick help on Hyrule Magic.
Post by: ShadowOne333 on January 31, 2016, 08:45:45 pm
Have you thought about shortening some of the preceeding entries or even replacing some that you might not be using (like the Chris Houlihan message) with something like "void" to free up some space?

EDIT: Somewhat related. You may find this thread interesting:
http://www.romhacking.net/forum/index.php/topic,21188.0.html (http://www.romhacking.net/forum/index.php/topic,21188.0.html)

Tried that too.
No luck.

I tried simply opening a clean ROM in HM, saving it and them loaded it up.
The ending text was cut off.

Even worse, it still does the same thing, for some reason the rest of the text is not written, and in the HEX data, it ends with the letter "h" of "hands" and immediately continues with the next message in the monologue, leaving no space whatsoever to even put it the rest there manually.
Title: Re: Need quick help on Hyrule Magic.
Post by: SunGodPortal on January 31, 2016, 08:53:45 pm
Hmm. I personally have never had to deal with this one yet, but I have worked on Bruce Campbell vs Ganon and that ROM does not suffer from this problem. You might want to open it up in a hex editor and compare.

EDIT: I tried an older version of HM to see if it had the same problem and it did. I'm not sure how KGP4death found a way around this because I never thought to ask him. I haven't heard from him since maybe June or July. Last emailed him in August. He disappears like that.
Title: Re: Need quick help on Hyrule Magic.
Post by: ShadowOne333 on January 31, 2016, 09:25:13 pm
Hmm. I personally have never had to deal with this one yet, but I have worked on Bruce Campbell vs Ganon and that ROM does not suffer from this problem. You might want to open it up in a hex editor and compare.

EDIT: I tried an older version of HM to see if it had the same problem and it did. I'm not sure how KGP4death found a way around this because I never thought to ask him. I haven't heard from him since maybe June or July. Last emailed him in August. He disappears like that.

I think I made it work.

Here's what I did:
I grabbed a clean ROM and went to the point where the two ending texts differ, it's at 0x0767FB (headered) and 0x0765FB (headerless) for the original ROM, and in my hack I had the "in your ha" text at 0x076A18 (headerless) and 0x076C18 (headered).
I copied all of the "hands..." and the rest of the text in HEX. From there on, I copied all of the text that wasn't there back in after the last space [59], deleting the "h" in the process, since the original ROM had a control code of B1 which equals "ha" for "hands".

I put the missing text back in and making sure that I had a [7F] code at the end of the Triforce's text and just before the starting text of the Toppo, which is "All right! Take it, thief!". That line is the next one immediately after the Triforce's text.

Okay so after that I ended up with 52 additional bytes.
I scrolled down the ROM a little bit until i ended up in a portion of the ROM where there are a lot FF in there which seem to be doing nothing at all.

I have to delete 52 bytes from those FFs, otherwise the ROM won't even boot due to data shift when I pasted the missing data back in.
After that, I loaded up the ROM and did the glitch to complete the game in under 3 mins...
It worked.

The text after the Triforce sequence seems to be good too.
I have tried talking with the Drunk Man in Kakariko's Inn and he gives the normal text he should give by default, the same went for the Cukeman (Buzzblob sprinkled with Magic Powder) and he gave me the Sahasrahla's text that he should.

I am only trying to find a Toppo to finally put this to rest, but I can't seem to find one.
I want to try out specifically his text because that is the text right after the ending of the Triforce sequence.

But so far so good... I guess.

EDIT:
Just found a Toppo...
IT WORKS! :D
Title: Re: Need quick help on Hyrule Magic.
Post by: SunGodPortal on January 31, 2016, 09:35:06 pm
The fastest way I know of to test the ending is to simply place a hole in the top right corner of the front room of Hyrule Castle and then remove the Ganon sprite from the room before the triforce. As soon as you enter the castle you can drop through the floor into the final boss room, Link will raise his sword and after a few seconds the doors to the triforce shrine will open. It's even quicker if you drawn over the castle gates so you don't have to go into the hole under the bush outside.

Quote
I am only trying to find a Toppo to finally put this to rest, but I can't seem to find one.
I want to try out specifically his text because that is the text right after the ending of the Triforce sequence.

The Toppo is mislabled as "Bunny". In my hack of HM that was one of the sprites where I chose not to go with the official name because it didn't mean as much to me as "GrassJumper". LOL
Title: Re: Need quick help on Hyrule Magic.
Post by: ShadowOne333 on January 31, 2016, 09:39:04 pm
I find the glitch to clip through walls way faster than having to edit the rooms with HM. :P
But yeah, don't know why but apparently what I did seems to be working just fine.

Good grief... I spent the whole day on that shit. O.O
Title: Re: Need quick help on Hyrule Magic.
Post by: SunGodPortal on January 31, 2016, 09:45:49 pm
Quote
But yeah, don't know why but apparently what I did seems to be working just fine.

Good grief... I spent the whole day on that shit. O.O

LOL Yeah. That's how it goes. At least now someone else can view a solution for the problem when they need it.
Title: Re: Need quick help on Hyrule Magic.
Post by: ShadowOne333 on February 03, 2016, 10:05:07 am
I found another workaround for this problem.
One that doesn't involve HEX editing and can be done within Hyrule Magic itself:

We can replace all of the long spaces in message 371 with [Scroll].
The ones between [1],[2] and [3], which are written:

Code: [Select]
[3]First text[Speed 01][Waitkey][1]                                  [2]                            [3]                           [Speed 02]Second text[1]
To fix the problem with line 371, you should replace those lines with [Scroll] like this:
Code: [Select]
[3]First text[Speed 01][Waitkey][1][Scroll][2][Scroll][3][Scroll][Speed 02]Second text[1]The problem is that due to the spaces, Hyrule Magic doesn't save any text after a certain amount of characters, it has some sort of character limit per message.

If anyone writes message 371 that way, Hyrule Magic DOESN'T delete the text after "hands", and it successfully writes the complete text like usual. So everytime you open up Hyrule Magic next time, the text will be there now!
The only difference is that now the text won't be deleted like it did in the original game (deleting letter by letter before going into the next lines of tet). Instead, it now scrolls up and then the following lines of text will be written like if it were a normal text, and it goes by somewhat faster now I think.

It looks nice and unless you see the true ending side by side, you won't tell the difference at all.

Greetings:
Shadow
Title: Re: Need quick help on Hyrule Magic.
Post by: SCD on February 10, 2016, 01:19:24 am
I tried that method, it did let me add the missing text back to the game. But it screws up the ending credits, I think the missing ending text problem that is caused by using the Hyrule Magic editor is something that should be addressed in the Zeldix.net forums.
Title: Re: Need quick help on Hyrule Magic.
Post by: SunGodPortal on February 10, 2016, 01:38:45 am
I don't recall it removing the text from the game, it just doesn't show up in the editor because HM sets an arbitrary limit on how long the dialogue entries can be that this one entry is far too big to adhere to.
Title: Re: Need quick help on Hyrule Magic.
Post by: SCD on February 10, 2016, 01:47:10 am
What happen is it did fix the text in the ending, but it screws up the screens of the ending credits. It didn't show Hyrule Castle on the first screen but after that everything is alright. But after the Smithy screen, the screen goes black and stays black and I think it also crashes the game as well.
Title: Re: Need quick help on Hyrule Magic.
Post by: SunGodPortal on February 10, 2016, 01:53:51 am
Ahhhh. Are you sure you didn't remove some of those "exits" on the overworld that had numbers in the 1000's? They may seem random but they are actually the starting point for the camera scrolls during the ending sequence.
Title: Re: Need quick help on Hyrule Magic.
Post by: SCD on February 10, 2016, 01:58:26 am
No, I didn't remove any of the exits. This problem happened after I tested that method to get the missing text back to the ending screen.
Title: Re: Need quick help on Hyrule Magic.
Post by: SunGodPortal on February 10, 2016, 02:07:13 am
Did you check to see beforehand if it was really gone or did it just not show all of it in the editor and you assumed that it was gone from the game?
Title: Re: Need quick help on Hyrule Magic.
Post by: SCD on February 10, 2016, 02:23:52 am
I don't know, all I know is it screwed up the ending credits screens and I'm not going to use that method to restore the missing text anymore. I think that method screws up some of the offsets and hex values of the ROM.

Maybe this is something you should try and fix in your unofficial update to Hyrule Magic and get rid of the bug that screws up the ending text in the monologue section of the editor where it will no longer cut some of text out.
Title: Re: Need quick help on Hyrule Magic.
Post by: SunGodPortal on February 10, 2016, 02:50:36 am
Quote
I don't know, all I know is it screwed up the ending credits screens and I'm not going to use that method to restore the missing text anymore.

If I understand the situation correctly from my experience with Hyrule Magic, the text does not actually get removed from the game, it just doesn't show the entirety of that particular message in the editor because of a programming oversight. The author set an exact limit on how long each of the dialogue entries could be but apparently forget that there was that one entry that actually exceeded that limit. This is particularly funny considering that all of the following dialogue entries start and end exactly where they are supposed to. He knew where it ended but somehow he set the limit too low for this one entry. For that reason, not all of it shows up HM (despite still being in the game). That said, I am almost certain that if you leave it alone this text will not actually be effected in-game.

Quote
Maybe this is something you should try and fix in your unofficial update to Hyrule Magic and get rid of the bug that screws up the ending text in the monologue section of the editor where it will no longer cut some of text out.

I probably won't be making any changes of this sort to HM as that is far beyond my skill level. Hacking the sprite and item menu was a piece of cake. Fixing bugs/programming errors in HM would be a nightmare even if I had the skills because the source code will never be public. The sad reality is that the bugs in Hyrule Magic will never be fixed. We just have to find ways to deal with them. There's little else we can do. My starter patches are a good example of this. I can't fix HM so I had to hack the ROM in preparation for HM to compensate for it's short-comings.
Title: Re: Need quick help on Hyrule Magic.
Post by: vortex on February 10, 2016, 06:33:43 am
Quote
I tried that method, it did let me add the missing text back to the game. But it screws up the ending credits
Not really, the problems are not connected. That method by Shadow is the best possible solution to the problem and was used in Parallel Worlds - and as you can see the ending screens work as well.

If you give the game more space (make the monologue shorter) it can only be beneficial, since the game has more empty space to work with. The only code affected when editing monologues is the monologue code itself and some pointers code for monologues, as well as camera shake code, which has nothing to do with the ending screens.

Your rom simply got bugged for who knows what reason. There is also a possibility of HM making a severe bug (for no reason) when editing monologues - runs out of space and removes 40 or so monologues completely (not displayed at all - in HM and in the game). In such cases the rom is good for deletion.

There is also a problem with this Triforce monologue in general, since it is too long. Which basically means touching this monologue and saving can destroy the rom (like in your case). It is not smart to tuch this monologue at all, or if you do - then empty it completely first and write something new, which is of "normal" (allowed) length.

And no one can fix that issue of HM without the source code, which is unavailable for this bugged program.
Title: Re: Need quick help on Hyrule Magic.
Post by: ShadowOne333 on February 10, 2016, 09:43:45 am
Looks like I arrived late at the party. :P

In any way, you did one of those steps wrong, because I can go into the credits without any issues using both the glitch method to finish the game in less than 3 minutes and the proper way by loading the ROM-> Enter Pyramid -> Defeat Ganon.

I tested this with the ROM in which I HEX edited the portions of the monologue for the Triforce and it's all working correctly.
If you are somehow getting glitches in the credits then perhaps you did not delete the 52 bytes I deleted after the data bank for the monologue is over.
I counted exactly how many bytes I added for the Triforce message, and then simply deleted the exact number of bytes from the closest free space of the ROM to compensate for that and to not screw up any other addresses in the ROM.

I tested it rigorously, the whole credits and also tried testing each monologue that comes after the Triforce one, and they all showed up fine.

So perhaps what @vortex says is true, maybe you corrupted the ROM in some form or another.
The HEX edited ROM with the fixed monologue was NOT opened up again with Hyrule Magic, so maybe it is screwing up some parts of the ROM.

Sucks that the project's source is not available to fix these kind of problems...
Title: Re: Need quick help on Hyrule Magic.
Post by: SCD on February 10, 2016, 10:55:06 am
Alright, I'll try the method again later. Maybe I did something wrong.
Title: Re: Need quick help on Hyrule Magic.
Post by: SunGodPortal on February 10, 2016, 03:43:23 pm
Best solution: Unless you REALLY need to change this one particular piece of dialogue, just leave it alone.
Title: Re: Need quick help on Hyrule Magic.
Post by: rainponcho on June 08, 2017, 04:55:41 pm
Patched SunGodPortal's Hyrule Magic version with a monologue expansion. Supposedly will work up to 1MB of text. It _looks_ like it works, at least in the editor.
https://www.sendspace.com/file/xfqeiv
Title: Re: Need quick help on Hyrule Magic.
Post by: ShadowOne333 on June 08, 2017, 05:21:12 pm
Patched SunGodPortal's Hyrule Magic version with a monologue expansion. Supposedly will work up to 1MB of text. It _looks_ like it works, at least in the editor.
https://www.sendspace.com/file/xfqeiv
WHAT?! 1MB of dialogue?!
Holy crap I don't even think there's enough NPCs to set that much dialogue into haha.

Title: Re: Need quick help on Hyrule Magic.
Post by: rainponcho on June 08, 2017, 06:39:03 pm
Should've mentioned that it's targeted at the #371 issue. Fixed (?) per request; released as it seems important enough to many HM users.