Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translator doesn't work #662

Open
RedThought opened this issue Jan 30, 2025 · 1 comment
Open

Translator doesn't work #662

RedThought opened this issue Jan 30, 2025 · 1 comment

Comments

@RedThought
Copy link

RedThought commented Jan 30, 2025

I installed BepInEx and XUnity.AutoTranslator on Suzerain, but the translation doesn't work. The original text is displayed. Please help me.

@RedThought
Copy link
Author

This is the log.

[Message: BepInEx] BepInEx 5.4.23.2 - Suzerain (2025-01-30 오후 4:58:18)
[Info : BepInEx] Running under Unity v2022.3.23.14398455
[Info : BepInEx] CLR runtime version: 4.0.30319.42000
[Info : BepInEx] Supports SRE: True
[Info : BepInEx] System platform: Bits64, Windows
[Message: BepInEx] Preloader started
[Info : BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.23.2]
[Info : BepInEx] 1 patcher plugin loaded
[Info : BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader]
[Message: BepInEx] Preloader finished
[Message: BepInEx] Chainloader ready
[Message: BepInEx] Chainloader started
[Info : BepInEx] 2 plugins to load
[Info : BepInEx] Loading [XUnity Auto Translator 5.4.3]
[Info :XUnity.AutoTranslator] Version of TextMesh Pro: 1.4.0.
[Warning: HarmonyX] AccessTools.Method: Could not find method for type TMPro.TMP_Text and name SetCharArray and parameters (int[], int, int)
[Warning:XUnity.AutoTranslator] Could not hook 'TMP_Text_SetCharArray_Hook3'. Likely due differences between different versions of the engine or text framework.
[Error :XUnity.AutoTranslator] Could not instantiate class: BingTranslateEndpoint
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Illegal byte sequence encounted in the input.
Parameter name: string
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_string_from_byvalstr(intptr,int)
at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.PtrToStructure(intptr,System.Type)
at System.Runtime.InteropServices.Marshal.PtrToStructure[T] (System.IntPtr ptr) [0x00000] in :0
at System.Net.NetworkInformation.Win32NetworkInterface.get_FixedInfo () [0x00024] in :0
at System.Net.NetworkInformation.Win32IPGlobalProperties.get_DomainName () [0x00000] in :0
at System.Net.CookieContainer..ctor () [0x0003f] in :0
at BingTranslate.BingTranslateEndpoint..ctor () [0x0001a] in <2ad208eef06349709eb67c547f87957e>:0
at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in :0
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in :0
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00095] in :0
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in :0
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in :0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in :0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in :0
at System.Activator.CreateInstance (System.Type type) [0x00000] in :0
at XUnity.AutoTranslator.Plugin.Core.TranslationManager.AddEndpoint (XUnity.AutoTranslator.Plugin.Core.Web.HttpSecurity httpSecurity, System.Type type) [0x00000] in <94a3c349cf7c4b76954227cc04c0dda8>:0
[Error :XUnity.AutoTranslator] Could not instantiate class: GoogleTranslateEndpoint
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Illegal byte sequence encounted in the input.
Parameter name: string
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_string_from_byvalstr(intptr,int)
at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.PtrToStructure(intptr,System.Type)
at System.Runtime.InteropServices.Marshal.PtrToStructure[T] (System.IntPtr ptr) [0x00000] in :0
at System.Net.NetworkInformation.Win32NetworkInterface.get_FixedInfo () [0x00024] in :0
at System.Net.NetworkInformation.Win32IPGlobalProperties.get_DomainName () [0x00000] in :0
at System.Net.CookieContainer..ctor () [0x0003f] in :0
at GoogleTranslate.GoogleTranslateEndpoint..ctor () [0x0003a] in :0
at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in :0
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in :0
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00095] in :0
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in :0
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in :0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in :0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in :0
at System.Activator.CreateInstance (System.Type type) [0x00000] in :0
at XUnity.AutoTranslator.Plugin.Core.TranslationManager.AddEndpoint (XUnity.AutoTranslator.Plugin.Core.Web.HttpSecurity httpSecurity, System.Type type) [0x00000] in <94a3c349cf7c4b76954227cc04c0dda8>:0
[Error :XUnity.AutoTranslator] Could not instantiate class: GoogleTranslateEndpointV2
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Illegal byte sequence encounted in the input.
Parameter name: string
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_string_from_byvalstr(intptr,int)
at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.PtrToStructure(intptr,System.Type)
at System.Runtime.InteropServices.Marshal.PtrToStructure[T] (System.IntPtr ptr) [0x00000] in :0
at System.Net.NetworkInformation.Win32NetworkInterface.get_FixedInfo () [0x00024] in :0
at System.Net.NetworkInformation.Win32IPGlobalProperties.get_DomainName () [0x00000] in :0
at System.Net.CookieContainer..ctor () [0x0003f] in :0
at GoogleTranslate.GoogleTranslateEndpointV2..ctor () [0x0003c] in :0
at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in :0
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in :0
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00095] in :0
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in :0
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in :0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00020] in :0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in :0
at System.Activator.CreateInstance (System.Type type) [0x00000] in :0
at XUnity.AutoTranslator.Plugin.Core.TranslationManager.AddEndpoint (XUnity.AutoTranslator.Plugin.Core.Web.HttpSecurity httpSecurity, System.Type type) [0x00000] in <94a3c349cf7c4b76954227cc04c0dda8>:0
[Error :XUnity.AutoTranslator] Could not find the configured endpoint 'GoogleTranslateV2'.
[Info :XUnity.AutoTranslator] Loaded XUnity.AutoTranslator into Unity [2022.3.23f1] game.
[Info : BepInEx] Loading [XUnity Resource Redirector 2.1.0]
[Message: BepInEx] Chainloader startup complete
[Warning:XUnity.AutoTranslator] Input API is not available!
System.InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
at (wrapper managed-to-native) UnityEngine.Input.GetKeyInt(UnityEngine.KeyCode)
at UnityEngine.Input.GetKey (UnityEngine.KeyCode key) [0x00000] in <1133f11169ff494fbba243c3bf32561c>:0
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleInput () [0x00000] in <94a3c349cf7c4b76954227cc04c0dda8>:0
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleInputSafe () [0x00007] in <94a3c349cf7c4b76954227cc04c0dda8>:0
[Info :XUnity.AutoTranslator] Skipping plugin scan because no plugin-specific translations has been registered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant