XUnity.AutoTranslator icon indicating copy to clipboard operation
XUnity.AutoTranslator copied to clipboard

DeepL endpoint missing

Open Vorked opened this issue 1 year ago • 9 comments

Being on previous versions of XUnity and BepInEx, I had come across an issue where DeepL stopped outputting. The translations received have gotten exponentially worse. So I decided up upgrade and moved to the newest stable versions of each, but it's still causing this issue.

Everyone using my mod is also reporting this exact issue with DeepL. Is there a fix or a way around this?

image image

Vorked avatar Oct 26 '23 06:10 Vorked

image A little more proof that this isn't on my end.

Vorked avatar Oct 28 '23 06:10 Vorked

Looks like deepl changed the call for getClientState for their web client. The old url does not seem to work anymore and inspecting the website, the url seems to be different.

The pull request above changes the url being used as well as the method of the request to fix the problem. Verified working on 2 instances, though further test/checking might be required to confirm the fix. image

Vin-meido avatar Oct 29 '23 02:10 Vin-meido

Looks like deepl changed the call for getClientState for their web client. The old url does not seem to work anymore and inspecting the website, the url seems to be different.

The pull request above changes the url being used as well as the method of the request to fix the problem. Verified working on 2 instances, though further test/checking might be required to confirm the fix. image

Thanks for this, it's a big help. Due to my smooth brain, I'm going to see if someone can compile the changes for me.

Vorked avatar Oct 29 '23 03:10 Vorked

Looks like deepl changed the call for getClientState for their web client. The old url does not seem to work anymore and inspecting the website, the url seems to be different.

The pull request above changes the url being used as well as the method of the request to fix the problem. Verified working on 2 instances, though further test/checking might be required to confirm the fix. image

Can you please compile this version I don't think this will be merged anytime soon

ertup0 avatar Nov 05 '23 14:11 ertup0

I would be wary to accept dlls from non-known project maintainers, but there is indeed quite a lot of issue backlog atm, and the build could use more users to confirm if it fixes the problem for them...

Here you go. Find DeepLTranslate.ExtProtocol.dll and replace it with the file in the zip package.

DeepLTranslate.ExtProtocol.zip

Vin-meido avatar Nov 05 '23 16:11 Vin-meido

I would be wary to accept dlls from non-known project maintainers, but there is indeed quite a lot of issue backlog atm, and the build could use more users to confirm if it fixes the problem for them...

Here you go. Find DeepLTranslate.ExtProtocol.dll and replace it with the file in the zip package.

DeepLTranslate.ExtProtocol.zip

From my testing deepl now works and translation quality is very good, but it shutdowns after 100-150, strings and to fix it i have to change my ip(turn on vpn) or restart the game

ertup0 avatar Nov 07 '23 09:11 ertup0

From my testing deepl now works and translation quality is very good, but it shutdowns after 100-150, strings and to fix it i have to change my ip(turn on vpn) or restart the game

Works fine for me even up to 200 strings. Are there any error messages in the console?

Vin-meido avatar Nov 07 '23 13:11 Vin-meido

From my testing deepl now works and translation quality is very good, but it shutdowns after 100-150, strings and to fix it i have to change my ip(turn on vpn) or restart the game

Works fine for me even up to 200 strings. Are there any error messages in the console?

Hi, so as the friend above mentioned your solution only works for a few minutes at most, after a while it just turns off and only works again in my case using VPN, not even restarting the game worked at least for me. Google works perfectly. I just don't use it because Google's Portuguese translation sucks, especially in a turn-based RPG where CON of constitution is translated all the time as VIGARISTA (con artist). Here is the log as you requested Captura de tela 2024-01-21 130251

ECOB7 avatar Jan 21 '24 16:01 ECOB7

Test with this one and see if the problem still occurs.

IMPORTANT: Make sure batching is enabled (see https://github.com/bbepis/XUnity.AutoTranslator?tab=readme-ov-file#reducing-translation-requests) to reduce the amount of translation requests you are sending to deepl.

If only a VPN works to fix it (and restarting the game doesnt), then you may be getting IP blocked temporarily (try accessing the deepl website as soon as you find the translations failing to check if it is so). This can be due to your game sending far too many requests to deepl and far too fast (e.g. specially if the game has scrolling-in text such as dialogue, make sure you're in game settings disable this). If you are IP blocked, no amount of fixes in XUAT will work anymore until you get unblocked.

Bear in mind that different services have different tolerances for blocking. Google translate has fairly high tolerance for these type of requests. Deepl however has low tolerance, and will block you sooner that google would.

DeepLTranslate.ExtProtocol.dll.zip

Addendum:

You could also try setting the MinDelay, and MaxDelay settings for DeepL endpoint to a somewhat higher value to further slow it down maybe.

Vin-meido avatar Jan 23 '24 04:01 Vin-meido