ROM Hack Translation List of addresses with text in Clannad

Kikazaka1352

New Member
OP
Newbie
Joined
Jul 20, 2020
Messages
3
Trophies
0
Age
22
XP
43
Country
Russia
Hi everyone, I am translating Clannad into Russian.
To translate the text in the main file, I decided to create an ips patch.
In the process of working, I came across a text that looks like a list of addresses is being created to work with.

Снимок экрана 2024-04-12 145127.png
Снимок экрана 2024-04-12 145149.png


While I was working with the emulator, I was able to redefine the addresses in ips patches and there were no problems, but when I decided to check on a real console, I remembered that the address in memory changes every time I start.
Can anyone tell me what to do about it?
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,308
Trophies
3
XP
12,105
Country
Poland
Their approach was completely wrong.

If you want to patch strings with IPS, you patch strings.
If you want to patch static pointers with IPS, you patch offsets in .rel.dyn, not addresses in .data, because game must update addresses to be ASLR compliant. And for that .rel.dyn is used to calculate correct address and then calculated address overwrites static pointers in .data
 
Last edited by masagrator,
  • Like
Reactions: Kikazaka1352

Kikazaka1352

New Member
OP
Newbie
Joined
Jul 20, 2020
Messages
3
Trophies
0
Age
22
XP
43
Country
Russia
Their approach was completely wrong.

If you want to patch strings with IPS, you patch strings.
If you want to patch static pointers with IPS, you patch offsets in .rel.dyn, not addresses in .data, because game must update addresses to be ASLR compliant. And for that .rel.dyn is used to calculate correct address and then calculated address overwrites static pointers in .data
Thank you for your reply. I think my answer will be untimely, since I rarely visit this resource. But I can confirm that your answer is correct and this is exactly the approach I eventually came to
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    wget "Microsoft edge.exe"
  • ZeroT21 @ ZeroT21:
    I'm using linux mint on my other machine, works decent
    +1
  • SylverReZ @ SylverReZ:
    deltree c:\windows\system32\*.* :tpi:
  • SylverReZ @ SylverReZ:
    @ZeroT21, Why not stick to your other machine, no?
  • ZeroT21 @ ZeroT21:
    my other machine is old, mostly used for just browsing , some multimedia stuff as it's just old
  • ZeroT21 @ ZeroT21:
    some tasks like hacking wii mini consoles
  • SylverReZ @ SylverReZ:
    @ZeroT21, You running Windows XP in 2024?
  • K3Nv2 @ K3Nv2:
    Whore yourself out 12 times for $100 and go buy a pc
    +1
  • ZeroT21 @ ZeroT21:
    i got xp but running it off usb only, no way ima keep that
  • ZeroT21 @ ZeroT21:
    it gets hacked/corrupted if i just leave it online for an hour
  • SylverReZ @ SylverReZ:
    @ZeroT21, The Russians are after you lol.
  • K3Nv2 @ K3Nv2:
    Send me your ip I'll remotely fix it
  • ZeroT21 @ ZeroT21:
    @K3Nv2 my head needs fixing if I believe you
  • ZeroT21 @ ZeroT21:
    it's kinda fun watching it happen tho
  • K3Nv2 @ K3Nv2:
    It needs fixing for other things but your pc I can fix
  • ZeroT21 @ ZeroT21:
    over 300+ virus/trojians/worms after scanning, what did I do to deserve this attention lol
  • ZeroT21 @ ZeroT21:
    tho I find it funny when i receive other people's pc/laptops in this state
  • ZeroT21 @ ZeroT21:
    i wont be upgrading unless I cant run the games i want anymore
  • K3Nv2 @ K3Nv2:
    Spill water on it good excuse
  • ZeroT21 @ ZeroT21:
    @K3Nv2 that's like a valid option if someone else is paying for ya
  • K3Nv2 @ K3Nv2:
    Daddy's wallet
  • K3Nv2 @ K3Nv2:
    Ngl hogwarts legacy has good pooping music
    K3Nv2 @ K3Nv2: Ngl hogwarts legacy has good pooping music