ROM Hack Discussion Fire Emblem: Three Houses General Hacking

SinsOfSloth

Active Member
Newcomer
Joined
Jul 31, 2019
Messages
30
Trophies
0
XP
530
Country
United States
https://github.com/three-houses-res...s-and-patches-to-existing-files-in-the-update
#4: Copy your mods you wish to patch to the game to romfs\mods. If you edited a file found in the update romfs, emulate the filepath of that file.

Followed that instruction; that's why my .bai files are in romfs/mods/ instead of romfs/common/scenario/bmap/, because I didn't find them in my patch4 update dump, but rather inside DATA0.bin and DATA1.bin, which I had to extract separately. Ergo, no real "filepath" for them.
Also, Alderaan Aldebaran...tried that too, actually; stuck at the Nintendo Switch loading screen, even with absolutely nothing in the /Aldebaran/forge/ folder.
Yes, but if you just ran the script and didn't change the filepath of those files in the base game, there wouldn't be this issue, so I don't know why it's saying it should be in "rom:/mods/common/scenario/bmap/" when it is in "rom:/mods" unless you went back steps, which you shouldn't as steps are steps for a reason.

Aldebaran is probably not the one giving you that stuck screen because you still have your INFO0.bin on your SD card, and it's still trying to find that file.
 

AkiraKurusu

Pokémon's dead
Member
Joined
Dec 29, 2019
Messages
1,286
Trophies
1
Age
26
Location
Northwood, Sydney
XP
3,671
Country
Australia
Yes, but if you just ran the script and didn't change the filepath of those files in the base game, there wouldn't be this issue, so I don't know why it's saying it should be in "rom:/mods/common/scenario/bmap/" when it is in "rom:/mods" unless you went back steps, which you shouldn't as steps are steps for a reason.

Aldebaran is probably not the one giving you that stuck screen because you still have your INFO0.bin on your SD card, and it's still trying to find that file.
Trying Aldebaran again; completely deleted my romFS folder in /atmosphere/contents/... so there wouldn't be any issues on that end.
Uncompressed the Alderbaran_011.7z file (the latest release) and copied the contents of that (the Aldebaran and atmosphere\contents\010055D009F78000\exefs folders) to my SD card.
Copied the files present in that Aldebaran.rar file I created earlier (6, 11, 12, 30, 89, 91, 195, 221, 223, 225, 229, 233, 235, 243) to my SD card (/./Aldebaran/forge/).

There's only two folders in \.\atmosphere\contents\010055D009F78000\ now, those being "cheats" and "exefs". No "romfs" at all.

Booting up my game, and...stuck on Nintendo Switch loading screen.
 

SinsOfSloth

Active Member
Newcomer
Joined
Jul 31, 2019
Messages
30
Trophies
0
XP
530
Country
United States
Trying Aldebaran again; completely deleted my romFS folder in /atmosphere/contents/... so there wouldn't be any issues on that end.
Uncompressed the Alderbaran_011.7z file (the latest release) and copied the contents of that (the Aldebaran and atmosphere\contents\010055D009F78000\exefs folders) to my SD card.
Copied the files present in that Aldebaran.rar file I created earlier (6, 11, 12, 30, 89, 91, 195, 221, 223, 225, 229, 233, 235, 243) to my SD card (/./Aldebaran/forge/).

There's only two folders in \.\atmosphere\contents\010055D009F78000\ now, those being "cheats" and "exefs". No "romfs" at all.

Booting up my game, and...stuck on Nintendo Switch loading screen.
I don't think Aldebaran would put the game in the Nintendo Switch loading screen, especially when you used atmosphere's LayeredFS. It might just be a problem on your end or atmosphere.
 

AkiraKurusu

Pokémon's dead
Member
Joined
Dec 29, 2019
Messages
1,286
Trophies
1
Age
26
Location
Northwood, Sydney
XP
3,671
Country
Australia
I don't think Aldebaran would put the game in the Nintendo Switch loading screen, especially when you used atmosphere's LayeredFS. It might just be a problem on your end or atmosphere.
Have you successfully managed to play edited battles before? If so, then could you send me a .rar of what's worked for you, so I can see explicitly where I messed up?
 

