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

The problem with the translation of the game Go-Go Town! using Il2Cpp runtime

Open LilyDwarf opened this issue 10 months ago • 0 comments
trafficstars

Hello. I'm trying to translate a Go-Go Town! game that uses il2cpp. I have installed the BepInEx IL2CPP plugin version 5.4.3. (With version BepInEx 6 for IL2CPP build 729, the game does not start.) I started the game, set up the configuration file, but the text itself is displayed very clumsily, all the letters jump and have different sizes. I have changed the "ForceUIResizing=True" parameters. After restarting the game, the loaded text lines become normal, but after a few phrases, the game does not respond to interaction. I can't keep playing, and I can't even close the game. I Change DisableTextMeshProScrollInEffects to true but it didn't help. What settings do I need to change to set up and fix this?

I reinstalled the game and reinstalled Unity.AutoTranslator-BepInEx-IL2CPP-5.4.3, but the folder {GameDirectory}/BepInEx/Translation did not appear after the game launch. I tried the BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.729+35f6b1b version and the folder also did not appear. UPD. Well, I realized that the Translation folder appears if version 5.4.3 is installed over 6.0.0.

UPD2. I decided to try the MelonLoader plugin because I can't do anything with BepInEx. I also had to download dotnet 6.0, because without it the game would not start and gave an error. When I was able to launch the game, a folder with a configuration file appeared. I set it up, but there was no translation. But there were mistakes that I can't understand.

[20:53:11.752] An error occurred while resolving type: UnityEngine.TextMesh
System.ArgumentException: TextMesh does not have a corresponding IL2CPP class pointer
   at Il2CppInterop.Runtime.Il2CppType.TypeFromPointerInternal(IntPtr classPointer, String typeName, Boolean throwOnFailure) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppType.cs:line 19
   at XUnity.Common.Constants.UnityTypes.FindType(String name)
[20:53:11.753] An error occurred while resolving type: UnityEngine.WWW
System.ArgumentException: WWW does not have a corresponding IL2CPP class pointer
   at Il2CppInterop.Runtime.Il2CppType.TypeFromPointerInternal(IntPtr classPointer, String typeName, Boolean throwOnFailure) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppType.cs:line 19
   at XUnity.Common.Constants.UnityTypes.FindType(String name)
[20:53:11.867] Hooked UnityEngine.UI.Text.set_text through Harmony hooks.
[20:53:11.887] Hooked UnityEngine.UI.Text.OnEnable through Harmony hooks.
[20:53:11.934] Disabling certificate checks for endpoints because of configuration.
[20:53:13.115] Probing whether OnLevelWasLoaded or SceneManager is supported in this version of Unity. Any warnings related to OnLevelWasLoaded coming from Unity can safely be ignored.
[20:53:13.116] An error occurred while settings up scene-load scans.
System.NotSupportedException: Method unstripping failed
   at lambda_method2(Closure , UnityAction`2 )
   at XUnity.AutoTranslator.Plugin.Utilities.TranslationScopeHelper.RegisterSceneLoadCallback(Action`1 sceneLoaded)
   at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.EnableSceneLoadScan()
[20:53:13.119] Loaded resize command text files.
[20:53:13.130] --- Loading Global Translations ---
[20:53:13.134] Loaded translation text files (took 0 seconds)
[20:53:13.134] Created variation translations (took -0 seconds)
[20:53:13.135] Created token translations (took -0 seconds)
[20:53:13.138] Loaded XUnity.AutoTranslator into Unity [2022.3.14f1] game.
[20:53:13.176] [Il2CppInterop] Registered mono type XUnity.AutoTranslator.Plugin.Core.Il2CppManagedEnumerator in il2cpp domain
[20:53:13.185] Input API is not available!
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at UnityEngine.Input.GetKeyInt(KeyCode key)
   at UnityEngine.Input.GetKey(KeyCode key)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at XUnity.AutoTranslator.Plugin.Core.Input.GetKey(KeyCode key)
   at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleInput()
   at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleInputSafe()
[20:53:13.268] Skipping plugin scan because no plugin-specific translations has been registered.
Setting breakpad minidump AppID = 2195120
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198187196563 [API loaded no]

20250102220340_1

LilyDwarf avatar Jan 02 '25 18:01 LilyDwarf