giadrosich Posted February 25, 2013 Share Posted February 25, 2013 Bit of an odd request, but I would like the ability to have young Link get hurt when he swings the Megaton Hammer. I was told this would be possible with ASM hacking, so if anyone is skilled in this area, it would be appreciated. Link to comment Share on other sites More sharing options...
0 Samurai Posted February 25, 2013 Share Posted February 25, 2013 I clicked on this, not knowing what to expect. Probably the most unusual thread I've seen. Still, I like the concept. Link to comment Share on other sites More sharing options...
0 Jason777 Posted February 25, 2013 Share Posted February 25, 2013 I'm curious, what would be the purpose? Link to comment Share on other sites More sharing options...
0 Samurai Posted February 25, 2013 Share Posted February 25, 2013 I'm curious, what would be the purpose? Young Link is a wee tike. Swinging that would obviously be hard on his muscles. To be philosophical for a minute, it just goes to show you that everything has a price. The price for not waiting until he is big and strong is alot of pain. Think about it: the most powerful weapons have the worst repercussions. It's a logical and wonderful idea. 2 Link to comment Share on other sites More sharing options...
0 giadrosich Posted February 25, 2013 Author Share Posted February 25, 2013 Young Link is a wee tike. Swinging that would obviously be hard on his muscles. To be philosophical for a minute, it just goes to show you that everything has a price. The price for not waiting until he is big and strong is alot of pain. Think about it: the most powerful weapons have the worst repercussions. It's a logical and wonderful idea. That's actually what I'm going for, you hit it dead on. I've relocated the Hammer to bottom of the well, and Darunia warns adult Link that the hammer has been cursed (it's invisible as young link) and not to use it until he is able to. I want to give the player the ability to use the hammer at that age, but also give a bit of a downside to it. That way it's not so overpowered. 1 Link to comment Share on other sites More sharing options...
0 Mallos31 Posted February 25, 2013 Share Posted February 25, 2013 Do you want it to stay invisible? Link to comment Share on other sites More sharing options...
0 SanguinettiMods Posted February 25, 2013 Share Posted February 25, 2013 If you don't, I could port it and edit the colors. Link to comment Share on other sites More sharing options...
0 Samurai Posted February 25, 2013 Share Posted February 25, 2013 That's actually what I'm going for, you hit it dead on. I've relocated the Hammer to bottom of the well, and Darunia warns adult Link that the hammer has been cursed (it's invisible as young link) and not to use it until he is able to. I want to give the player the ability to use the hammer at that age, but also give a bit of a downside to it. That way it's not so overpowered. Ironic. I also placed that weapon in the Bottom of The Well. I put it in the Coffin room, you? Link to comment Share on other sites More sharing options...
0 giadrosich Posted February 25, 2013 Author Share Posted February 25, 2013 If you don't, I could port it and edit the colors. Well, it would be cool I think to have the hammer have a downside, otherwise, yeah, turning it visible is my only other option. I thought it would take going into fixing the mesh or something I didn't understand from what people have said. I know Zelda's Birthday did it, and I found the topic for who changed it, but as for how, it's a bit beyond me. Whichever way is easier I suppose. If no one really knows how to do this, I can change text easy enough to make it not cursed. XD It was just an idea. *shrug* @samurai I haven't decided yet. It's in the original place where lens used to be at the moment. Link to comment Share on other sites More sharing options...
0 Guest sakura Posted February 26, 2013 Share Posted February 26, 2013 How much damage would you like it to do per swing? Link to comment Share on other sites More sharing options...
0 Three_Pendants Posted February 26, 2013 Share Posted February 26, 2013 Half of a heart was what was originally requested when asked of me, but that was beyond my knowledge. I would imagine that damage amount didn't change. Link to comment Share on other sites More sharing options...
0 Guest sakura Posted February 26, 2013 Share Posted February 26, 2013 Thank you, I went ahead and made it. hammerEdit.zip Please let me know if that's what you wanted, here's the commented assembly source for anyone who might be interested: .org 803D60F0 J 0x80002138 SW A2, 0x0030(SP) .org 80002130 JR RA ; invalidate debug print routine calls NOP ; start of actual hack ADDIU T0, R0, 0x0011 ; Put the item ID for the hammer in T0 LUI T1, 0x8016 ADDIU T1, T1, 0xE667 ; Put the offset for Link's age in T1 LB T1, 0x0000(T1) ; Load Link's age into T1 ADDIU T2, R0, 0x0001 ; Put the age we want (child) in T2 LUI T3, 0x8016 ADDIU T3, T3, 0xE690 ; Set up the offset for Link's health into T3 ADDIU T4, R0, 0x0008 ; Put the amount of health we want to take away into T4 (8 = half heart) BNE A2, T0, 80002174 ; if the item being used is the hammer NOP BNE T1, T2, 80002174 ; and we're child link NOP LH T5, 0x0000(T3) ; read your current amount of health SUB T5, T5, T4 ; take away a half heart worth of health SH T5, 0x0000(T3) ; update your current health ; If the item being used wasn't the hammer or we're not child link, we skip to here J 0x803D60F8 ; go back to where we called this routine, ending it OR A0, A2, R0 ; we replaced this instruction, so make sure it still gets run 3 Link to comment Share on other sites More sharing options...
0 giadrosich Posted February 26, 2013 Author Share Posted February 26, 2013 Thank you, I went ahead and made it. hammerEdit.zip Please let me know if that's what you wanted, here's the commented assembly source for anyone who might be interested: .org 803D60F0 J 0x80002138 SW A2, 0x0030(SP) .org 80002130 JR RA ; invalidate debug print routine calls NOP ; start of actual hack ADDIU T0, R0, 0x0011 ; Put the item ID for the hammer in T0 LUI T1, 0x8016 ADDIU T1, T1, 0xE667 ; Put the offset for Link's age in T1 LB T1, 0x0000(T1) ; Load Link's age into T1 ADDIU T2, R0, 0x0001 ; Put the age we want (child) in T2 LUI T3, 0x8016 ADDIU T3, T3, 0xE690 ; Set up the offset for Link's health into T3 ADDIU T4, R0, 0x0008 ; Put the amount of health we want to take away into T4 (8 = half heart) BNE A2, T0, 80002174 ; if the item being used is the hammer NOP BNE T1, T2, 80002174 ; and we're child link NOP LH T5, 0x0000(T3) ; read your current amount of health SUB T5, T5, T4 ; take away a half heart worth of health SH T5, 0x0000(T3) ; update your current health ; If the item being used wasn't the hammer or we're not child link, we skip to here J 0x803D60F8 ; go back to where we called this routine, ending it OR A0, A2, R0 ; we replaced this instruction, so make sure it still gets run Oh, thanks so much! This is awesome! Now at the risk of sounding totally dumb, how do I make it a permanent part of the mod. XD I really appreciate this--it'll add a bit more weirdness with the mod that I'm going for. Link to comment Share on other sites More sharing options...
0 Mallos31 Posted February 26, 2013 Share Posted February 26, 2013 Use a program like ppf-o-matic. That program is pretty self explanatory. Link to comment Share on other sites More sharing options...
0 giadrosich Posted February 26, 2013 Author Share Posted February 26, 2013 Use a program like ppf-o-matic. That program is pretty self explanatory. If it's a patch, will it stay with the rom? I don't want people to have to patch it separately when they want to play the game. Link to comment Share on other sites More sharing options...
0 Secant Posted February 26, 2013 Share Posted February 26, 2013 Yes, this will stay in the ROM, as you put it, since when you prepare your mod for release and create your own patch, this change will be included. PPF patches work by comparing two different files--an unmodified one and the one you've modified. They must be the same filesize but can have any number of differences, and the patch itself is essentially a map of the differences between the two files, which PPF-o-Matic can use to patch a ROM (or any other file, for that matter). 1 Link to comment Share on other sites More sharing options...
Question
giadrosich
Bit of an odd request, but I would like the ability to have young Link get hurt when he swings the Megaton Hammer. I was told this would be possible with ASM hacking, so if anyone is skilled in this area, it would be appreciated.
Link to comment
Share on other sites
15 answers to this question
Recommended Posts