ROM Hack Fire Emblem Awakening Same-Sex Marriage (+ More)

UnassumingVenusaur

In All Her Gay Glory
OP
Member
Joined
Nov 20, 2015
Messages
459
Trophies
0
XP
433
Country
United States
I might have just found the code responsible for choosing whether to show "Husband" or "Wife". The function I think is making the choice is at address 0x001F21BC.

I can't easily test it, though. A way to check my guess is to change (in-game memory) address 0x001F260C from 00 00 C8 43 to 00 00 B4 43. This is copying the previous 4 bytes, at 0x001F2608, to 0x001F260C. If I'm right, then "Husband" will always be displayed for married characters, even for male characters.

In case you're curious, those values are 32-bit IEEE754 floating-point constants. I tried looking for the texture coordinates as integers, but couldn't find any of the magic values clustered together. The floating-point constants are all right next to each other, which is why I think that this function is what I'm looking for.
I'm afraid I'm not too terribly experienced with this kind of stuff, so what exactly would I do to help you test this? Thanks.

Oh and btw, I added the BGMs into the repo, I decided it was easier to convert them to .wav and just upload them so that they could be listened to online, as there would be no real way to accurately describe each one.

Thanks for that! I can probably listen through these later and find out what each of their titles are on the OST, so I can add that to the repo later.
 

DeathChaos

Unmei wo koeru!
Member
Joined
Oct 21, 2015
Messages
1,364
Trophies
0
Age
28
XP
1,726
Country
Puerto Rico
I might have just found the code responsible for choosing whether to show "Husband" or "Wife". The function I think is making the choice is at address 0x001F21BC.

I can't easily test it, though. A way to check my guess is to change (in-game memory) address 0x001F260C from 00 00 C8 43 to 00 00 B4 43. This is copying the previous 4 bytes, at 0x001F2608, to 0x001F260C. If I'm right, then "Husband" will always be displayed for married characters, even for male characters.

In case you're curious, those values are 32-bit IEEE754 floating-point constants. I tried looking for the texture coordinates as integers, but couldn't find any of the magic values clustered together. The floating-point constants are all right next to each other, which is why I think that this function is what I'm looking for.
Do you know what file withing the romfs is being read in this memory address? If we can find this out we can probably just patch the function to show Companion in place of Husband/Wife

I'm afraid I'm not too terribly experienced with this kind of stuff, so what exactly would I do to help you test this? Thanks.
This requires live RAM editing, so there's nothing us HANS users can do to test it.
 
Last edited by DeathChaos,

UnassumingVenusaur

In All Her Gay Glory
OP
Member
Joined
Nov 20, 2015
Messages
459
Trophies
0
XP
433
Country
United States
Do you know what file withing the romfs is being read in this memory address? If we can find this out we can probably just patch the function to show Companion in place of Husband/Wife

The file that contains "husband" "wife" "mother" etc is romfs/ui/status_E.ctpk.lz
After decompressing the file with FEAT, I tried to use CTPK Tool to get the .png's (there are three in that file), edited them with photoshop to have "partner" and "parent" instead of the gendered words, repacking it with CTPK tool, recompressing to .lz with LZX from here and putting it back into the game, but somewhere along the way something failed and the status screen image just loaded as green.

requires live RAM editing, so there's nothing us HANS users can do to test it.
Ah, that's too bad.
 

DeathChaos

Unmei wo koeru!
Member
Joined
Oct 21, 2015
Messages
1,364
Trophies
0
Age
28
XP
1,726
Country
Puerto Rico
The file that contains "husband" "wife" "mother" etc is romfs/ui/status_E.ctpk.lz
After decompressing the file with FEAT, I tried to use CTPK Tool to get the .png's (there are three in that file), edited them with photoshop to have "partner" and "parent" instead of the gendered words, repacking it with CTPK tool, recompressing to .lz with LZX from here and putting it back into the game, but somewhere along the way something failed and the status screen image just loaded as green.

