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,332
Trophies
3
XP
12,177
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:
    Sirloin sounds good tonight
    +1
  • BakerMan @ BakerMan:
    yeah it does
  • BakerMan @ BakerMan:
    RIP Vimm's Lair (most of the games anyway), you will be missed

    also i think this is a great time and reason to bring back a hashtag previously used about ubisoft
    +1
  • BakerMan @ BakerMan:
    #stopkillinggames
    +1
  • BigOnYa @ BigOnYa:
    #mailmesomesirloinsteak
  • K3Nv2 @ K3Nv2:
    Mail you deeze nuts
  • BigOnYa @ BigOnYa:
    That be cheap, flat rate small envelope. Me- "Hey this envelope is empty, oh that makes since."
  • K3Nv2 @ K3Nv2:
    Still fits in your mouth the same way
  • BigOnYa @ BigOnYa:
    I was looking at steaks other day at grocery, can't believe some cuts (angus) are like $25 a pound. Crazyness. Price of good fish is just as bad.
  • BakerMan @ BakerMan:
    when i go to college,what do you guys think i should major?
  • BakerMan @ BakerMan:
    inb4 computer science
  • BigOnYa @ BigOnYa:
    Fake Leg scratching 101
  • K3Nv2 @ K3Nv2:
    IT support you can act like your own farts smell like cherries that way
  • K3Nv2 @ K3Nv2:
    Odin 2s $300 lol no
  • Scarlet @ Scarlet:
    The Mini is even more lol
  • K3Nv2 @ K3Nv2:
    That RG cube is starting to look like the better value price creep option
    +1
  • BigOnYa @ BigOnYa:
    I want a handheld gaming system with a tablet sized screen, like a 8 or10" screen, with controllers that can detach like the Switch.
  • BakerMan @ BakerMan:
    @BigOnYa i was legitimately trying to scratch my leg, this is reminding me of that cylinder post
  • Scarlet @ Scarlet:
    I don't see the buzz about a square screen personally. I think there will be a review on the site within a few weeks though if you are interested.
    +1
  • Scarlet @ Scarlet:
    I've put down the money on the Odin 2 Mini since I just love that Vita form factor. Loved the power of the Odin 2 but the size always put me off, this one seems exactly what I've been wanting.
  • K3Nv2 @ K3Nv2:
    I don't care about the square screen it's just nice to hold something you don't have to stretch your arms a foots length
  • K3Nv2 @ K3Nv2:
    All these things expecting to be super huge is overrated just run a type c cable to your TV if you want a big display or in my case screen mirror it
  • BigOnYa @ BigOnYa:
    On the go tho I meant, I use my 10" tablet and a Bluetooth controller for retro gaming while sitting on my porch or on long car rides sometimes. Easier on my eyes than the Switch screen.
  • K3Nv2 @ K3Nv2:
    My point is we already have enough shit with big displays having something pocketable with up to ps2 would be fine on the go
    +1
    K3Nv2 @ K3Nv2: My point is we already have enough shit with big displays having something pocketable with up to... +1