ROM Hack [Release] Hyrule Warriors Legends Save Editor & NTR Plugin

Status
Not open for further replies.

aos10

Yuuki chan
Member
Joined
Apr 10, 2012
Messages
4,756
Trophies
2
Age
38
XP
4,029
Country
Saudi Arabia
Is there away to give my weapons 5 starts and 8 slots in US version?
I am using 1.4 update with the dlc,moving the save to the Japanese version will corrupt the save.
also,is there a way to have Max exp in battle?
or easy level up?
 

CyberMario

Well-Known Member
Newcomer
Joined
Jan 10, 2016
Messages
87
Trophies
0
Location
???
XP
191
Country
United States
Hyrule Warriors Legends USA/EUR 1.4.0 — NTR Cheat Plugin

Notable new features:
  • Now automatically detects whether you're in Legend or Adventure mode and applies the correct codes. Let me know if your find a situation you can reproduce that doesn't work.
  • Easter Egg — let me know with a screenshot if you find it, and exactly how to activate/deactivate it. (And no, it's not in the version of gameplg.c linked above.)

readme.txt
Code:
Hyrule Warriors Legends USA/EUR 1.4.0
NTR Cheat Plugin
New3DS Only

Place in correct folder for region
EUR: sd:/plugin/000400000017EB00/cheat.plg
USA: sd:/plugin/000400000017EA00/cheat.plg

###Features###
Maximum:
* Rupees
* Materials
* Delicious fairy foods
* Large gratitude crystals
* Adventure mode items (for all maps including DLC)

In battle:
* Infinite Special
* Infinite Focus Spirit
* Infinite health
* Infinite healing potions

Battle results:
* 10,000 Kills
* 0 Damage taken

* Easter Egg :D

For the battle/results cheats the plugin attempts to detect whether you're
playing Legend/Free mode, or Adventure mode (as different cheats are needed)
Let me know if you encounter a *reproducable* situation where this
doesn't happen

The infinite health code is imperfect. It only works for the first selectable
warrior, it sometimes locks the health of an enemy, and the Master Sword
(also probably the Heart-strong skill) doesn't function as if you have
full health. If these are problems just use the infinite potions code
to keep your health topped up.

————————————————————————————————————————————————————————————————————————————————
Credit goes to BeserkLeon for the 1.2.0 version of this plugin

———Original Credits———
Credit for Rupees and Kills codes — Seasame
Credit for Special, Magic Gauges, and materials codes — Deathwing Zero
Credit for Master Quest Map adventure items code — Ranadiel

God BLESS the "Infinite Magic." I'm a walking nuke.

Bug Report: Cheats like Infinite Magic and Infinite Special stop working after a bit of time per battle.
Conditions to Recreate Bug:
  • US Region
  • Adventure Mode (Master Quest Map)
  • Infinite Health is NOT activated
  • About one minute and 20 seconds has passed on the map

--------------------- MERGED ---------------------------

Is there away to give my weapons 5 starts and 8 slots in US version?
I am using 1.4 update with the dlc,moving the save to the Japanese version will corrupt the save.
also,is there a way to have Max exp in battle?
or easy level up?

The HWL Save Editor can edit most of your weapons (not including Medli, Marin, and the Pegasus Boots)
The editor can also post almost all your levels to 99. The rest of the exp you will have to get in the game. (I suggest creating a weapon that has Exp+, a Fairy that grants you Exp+, and a Exp Potion for the rest)
 
Last edited by CyberMario,

buda81

Well-Known Member
Member
Joined
Sep 13, 2009
Messages
250
Trophies
1
XP
1,791
Country
United States
Is there away to give my weapons 5 starts and 8 slots in US version?
I am using 1.4 update with the dlc,moving the save to the Japanese version will corrupt the save.
also,is there a way to have Max exp in battle?
or easy level up?

NM
 
Last edited by buda81,

BtEtta

Well-Known Member
Member
Joined
Apr 9, 2016
Messages
147
Trophies
0
XP
728
Country
Background for the curious:

HWL can track up to 5 players (even though only 4 will be playable) Notable for the NTR plugin are the bits that track special/focus spirit bars, potions used, damage taken, and KOs. These blocks (each 416 bytes long) are in slightly different places in memory when playing Legends/Free vs. Adventure (Adventure comes 48 bytes earlier in memory) and they always end with a long run (just under half the total block) of 0xFF bytes. I was attempting to detect the current game mode by looking for the start & end of these 0xFF bytes. But they don't stay 0xFF throughout the whole battle. Best as I can currently tell on completing certain sub-missions data starts getting written to this area in block of two bytes, eventually breaking detection of the start point and leaving the plugin with no idea which mode it's in. I had already noticed this before release, so my start point wasn't set to the first 4 0xFF bytes as it stands when the level is started, but I had not tested an example where enough was written to hit the new start point I'd chosen.

I've modified the plugin to detect only the final four 0xFF bytes; as long as it checks for Legend first this should be just as robust as checking both start & end (since those final four 0xFF bytes are well into the second block when playing Adventure mode). Although there's potential that the entire run of 0xFF could be filled in a single mission I consider it unlikely. Should one be found I'd have to find a new way to detect the mode.

Nothing to do with the easter egg :D

Hyrule Warriors Legends USA/EUR 1.4.0-1 — NTR Cheat Plugin
 

link666

Active Member
Newcomer
Joined
Apr 8, 2016
Messages
34
Trophies
0
XP
89
Country
Canada
Would I be able to edit a 1.4 save with the most recent save editor? Because editing all those materials by hand would be a bitch.

And also, does anyone know where character info is stored? Such as level, exp, etc.
I will try my best to help you

This is the Link character full offset. Start at 0002EBF2 and end at 0002EC21 :
FF FF FF FF FF FF FF FF FF 07 FC 3F 20 00 00 00 01 00 70 03 DC 05 00 4B AB B4 60 00 00 00 3F 0B 95 00 15 00 00 00 00 00 00 00 00 00 00 00 00 00

FF FF FF FF FF FF FF FF FF 07 FC 3F 20 – I think this is related to badge offset
4B AB B4 60 – Is the exp offset. Get your character to level 150.
95 – Is the level offset. I know that the hex value for 150 is 96 but you have to do subtract 1 to the value.
00 Between 95 and 15 – is the heart piece
15 – is the heart container. 12 is the max value without the dlc. +3 with the first DLC and +2 with the second DLC. Except for the dlc character Medli have the value 0F and for Marin I don’t know the max yet because I haven’t finish the DLC yet.

Note: that I don’t know if it’s a bug but The max heart is the game are 48 hearts. But I get two extra heart container on the second dlc map so it’s should be 50 heart and maybe more because of the level increase.
 
  • Like
Reactions: infinete

Tomy Sakazaki

Well-Known Member
Member
Joined
Oct 23, 2006
Messages
880
Trophies
0
Website
Visit site
XP
812
Country
Brazil
can i use this address in gateway?
It's not an address, it's the Exp value.
Actually I don't know the exact offsets for each character (either it be in RAM or save file), I've replaced the exp value of one character through guesswork on HxD using the old max exp value from @nedron92 save editor source code to search one exp offset. I've used one value that was around 6400000, game corrected it when I used the character on a level, and then I used Training Dojo + infinite ruppee code from NTR plugin to level up all characters and then I got the correct value.
 

YupItsJocey

Member
Newcomer
Joined
Aug 23, 2014
Messages
17
Trophies
0
XP
106
Country
United States
Are Twili Midna's attack badges supposed to be unable to be selected? I used the save editor to unlock her and the badges wouldn't let me select them so I turned her off and unlocked her legitimately. Afterwards, the attack badges still can't be selected.
 

Tomy Sakazaki

Well-Known Member
Member
Joined
Oct 23, 2006
Messages
880
Trophies
0
Website
Visit site
XP
812
Country
Brazil
If I modify the level does it affect the attack power and the experience of the character?
Nope. Actually it's kinda of the other way around, edit the exp of a character to the max -1, kill any enemy, game will calculate proper level, hearts and base attack. Then end the mission and save the game.
EDIT: The game watches your EXP Points, if it goes up a threshold it will trigger a level up routine that will recalculate base stats of your character, including level.
 
Last edited by Tomy Sakazaki,

DDTarZan

Never getting laid again /s
Member
Joined
Nov 11, 2009
Messages
313
Trophies
1
Age
32
Location
In some trees
XP
1,835
Country
United States
Can someone dump a save file with at least one Level 4+ weapons so I can take a look at what's going on if it isn't as simple as a new ID?
Here's mine, the only weapons on this save is a Level 4 5-star 8 slot weapon for every weapon type and character, and finally Shiek's Level 4+ Harp with no stars and empty slots.
 

Attachments

  • zmha.zip
    5.3 KB · Views: 128

BtEtta

Well-Known Member
Member
Joined
Apr 9, 2016
Messages
147
Trophies
0
XP
728
Country
Thanks. Turns out there's nothing special about them, just more new IDs.
Code:
9B - Burning Gloves
9C - Shining Harp
9D - Gate of Tides
9E - Darkfire Hammer
9F - Sun Dragon Scale
A0 - Incandescent Parasol
A1 - Thunderhead Shackle
A2 - Liquid Goddess Blade
A3 - Inflamed Deity's Mask
A4 - Crackling Ocarina
A5 - Cutlass of Light
A6 - Supercharged Sail
 

BtEtta

Well-Known Member
Member
Joined
Apr 9, 2016
Messages
147
Trophies
0
XP
728
Country
I guess I can toss this out here, after I made one for the Wii U, doing a 3DS version was trivial. It'll make doing weapon edits on the DLC content easier until the save editor gets updated (it also helps with some edits the save editor can't do)