AkiraKurusu

Pokémon's dead
Member
Joined
Dec 29, 2019
Messages
1,286
Trophies
1
Age
26
Location
Northwood, Sydney
XP
3,671
Country
Australia
Nope, never did.You can try asking the 3DSFE/TH Romhacking discord.
I was going to, but after I asked for help last night through GitHub, I found earlier today that Raytwo was being incredibly demeaning, so I don't exactly feel comfortable going there...
Annotation 2020-03-11 151430.png Annotation 2020-03-11 151431.png
 
  • Like
Reactions: Coolmotif30

SinsOfSloth

Active Member
Newcomer
Joined
Jul 31, 2019
Messages
30
Trophies
0
XP
530
Country
United States
I was going to, but after I asked for help last night through GitHub, I found earlier today that Raytwo was being incredibly demeaning, so I don't exactly feel comfortable going there...
View attachment 199186 View attachment 199187
Your choice. He doesn't mean to be demeaning; he's just used to having to walk people through everything. But you most likely won't get any answers anywhere else other than there.
 

DestinyFeather

Well-Known Member
Member
Joined
Sep 14, 2009
Messages
428
Trophies
1
XP
1,121
Country
United States
Romhacking's difficult. It's like doing those competitive programming sites where maybe five geniuses can do it all and perfectly, there are no answers anywhere, there are some hints maybe. Some people might have shared their answers for the simpler ones, but their explanations don't click and understanding their solutions are beyond that of mere mortals. Plus it's all in hex and there's nooooo console log, we die like men.
 

Coolmotif30

Well-Known Member
Member
Joined
Feb 22, 2020
Messages
106
Trophies
0
Age
38
XP
419
Country
United States
Your choice. He doesn't mean to be demeaning; he's just used to having to walk people through everything. But you most likely won't get any answers anywhere else other than there.

"They should feel honored that I even bothered to reply considering how rarely I try to help babeys and they just don't even read"

Totally not demeaning at all
 

AkiraKurusu

Pokémon's dead
Member
Joined
Dec 29, 2019
Messages
1,286
Trophies
1
Age
26
Location
Northwood, Sydney
XP
3,671
Country
Australia
"They should feel honored that I even bothered to reply considering how rarely I try to help babeys and they just don't even read"

Totally not demeaning at all
I view my posts on that GitHub Issues thing as me trying to figure out why it wasn't working for myself, personally, so I'd know how to fix it again in future.
Not just be told the solution, and thus miss out on comprehending how that solution works.

Maybe I was being a bit rude, but "try to figure it out yourself" is what I was taught throughout my school years; I won't apologise for that, and even so I definitely didn't deserve such a horrible description on a different site, where I would most certainly read it considering I was given the server invitation link.

