bbepis / XUnity.AutoTranslator

MIT License
1.99k stars 293 forks source link

help!When translating dialogue text, an issue appears indicated by "<color=#FFFFFF00>", which causes the dialogue box to freeze. #479

Open Ablank1995 opened 10 months ago

Ablank1995 commented 10 months ago

When I am translating the dialogue text, the code "" appears and causes the dialogue box to freeze. Switching back to the original text does not resolve the issue; I have to exit the game completely. Only by deleting the translated text (reverting to the original text) can I continue playing the game. Snipaste_2024-01-20_19-22-39

I0lOl0I commented 9 months ago

change the PersistRichTextMode settings in your config from Final to Fragment or just disable the rich text handling HandleRichText=True to false

or install local cache server https://github.com/bbepis/XUnity.AutoTranslator/issues/456#issuecomment-1858921467

Ablank1995 commented 9 months ago

It's been modified, but it still shows in the game, and it seems like it's not the normal color code, lacking a \ (<color\=#FFFFFF00>), and adding at the end of the text doesn't work either. Snipaste_2024-01-22_18-02-39


Another game's translation issue. When translating, two lines of results are generated, with the second line having a lot of extra spaces. Snipaste_2024-01-22_18-26-53

Ablank1995 commented 9 months ago

I understand that during the conversation, the game will set the font color to white. After translation, it seems that the game cannot detect the font and will directly report an error "". I tried to modify it according to the method above, but the game still doesn't work properly. I can only change it to Hello?=Hello?\n(你好?). It retains the original text and will change it to white, while the translations will be preserved. This approach can be used, but it doesn't solve the fundamental problem.

Atamg1994 commented 9 months ago

I understand that during the conversation, the game will set the font color to white. After translation, it seems that the game cannot detect the font and will directly report an error "". I tried to modify it according to the method above, but the game still doesn't work properly. I can only change it to Hello?=Hello?\n(你好?). It retains the original text and will change it to white, while the translations will be preserved. This approach can be used, but it doesn't solve the fundamental problem.

tell me the name of the game? or upload the game to the cloud. I'll take a look and try to help you

Ablank1995 commented 9 months ago

Game《LoK-Rebirth 0.1.8.0 Test》 You may need to set it to translate to Chinese (en=zh). The game supports Chinese, so you don't need to add any fonts. To fast-forward through the conversation, after entering the game, choose [Play] - [New Game] - [Select your style] - [Create a character] - [Skip the tutorial] to go to the left (follow the image below to go to the Village). I apologize for being so wordy. :) Snipaste_2024-01-26_16-53-12 拷贝

Atamg1994 commented 9 months ago

Game《LoK-Rebirth 0.1.8.0 Test》

you version win32 /64 ?

Atamg1994 commented 9 months ago

image _AutoGeneratedTranslations.txt the game is configured on a custom node js local server before start game run "game\node_GoogleTranslator_server\start.cmd" downdoad zip archive extract to game folder image

its preset in win64 game game download this 715-lok-rebirth.html

Atamg1994 commented 9 months ago

It's bug

Game《LoK-Rebirth 0.1.8.0 Test》 image

for game 1.8.0 you can use the same archive on the before message, but in the translator settings you need to replace the text !!!!!--fix-- !!! TextGetterCompatibilityMode=False in TextGetterCompatibilityMode=True

because at the moment on the screen ( the text is buggy due to the animation backlight) this is because in the game the effect of highlighting the text is step by step highlighting word by word but the function is trying to find the original text and therefore when the text is translated a bug occurs. but enable TextGetterCompatibilityMode can fix its bug TextGetterCompatibilityMode waits until all manipulations have occurred with the text and only then translates it TextGetterCompatibilityMode=True the option will show the original text while this mechanic is running and at the end it will be translated as nada here are the next 2 screens

original text with animation image end animation image

Ablank1995 commented 9 months ago

Very good, after changing to TextGetterCompatibilityMode=True, the game has not crashed. (Although some overlay translated text, it does not affect normal gameplay.) Thank you:) Snipaste_2024-01-28_09-30-50