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,305
Trophies
3
XP
12,098
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
  • BigOnYa @ BigOnYa:
    Nighty night, wise one, thanks for trying to help.
  • Psionic Roshambo @ Psionic Roshambo:
    To sleep perchance to dream!
  • BigOnYa @ BigOnYa:
    My state has put a heavy tax on vape juice, taxing any juice with nicotine by the weight/oz. So to get around the bs, my local vape store only sells 0 nicotine vape juices, then they also sell straight nicotine in tiny bottles, and you mix it yourself to your 0% juice, lol
    +1
  • BigOnYa @ BigOnYa:
    Damn, is that Wing from South Park?
  • Psionic Roshambo @ Psionic Roshambo:
    BigOnYa hmmm I wonder how long until someone just vapes the straight nicotine lol
  • BigOnYa @ BigOnYa:
    I was gonna say people are not that dumb, but yea you right, some are.
    +1
  • K3Nv2 @ K3Nv2:
    People have put 50mg salt nic in straight subohm coils which is like more powerful hits
    +1
  • BigOnYa @ BigOnYa:
    Hey psi, do they have dress codes down there in FLa, here there are signs on stores that say "No shirt, no service" but curious bout down yonder
  • BigOnYa @ BigOnYa:
    Yea I tried the salts and too strong for me, I prefer the norm juice
  • K3Nv2 @ K3Nv2:
    In Florida they don't serve you if you have clothes on
    +1
  • K3Nv2 @ K3Nv2:
    Fucking raining again
  • BigOnYa @ BigOnYa:
    How can you tell, do you see rain drops on top of other rain drops?
    +1
  • K3Nv2 @ K3Nv2:
    I can tell by whenever your wife done letting out loud ass moans then I get her a ticket back home
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, yeah most places demand clothes and shoes, unless it's some really back water place that I am unaware of lol
    +1
  • BigOnYa @ BigOnYa:
    Cool, I got lunch money for tomorrow then.
  • BakerMan @ BakerMan:
    @K3Nv2 call uremum Sloppenheimer the way she givin me this bomb head
    +1
  • K3Nv2 @ K3Nv2:
    I call uremum alzheimer she forgets to leave
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Time to start a vape straight nicotine challenge, Darwin be praised!
    +1
  • K3Nv2 @ K3Nv2:
    Imagine if Hitler had vapes, we promise it's not cyanide it'll help you quit nicotine
    +1
  • BigOnYa @ BigOnYa:
    Please, walk into my patented vape chamber, aka the non smoking area
  • K3Nv2 @ K3Nv2:
    I do wonder how dominate Germany would've been if they just enlisted Jewish people
  • BigOnYa @ BigOnYa:
    They actually enlisted Muslims, seriously, because the Muslims hates Jews, even tho it was not the supreme race. He claimed common hate, is friendship.
  • K3Nv2 @ K3Nv2:
    He could've just made them walking shields kind of a dumb ass move
  • K3Nv2 @ K3Nv2:
    https://a.co/d/3km8bqC lol cd level quality I fucking hope so
    K3Nv2 @ K3Nv2: https://a.co/d/3km8bqC lol cd level quality I fucking hope so