Great job, Raytwo - you failed to realise I was trying to work it out for myself (where you could've guided me towards the correct solution, if you had the smallest inkling of patience), and you also killed any respect I might've held for you. Further, you killed any interest I had left for the game too, since this is my third playthrough of Part One and I wanted to change the battles up a bit.
If you manage to read this, you should realise you should've handled this a lot better - and if you are truly such a toxic and impatient person that you felt the need to belittle me behind my back, then you shouldn't do it in such a "public" area. I shall never ask anything of you again; @SinsOfSloth is a much more moral and likable person because they at least tried to help me without rudely disappearing and being condescending (and I truly do thank you for that, Sloth).

So yes, I'm done with Fire Emblem: Three Houses for the foreseeable future. I likely won't post here again for a while. See ya.
 
Last edited by AkiraKurusu,
  • Like
Reactions: Khalyus

Coolmotif30

Well-Known Member
Member
Joined
Feb 22, 2020
Messages
106
Trophies
0
Age
38
XP
419
Country
United States
I view my posts on that GitHub Issues thing as me trying to figure out why is wasn't working for myself, personally, so I'd know how to fix it again in future.
Not just be told the solution, and thus miss out on comprehending how that solution works.

Maybe I was being a bit rude, but "try to figure it out yourself" is what I was taught throughout my school years; I won't apologise for that, and even so I definitely didn't deserve such a horrible description on a different site, where I would most certainly read it considering I was given the server invitation link.

Great job, Raytwo - you failed to realise I was trying to work it out for myself (where you could've guided me towards the correct solution, if you had the smallest inkling of patience), and you also killed any respect I might've held for you. Further, you killed any interest I had left for the game too, since this is my third playthrough of Part One and I wanted to change the battles up a bit.
If you manage to read this, you should realise you should've handled this a lot better - and if you are truly such a toxic and impatient person that you felt the need to belittle me behind my back, then you shouldn't do it in such a "public" area. I shall never ask anything of you again; @SinsOfSloth is a much more moral and likable person because they at least tried to help me without rudely disappearing and being condescending (and I truly do thank you for that, Sloth).

So yes, I'm done with Fire Emblem: Three Houses for the foreseeable future. I likely won't post here again for a while. See ya.


Sad to see you go! I was learning through your asking of questions.
 

Nemmeh88

Member
Newcomer
Joined
Feb 15, 2020
Messages
16
Trophies
0
Age
36
XP
73
Country
United Kingdom
I was wondering if anyone did a playthrough with the injectable characters. Do they learn abilites/combat arts/spells like regular characters? does anyone have a list or any data regarding that? Also is there any information on their growth rates? And what about their supports? Let me know what you found out or if you have any source on that topic. Cheers!
 

Coolmotif30

Well-Known Member
Member
Joined
Feb 22, 2020
Messages
106
Trophies
0
Age
38
XP
419
Country
United States
I was wondering if anyone did a playthrough with the injectable characters. Do they learn abilites/combat arts/spells like regular characters? does anyone have a list or any data regarding that? Also is there any information on their growth rates? And what about their supports? Let me know what you found out or if you have any source on that topic. Cheers!

Some of the characters learn stuff and some don't. I'm pretty sure only Rhea and Jeralt actually learn stuff. I could be wrong. Sothis doesn't. If you go to the Fire Emblem wiki they have the data for Rhea and Jeralt and when and what they learn.
 

DestinyFeather

Well-Known Member
Member
Joined
Sep 14, 2009
Messages
428
Trophies
1
XP
1,121
Country
United States
I was wondering if anyone did a playthrough with the injectable characters. Do they learn abilites/combat arts/spells like regular characters? does anyone have a list or any data regarding that? Also is there any information on their growth rates? And what about their supports? Let me know what you found out or if you have any source on that topic. Cheers!
One of the big 3H dataminer is DeathChaos. I got interested in their stuff when I saw that they datamined the learnsets of 3H units before they were released in the DLC. 99% of the time dataminers have a github where they document how to get their findings.

Anyway, I had the same question you did. To figure this out, you consult https://docs.google.com/spreadsheet...ulVos3j8dtPBr0mDB-vLWib54/edit#gid=1616992074 made by 3096 and find out that the last update to nx/data/fixed_persondata.bin was in the final dlc patch 4. So you dump the romfs of dlc 4 (easy to do in yuzu, simply right click the rom, but on a switch I believe you will need hactool or something) and you will find files such as DATA0.bin and DATA1.bin with extractIndexNum.py https://github.com/three-houses-research-team/Throne-of-Knowledge/blob/master/extractIndexNum.py. It will the 12th bin or named something like 12.bin I believe. There used to be a .bat script that you simply clicked on and it autorenamed files to their index number (in this case 12) - actual filename (in this case fixed_persondata.bin) , but I believe that one didn't really work, at least for me and it doesn't seem to be on that github anymore.

When we normally open up something like a bin file we'll usually do that in a hex editor because there are no specialised readers that can open it up. There's a special type of hex editor called the 010 editor by sweetscape which lets people write these mini script things that will automagically locate what sections contain interesting data and will read that data into a format that people can understand. After loooking through https://github.com/three-houses-research-team/010-binary-templates you find that fixed_persondata.bin by DeathChaos sounds awfully similar to PersonData.bt. PersonData.bt also seems to have all sorts of interesting fields such as SkillListStructure etc in it which further makes you suspicious that this is the right .bt file. PersonData.bt also has File: Person.bin at the top of it, so maybe this isn't it? But anyway, let's experiment.

You try opening fixed_persondata.bin in 010 editor and nothing is highlighted. So you go to Templates/Open Template and open up your downloaded PersonData.bt template. You open up your fixed_persondata.bin. Now there's a tiny menu under the fixed_persondata.bin light blue tab called Run Template: PersonData.bt. You click that template from the dropdown menu and voila, it says Template executed successfully which means this is most likely our correct file.

Go to view/inspector windows and make sure your Variable window is showing. If you expand struct File file, there are a lot of interesting names there:
upload_2020-3-14_10-50-47.png

Let's check the spell list for Aelfric.
He's character id 1044 according to Falo's save editor.
You open up the spell list table and find...
upload_2020-3-14_10-56-45.png

It ends there. But for some reason the characters don't match up?
So you go back onto DeathChaos' discord, search for anyone with a PersonData.bt who can reveal the pertinent information and find out that on 23/01/2020 HeartlessSeph made a personal revision called PersonData_-_Revised.bt available at https://cdn.discordapp.com/attachments/604337130650730498/669680280365432832/PersonData_-_Revised.bt
Which you load into your 010 editor.
You now have some npcs.
You have Sothis, who now has an invisible name, who has no spell list.
upload_2020-3-14_11-8-57.png

Rhea, who has spells.
upload_2020-3-14_11-9-11.png

Jeralt who has some spells
upload_2020-3-14_11-9-31.png

Aelfric who has some spells
upload_2020-3-14_11-10-7.png

So that's how I found my answer. In each character block, you will also find growths and stats. NPC characters won't have supports, as evidenced when you load your save file with them injected.

Even though NPC characters may not have spells, you might be able to give them spells with falo's save editor (save editing be a lot easier than romhacking, probably). What you basically do is export the .character file to your hex editor of choice as in my example here https://gbatemp.net/threads/fire-emblem-three-houses-general-hacking.544144/page-150#post-8962018 There is a list of spells and what ids correlate with them in https://github.com/three-houses-research-team/010-binary-templates/blob/master/3H_WepEnums.bt under enum<ubyte> SpellID. Simply, use a decimal to hex converter https://www.rapidtables.com/convert/number/decimal-to-hex.html to get the right values, edit em in and reimport the .character file.
 

Attachments

  • upload_2020-3-14_11-9-54.png
    upload_2020-3-14_11-9-54.png
    19 KB · Views: 321

Coolmotif30

Well-Known Member
Member
Joined
Feb 22, 2020
Messages
106
Trophies
0
Age
38
XP
419
Country
United States
One of the big 3H dataminer is DeathChaos. I got interested in their stuff when I saw that they datamined the learnsets of 3H units before they were released in the DLC. 99% of the time dataminers have a github where they document how to get their findings.

Anyway, I had the same question you did. To figure this out, you consult https://docs.google.com/spreadsheet...ulVos3j8dtPBr0mDB-vLWib54/edit#gid=1616992074 made by 3096 and find out that the last update to nx/data/fixed_persondata.bin was in the final dlc patch 4. So you dump the romfs of dlc 4 (easy to do in yuzu, simply right click the rom, but on a switch I believe you will need hactool or something) and you will find files such as DATA0.bin and DATA1.bin with extractIndexNum.py https://github.com/three-houses-research-team/Throne-of-Knowledge/blob/master/extractIndexNum.py. It will the 12th bin or named something like 12.bin I believe. There used to be a .bat script that you simply clicked on and it autorenamed files to their index number (in this case 12) - actual filename (in this case fixed_persondata.bin) , but I believe that one didn't really work, at least for me and it doesn't seem to be on that github anymore.

When we normally open up something like a bin file we'll usually do that in a hex editor because there are no specialised readers that can open it up. There's a special type of hex editor called the 010 editor by sweetscape which lets people write these mini script things that will automagically locate what sections contain interesting data and will read that data into a format that people can understand. After loooking through https://github.com/three-houses-research-team/010-binary-templates you find that fixed_persondata.bin by DeathChaos sounds awfully similar to PersonData.bt. PersonData.bt also seems to have all sorts of interesting fields such as SkillListStructure etc in it which further makes you suspicious that this is the right .bt file. PersonData.bt also has File: Person.bin at the top of it, so maybe this isn't it? But anyway, let's experiment.

You try opening fixed_persondata.bin in 010 editor and nothing is highlighted. So you go to Templates/Open Template and open up your downloaded PersonData.bt template. You open up your fixed_persondata.bin. Now there's a tiny menu under the fixed_persondata.bin light blue tab called Run Template: PersonData.bt. You click that template from the dropdown menu and voila, it says Template executed successfully which means this is most likely our correct file.

Go to view/inspector windows and make sure your Variable window is showing. If you expand struct File file, there are a lot of interesting names there:
View attachment 199400
Let's check the spell list for Aelfric.
He's character id 1044 according to Falo's save editor.
You open up the spell list table and find...
View attachment 199401
It ends there. But for some reason the characters don't match up?
So you go back onto DeathChaos' discord, search for anyone with a PersonData.bt who can reveal the pertinent information and find out that on 23/01/2020 HeartlessSeph made a personal revision called PersonData_-_Revised.bt available at https://cdn.discordapp.com/attachments/604337130650730498/669680280365432832/PersonData_-_Revised.bt
Which you load into your 010 editor.
You now have some npcs.
You have Sothis, who now has an invisible name, who has no spell list.
View attachment 199402
Rhea, who has spells.
View attachment 199403
Jeralt who has some spells
View attachment 199404
Aelfric who has some spells
View attachment 199406
So that's how I found my answer. In each character block, you will also find growths and stats. NPC characters won't have supports, as evidenced when you load your save file with them injected.

Even though NPC characters may not have spells, you might be able to give them spells with falo's save editor (save editing be a lot easier than romhacking, probably). What you basically do is export the .character file to your hex editor of choice as in my example here https://gbatemp.net/threads/fire-emblem-three-houses-general-hacking.544144/page-150#post-8962018 There is a list of spells and what ids correlate with them in https://github.com/three-houses-research-team/010-binary-templates/blob/master/3H_WepEnums.bt under enum<ubyte> SpellID. Simply, use a decimal to hex converter https://www.rapidtables.com/convert/number/decimal-to-hex.html to get the right values, edit em in and reimport the .character file.

this explanation was amazing. Thank you! I went through and edited the magic everyone could learn! awesome. Then changed people's classes and all magic editing gone... oh well, still fun
 

Nemmeh88

Member
Newcomer
Joined
Feb 15, 2020
Messages
16
Trophies
0
Age
36
XP
73
Country
United Kingdom
One of the big 3H dataminer is DeathChaos. I got interested in their stuff when I saw that they datamined the learnsets of 3H units before they were released in the DLC. 99% of the time dataminers have a github where they document how to get their findings.
.

Wow, thanks a lot for that detailed explanation! Will see what I can find out.
 

DestinyFeather

Well-Known Member
Member
Joined
Sep 14, 2009
Messages
428
Trophies
1
XP
1,121
Country
United States
ohohohohoh ok! I'm new to all of this. I get it now. I'm excited to try it. Thank you!
Spells probably get lost when the game realises there's no natural character spell list, so if you romhacked in a natural spell list it probably stays, but I guess just editing the spell list after class changes is easier
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Let me finish do the harder drugs