Weapon Translator. (Excel file. Also works with LibreOffice)

Instructions:
The first thing you need to do is export your weapons from your save file in a manner than can be pasted into this sheet.
  1. Open your zmha in your hex editor of choice (instructions will be provided for HxD and Hex Workshop)
  2. Set your column width to 40 bytes.
    HxD: Look for the bytes per row dropdown on the toolbar, click the button to the left of it to disable automatic width and then type 40 into the dropdown and hit enter.
    Hex Workshop: Mouse over the header of the file view on the gap between the hex/text views of the file, the cursor should turn into a drag cursor, drag it until the last column of the hex view is '27'
  3. Jump in the file to the start of the weapons table.
    Press CTRL+G then go to offset '2F372'
    Make sure the 'hex' option is selected and that the offset is from the start of the file.
  4. Hold shift and use 'Page Down' to select everything from here to the end of the file.
  5. Open a new file, set the column width of the new file as above, then copy the table from your zmha.bin to this new file.
    (Do not deselect anything in zmha.bin yet. We'll be coming back later)
  6. Now select the entire contents of this new file and copy as text.
    HxD: Edit Menu-->Copy As…-->Editor View
    Hex Workshop: Edit Menu-->Copy As…-->Text
  7. Open Notepad or your preferred Notepad replacement and paste this copied text in there.
  8. Do a search & replace to turn all spaces into tabs.
    In Notepad what you'll have to do is type a tab character, cut it onto the clipboard, then in the search & replace dialog paste it into the replace field.
    Other text editors may have friendlier ways of specifying tabs in the replace field.
Once you've got this you can transfer it to your spreadsheet
  1. Copy the contents of notepad into the 'Scratchpad' sheet. If you've done everything correctly everything should go separate cells.
  2. Select and copy only the hex bytes part of the data (ignoring the header, offset column, and text view), clear notepad and paste these values into notepad to clear all formatting, once again copy the data out of notepad and this time paste it into the 'Raw' sheet.
If everything has gone correctly each row in the 'Raw' sheet should represent the data from one weapon of the weapons table. The corresponding row of the 'Translated' table should tell you how that data will be interpreted by the game. Including the correct calculations for the final power value once the stars and Evil's Bane/Legendary/Exorcism skills have been taken into effect.

Now make your changes to the 'Raw' sheet Using the 'Translated' sheet to check they're doing what you expect. You'll still need to know the raw values of weapon/skill IDs but you can remind yourself of those from the 'Reference' sheet.

Once you have made your changes you'll need to get them back into your zmha.bin
  1. Copy the now modified data from the 'Raw' sheet. (You don't need to use notepad to clear formatting, the hex editor will ignore it anyway)
  2. If the weapons data in your zmha.bin file is not still selected make sure to reselect it.
  3. HxD: Edit Menu-->Paste Write
    Hex Workshop: Edit Menu-->Paste Special…
    Clipboard format: 'CF_TEXT' (should already be selected)
    And check the 'Interpret as a hexadecimal string' box.
  4. Save the edited file prepare to import it back into your game using your save manager of choice.
    The file size of zmha.bin should be 234,594 bytes. If it isn't you've screwed up somewhere.
The process seems long winded but once you've done the steps a couple of times it's actually quite quick & easy and the advantages of being able to double-check your changes before injecting the save file more than make up for it.

AND REMEMBER: BACKUPS! I will take no responsibility if your only copy of your save file gets screwed through you misusing the spreadsheet or through any mistakes made by me while creating the spreadsheet.

Note that there is the theoretical potential to create a file that crashes the game in certain conditions. Each character stores within their data (just after the EXP if I recall) a row ID of the last selected weapon. When playing Legend mode (or while selecting a character in the gallery) your allies will use this last selected weapon. If you change what type of weapon is in a slot you can give characters the wrong weapon — sometimes the game doesn't know how to handle that.

Either only create new weapons in empty slots, or, after you've made your edits to the weapons, locate the character data (if you know how) and update the row ID to point to a correct weapon. You can also change the characters last weapon by using them in Free or Adventure mode where you're always offered a choice of weapon.
 
Last edited by BtEtta,

link666

Active Member
Newcomer
Joined
Apr 8, 2016
Messages
34
Trophies
0
XP
89
Country
Canada
I have updated my save again with the second DLC.

all character unlocked
all character lv150
all gold skulltula
all heart container/pieces
12 maxed fairies with all skills
all my fairy costume
all my fairy consumables
all weapon unlocked with 5 star 8 empty slot lv4 and lv4+ weapon for each character

Note: Only 12 lv4+ weapon added with the second DLC.
 

Attachments

  • zmha.7z
    3.4 KB · Views: 234

nedron92

Well-Known Member
Member
Joined
Feb 18, 2016
Messages
261
Trophies
0
Age
31
Website
www.github.com
XP
384
Country
Germany
Hell, there are so many changes and things todo.
I will working at the save editor after the 22nd of July - but don't know if I will found all informations I need (like new offsets and such stuff).
Because of my spare time..can someone please collect the new informations they were posted here (offsets/ new max values, new weapons, etc.. you know wat I mean xD) write it to a textfile and can send me as a zip (or attached here in the thread). Then I will have all I need and will hopefully forget no point to implement in 2 1/2 weeks xD
(:
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: $6 for 2 pounds though shits expensive