Kaplas80 / TranslationFramework2

Aplicación para facilitar la traducción de diferentes juegos
37 stars 15 forks source link

Texts not found - Yakuza Kiwami #22

Closed linkmadao closed 3 years ago

linkmadao commented 3 years ago

Looking deeper into our project, I couldn't find the following words to translate.

Text: Enabled Screen: Settings -> Graphics Item: v-sync image

Text: Off Screen: Settings -> Graphics -> Advanced Item: render scale image

Text: Off Screen: Settings Item: hide interface image

Text: Off Screen: Settings -> Remap buttons controller Item: hide interface image

Text: Autosave Screen: Continue image

Kaplas80 commented 3 years ago

Hello!

I don't remember those specific strings, but maybe I left them out because they broke the game when translated.

Anyway, you can search them inside the exe with an hex viewer and if you find them, you can add their offsets to AllowedStringOffsets list to make the app show them for translation.

linkmadao commented 3 years ago

I'm putting this way, is correct? image

image

Kaplas80 commented 3 years ago

No, that is the translated exe. You have to use the string offset from the original exe.

But... If Autosave is there, it means that my app has already found it and you should be able to translate it.

linkmadao commented 3 years ago

You didn't understand what i've sayed kkkk. I'm just ask if the method i used on Tuple is right, based in results showed in image.

Kaplas80 commented 3 years ago

The strings are stored in groups inside the exe. You have to write the offset of the first string at the first item of the tuple and the offset of the last string at the second item. As an example:

image

That is a group of 2 strings: Autosave Complete is the first string and it starts at offset 0x00CA5B38 and Autosave is the last string and it starts at offset 0x00CA5B50

So, in the code there is the tuple: new Tuple<long, long>(0x00CA5B38, 0x00CA5B50),

image

And you have to keep in mind that the application will only translate strings that are located in the .rdata section and are referenced in the .data section. Any other string will be ignored even if you write a tuple for it.

Kaplas80 commented 3 years ago

Hi!

Were you able to find and add more texts to translate?

linkmadao commented 3 years ago

No, I haven't had time yet to look again at the missing texts.

But we can close this topic, because I already understood how it should be done.