Can you link me your edited .pngs?

I have an idea of what you may be doing wrong.
 

DeathChaos

Unmei wo koeru!
Member
Joined
Oct 21, 2015
Messages
1,364
Trophies
0
Age
28
XP
1,726
Country
Puerto Rico
Just a thought but, did you perhaps try using BatchLZ77?

Because it seemed to work perfectly for me, and it also decompresses the file after compressing it with no Problems.

Something seems wrong though;
oKlk1Bz.png
4rGiace.png
KCbiopu.png


However, the character icon is still there on the top left, and clicking on it briefly makes it visible;

UkE7i9U.png
 

Attachments

  • status_E.zip
    175.5 KB · Views: 107
Last edited by DeathChaos,

Myria

Well-Known Member
Member
Joined
Jul 24, 2014
Messages
464
Trophies
0
Age
42
XP
852
Country
United States
Do you know what file withing the romfs is being read in this memory address? If we can find this out we can probably just patch the function to show Companion in place of Husband/Wife

This requires live RAM editing, so there's nothing us HANS users can do to test it.

HANS might be capable of patching the executable, which is all that is needed. I know that it patches some code in the executable already, but I don't know whether it supports adding additional patches.

With an executable modification like this, it would be very easy for me to show Companion instead of Husband or Wife. However, isn't Companion already used by the game? Wouldn't it be confusing to have Companion be both things?

I'm pretty sure that I would be able to patch the code to display Husband or Wife based on their spouse's gender instead of their own. The hard part is actually knowing how to find the partner's gender in memory from that point in the code.

I can test all this myself if you give me a save file and ROM patch with gay/lesbian couples already formed. I haven't played this game before.
 

UnassumingVenusaur

In All Her Gay Glory
OP
Member
Joined
Nov 20, 2015
Messages
459
Trophies
0
XP
433
Country
United States
Just a thought but, did you perhaps try using BatchLZ77?

Because it seemed to work perfectly for me, and it also decompresses the file after compressing it with no Problems.

Something seems wrong though;
oKlk1Bz.png
4rGiace.png
KCbiopu.png


However, the character icon is still there on the top left, and clicking on it briefly makes it visible;

UkE7i9U.png

Hmm... so it sort-of works? I'm glad it slightly works, at least! I have no clue why the character portraits and weapon experience levels are screwed up, though... Maybe something went wrong in Photoshop?

HANS might be capable of patching the executable, which is all that is needed. I know that it patches some code in the executable already, but I don't know whether it supports adding additional patches.

With an executable modification like this, it would be very easy for me to show Companion instead of Husband or Wife. However, isn't Companion already used by the game? Wouldn't it be confusing to have Companion be both things?

I'm pretty sure that I would be able to patch the code to display Husband or Wife based on their spouse's gender instead of their own. The hard part is actually knowing how to find the partner's gender in memory from that point in the code.

I can test all this myself if you give me a save file and ROM patch with gay/lesbian couples already formed. I haven't played this game before.
I've attached a save file with all three kinds of marriages to this post, and installing this patch is as easy as replacing static.bin.lz in romfs/data/person like I described in the initial post. Thank you so much for continuing to help!

Edit: I'm scatterbrained and totally forgot to attach the file. Here it actually is!
 

Attachments

  • Chapter2.zip
    8.8 KB · Views: 103
Last edited by UnassumingVenusaur,

UnassumingVenusaur

In All Her Gay Glory
OP
Member
Joined
Nov 20, 2015
Messages
459
Trophies
0
XP
433
Country
United States
I found the file that contains the character ending text in m/E! It's called エンディング.bin.lz

Maybe someone could play around with this and see if they can put in new ones? If not, I'll probably get around to it eventually. Also, I was unable to find the file (s) that contain the level-up quotes-- does anyone know which one it is? Thanks.
 

DeathChaos

Unmei wo koeru!
Member
Joined
Oct 21, 2015
Messages
1,364
Trophies
0
Age
28
XP
1,726
Country
Puerto Rico
I found the file that contains the character ending text in m/E! It's called エンディング.bin.lz

