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,333
Trophies
3
XP
12,178
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
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
  • K3Nv2 @ K3Nv2:
    I tried that new Pepsi lime it just taste like pepsi
  • DTApple @ DTApple:
    With lime, right?
  • K3Nv2 @ K3Nv2:
    Just pepsi lol
  • K3Nv2 @ K3Nv2:
    Oh yeah it's D-Days 80th anniversary today
  • BigOnYa @ BigOnYa:
    I drink the Coke with lime all the time, in my Spiced rum (Captain Morgans) I hate pepsi
  • K3Nv2 @ K3Nv2:
    Probably better just to jizz a lime squeeze inside it
  • DinohScene @ DinohScene:
    volvic > anything else
    +1
  • K3Nv2 @ K3Nv2:
    My piss is water
  • BigOnYa @ BigOnYa:
    That looks like the router i just got from microcenter. Spectrum wanted to charge me $7 a month for a wifi router, so I said no thank you and just bought one, I paid like $65 tho
  • K3Nv2 @ K3Nv2:
    Linksys?
  • BigOnYa @ BigOnYa:
    Yea its Linksys, but not sure if same model, has 4 antennas
  • K3Nv2 @ K3Nv2:
    6gbps and two usb ports that supports ntfs is pretty solid dont care if it's reconditioned for $55
  • K3Nv2 @ K3Nv2:
    Just trying to figure out if it's vpn supported
  • K3Nv2 @ K3Nv2:
    I could probably set it up like a nas device
  • K3Nv2 @ K3Nv2:
    TP your router
    +1
  • K3Nv2 @ K3Nv2:
    Unless @Psionic Roshambo can convince me to spend $100 on a better option I'm probably going with it
  • BigOnYa @ BigOnYa:
    Works great for me, all i need. Can go way back on edge of property and still get 3/5 bars. And it let me setup IP Vanish on it no problem.
  • K3Nv2 @ K3Nv2:
    Google fibers router sucks keeps randomly blocking websites
  • BigOnYa @ BigOnYa:
    Does it say "Unexpected Database Error"?
  • K3Nv2 @ K3Nv2:
    Might as well 403
    +1
  • K3Nv2 @ K3Nv2:
    I yell at my isp like listen if I get a virus that's on me stop trying to protect me
    +1
  • BakerMan @ BakerMan:
    and i just scratched my leg again, this time fortunately the only thing that came out was the itch
    BakerMan @ BakerMan: and i just scratched my leg again, this time fortunately the only thing that came out was the itch