Maybe someone could play around with this and see if they can put in new ones? If not, I'll probably get around to it eventually. Also, I was unable to find the file (s) that contain the level-up quotes-- does anyone know which one it is? Thanks.
Hmm, I'll have a quick look at it.

Btw, you have lates FW correct?

Smea just released a new version of the Homebrew kit, which contains a loader that allows you to go into the E-Shop and download the old exploitable version of Ironfall, meaning you could Get ironhax, this is great news, because Ironhax is basically the same as Cubic Ninja, where if you have the exploitable version it'll work on any FW as long as they keep updating the payloads, so you should totally do that right now, they also released an update to HomeMenuHax, so yeah, you should probably get to that :P
 

UnassumingVenusaur

In All Her Gay Glory
OP
Member
Joined
Nov 20, 2015
Messages
459
Trophies
0
XP
433
Country
United States
Hmm, I'll have a quick look at it.

Btw, you have lates FW correct?

Smea just released a new version of the Homebrew kit, which contains a loader that allows you to go into the E-Shop and download the old exploitable version of Ironfall, meaning you could Get ironhax, this is great news, because Ironhax is basically the same as Cubic Ninja, where if you have the exploitable version it'll work on any FW as long as they keep updating the payloads, so you should totally do that right now, they also released an update to HomeMenuHax, so yeah, you should probably get to that :P
Woah, really? I'll go download that now.

Edit: I'm on 10.1, do you think it's worth updating to 10.3 just to get Ironhax? I have Cubic Ninja, which should be pretty reliable.
 
Last edited by UnassumingVenusaur,

UnassumingVenusaur

In All Her Gay Glory
OP
Member
Joined
Nov 20, 2015
Messages
459
Trophies
0
XP
433
Country
United States
Who would've thought that the file containing endings would be in "ending.bin.lz"...? =^-^=
Heh heh, I don't know Japanese, so I'm kind of just scraping by with the file names! They're probably all obviously named, but I'm none the wiser.

Edit: I added the save file to my previous post, I can't believe I forgot to attach it.
 
Last edited by UnassumingVenusaur,

foreveryang

Well-Known Member
Member
Joined
Oct 8, 2015
Messages
457
Trophies
0
Age
33
XP
501
Country
United States
im crying because now that i can homebrew i can do this im gonna try thank u so much based smea!!!!!!!!!!!!!!!!!!!!!
 

DeathChaos

Unmei wo koeru!
Member
Joined
Oct 21, 2015
Messages
1,364
Trophies
0
Age
28
XP
1,726
Country
Puerto Rico
Do you have an O3DS or New 3DS?

Because there are some kernel exploits currently being developed, the New 3DS ones only works up to 10.1, while the O3DS one works on the latest firmware.

I wouldn't recommend updating, I myself am on 9.9 currently, and while I kind of want to update for Eshop access, I'll just stay back for now.
 

UnassumingVenusaur

In All Her Gay Glory
OP
Member
Joined
Nov 20, 2015
Messages
459
Trophies
0
XP
433
Country
United States
Do you have an O3DS or New 3DS?

Because there are some kernel exploits currently being developed, the New 3DS ones only works up to 10.1, while the O3DS one works on the latest firmware.

I wouldn't recommend updating, I myself am on 9.9 currently, and while I kind of want to update for Eshop access, I'll just stay back for now.
I'm on O3DS, and since I don't need any new homebrew access point, I'll probably hold off on updating. Cubic Ninja's not going away, and I can use OOT as a backup.
 

foreveryang

Well-Known Member
Member
Joined
Oct 8, 2015
Messages
457
Trophies
0
Age
33
XP
501
Country
United States
Ok so I got everything to work but I still have my old save files, am I supposed to delete them in order for the rom hack to work?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BakerMan @ BakerMan: lorelei from pokemon is so fuckin bad bro