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

Only Partial Translation and no Resource or Texture Dumping #673

Open
CodedRubyChan opened this issue Feb 15, 2025 · 2 comments
Open

Only Partial Translation and no Resource or Texture Dumping #673

CodedRubyChan opened this issue Feb 15, 2025 · 2 comments

Comments

@CodedRubyChan
Copy link

Hey, i have a problem with the ANONYMOUS;CODE Guidebook DLC.
like 90% of Text is not being translated
I tried somethings and then re-installed BepInEx and the AutoTranslator but nothing works.
Idk if that is relevant but most of the AssetBundles are encrypted.

Here is the log file

[Message: Preloader] BepInEx 6.0.0-be.733 - AC_guidebook (15.02.2025 12:48:12)
[Message: Preloader] Built from commit 995f04991b2b5ace4ddef07e12c3e99d4b2766a6
[Info : BepInEx] System platform: Windows 10 64-bit
[Info : BepInEx] Process bitness: 64-bit (x64)
[Info : BepInEx] Running under Unity 2022.2.11f1
[Info : BepInEx] Runtime version: 6.0.7
[Info : BepInEx] Runtime information: .NET 6.0.7
[Info : Preloader] 0 patcher plugins loaded
[Info : Preloader] 0 assemblies discovered
[Message:AssemblyPatcher] Executing 0 patch(es)
[Message: BepInEx] Chainloader initialized
[Warning:Il2CppInterop] Class::Init signatures have been exhausted, using a substitute!
[Info :Il2CppInterop] Registered mono type Il2CppInterop.Runtime.DelegateSupport+Il2CppToMonoDelegateReference in il2cpp domain
[Info : BepInEx] 2 plugins to load
[Info : BepInEx] Loading [XUnity Auto Translator 5.4.4]
[Info :Il2CppInterop] Registered mono type XUnity.AutoTranslator.Plugin.Core.PluginLoader+AutoTranslatorProxyBehaviour in il2cpp domain
[Info : BepInEx] Loading [XUnity Resource Redirector 2.1.0]
[Info :XUnity.AutoTranslator] Force loading ALL proxy assemblies.
[Warning:XUnity.AutoTranslator] 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)
[Warning:XUnity.AutoTranslator] 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)
[Error :Il2CppInterop] Nested type ToolbarButtonSize on GUI not found!
[Warning:XUnity.AutoTranslator] An error occurred while resolving type: UnityEngine.GUI+ToolbarButtonSize
System.ArgumentException: ToolbarButtonSize 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)
[Warning:XUnity.AutoTranslator] An error occurred while resolving type: UnityEngine.ImageConversion
System.ArgumentException: ImageConversion 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)
[Warning: HarmonyX] AccessTools.Method: Could not find method for type UnityEngine.Resources and name GetBuiltinResource and parameters (string, Il2CppSystem.Type)
[Message: BepInEx] Chainloader startup complete
[Info :XUnity.AutoTranslator] Version of TextMesh Pro: 1.4.0.
[Warning:XUnity.AutoTranslator] 'EnableDumping' and 'CacheMetadataForAllFiles' cannot be enabled at the same time. Disabling 'CacheMetadataForAllFiles'...
[Warning: HarmonyX] AccessTools.Method: Could not find method for type TMPro.TMP_Text and name SetCharArray and parameters (Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppStructArray, 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] An error occurred while settings up scene-load scans.
System.NotSupportedException: Method unstripping failed
at lambda_method4(Closure , UnityAction2 ) at XUnity.AutoTranslator.Plugin.Utilities.TranslationScopeHelper.RegisterSceneLoadCallback(Action1 sceneLoaded)
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.EnableSceneLoadScan()
[Info :XUnity.AutoTranslator] Loaded XUnity.AutoTranslator into Unity [2022.2.11f1] game.
[Info :Il2CppInterop] Registered mono type XUnity.AutoTranslator.Plugin.Core.Il2CppManagedEnumerator in il2cpp domain
[Warning:XUnity.AutoTranslator] 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()
[Error :Il2CppInterop] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.MissingMethodException: Method not found: 'Void UnityEngine.WaitForSeconds..ctor(Single)'.
at XUnity.AutoTranslator.Plugin.Core.Utilities.CoroutineHelper.CreateWaitForSeconds(Single seconds)
at XUnity.AutoTranslator.Plugin.Core.Utilities.DebounceFunction.Run()+MoveNext()
at Trampoline_ByteThisXUnity.AutoTranslator.Plugin.Core.Il2CppManagedEnumeratorMoveNext(IntPtr , Il2CppMethodInfo* )
[Error :Il2CppInterop] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.MissingMethodException: Method not found: 'Void UnityEngine.WaitForSeconds..ctor(Single)'.
at XUnity.AutoTranslator.Plugin.Core.Utilities.CoroutineHelper.CreateWaitForSeconds(Single seconds)
at XUnity.AutoTranslator.Plugin.Core.Utilities.DebounceFunction.Run()+MoveNext()
at Trampoline_ByteThisXUnity.AutoTranslator.Plugin.Core.Il2CppManagedEnumeratorMoveNext(IntPtr , Il2CppMethodInfo* )
[Info :XUnity.AutoTranslator] Skipping plugin scan because no plugin-specific translations has been registered.
[Error :XUnity.AutoTranslator] An error occurred while dumping texture.
System.NotSupportedException: No way to encode the texture to PNG.
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.EncodeToPNGEx(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.GetTextureData(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.GetOrCreateOriginalData()
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.DumpTexture(Object source, Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleImage(Object source, Sprite& sprite, Texture2D& texture, Boolean isPrefixHooked)
[Error :XUnity.AutoTranslator] An error occurred while dumping texture.
System.NotSupportedException: No way to encode the texture to PNG.
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.EncodeToPNGEx(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.GetTextureData(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.GetOrCreateOriginalData()
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.DumpTexture(Object source, Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleImage(Object source, Sprite& sprite, Texture2D& texture, Boolean isPrefixHooked)
[Error :XUnity.AutoTranslator] An error occurred while dumping texture.
System.NotSupportedException: No way to encode the texture to PNG.
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.EncodeToPNGEx(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.GetTextureData(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.GetOrCreateOriginalData()
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.DumpTexture(Object source, Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleImage(Object source, Sprite& sprite, Texture2D& texture, Boolean isPrefixHooked)
[Error :XUnity.AutoTranslator] An error occurred while dumping texture.
System.NotSupportedException: No way to encode the texture to PNG.
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.EncodeToPNGEx(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.GetTextureData(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.GetOrCreateOriginalData()
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.DumpTexture(Object source, Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleImage(Object source, Sprite& sprite, Texture2D& texture, Boolean isPrefixHooked)
[Error :XUnity.AutoTranslator] An error occurred while dumping texture.
System.NotSupportedException: No way to encode the texture to PNG.
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.EncodeToPNGEx(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.GetTextureData(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.GetOrCreateOriginalData()
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.DumpTexture(Object source, Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleImage(Object source, Sprite& sprite, Texture2D& texture, Boolean isPrefixHooked)
[Error :XUnity.AutoTranslator] An error occurred while dumping texture.
System.NotSupportedException: No way to encode the texture to PNG.
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.EncodeToPNGEx(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.GetTextureData(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.GetOrCreateOriginalData()
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.DumpTexture(Object source, Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleImage(Object source, Sprite& sprite, Texture2D& texture, Boolean isPrefixHooked)
[Error :XUnity.AutoTranslator] An error occurred while dumping texture.
System.NotSupportedException: No way to encode the texture to PNG.
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.EncodeToPNGEx(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.GetTextureData(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.GetOrCreateOriginalData()
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.DumpTexture(Object source, Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleImage(Object source, Sprite& sprite, Texture2D& texture, Boolean isPrefixHooked)
[Error :XUnity.AutoTranslator] An error occurred while dumping texture.
System.NotSupportedException: No way to encode the texture to PNG.
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.EncodeToPNGEx(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.GetTextureData(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.GetOrCreateOriginalData()
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.DumpTexture(Object source, Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleImage(Object source, Sprite& sprite, Texture2D& texture, Boolean isPrefixHooked)
[Error :XUnity.AutoTranslator] An error occurred while dumping texture.
System.NotSupportedException: No way to encode the texture to PNG.
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.EncodeToPNGEx(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.Extensions.ComponentExtensions.GetTextureData(Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.GetOrCreateOriginalData()
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.DumpTexture(Object source, Texture2D texture)
at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleImage(Object source, Sprite& sprite, Texture2D& texture, Boolean isPrefixHooked)
[Error :XUnity.AutoTranslator] Batch operation received incorrect number of translations.
[Error :Il2CppInterop] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.MissingMethodException: Method not found: 'Void UnityEngine.WaitForSeconds..ctor(Single)'.
at XUnity.AutoTranslator.Plugin.Core.Utilities.CoroutineHelper.CreateWaitForSeconds(Single seconds)
at XUnity.AutoTranslator.Plugin.Core.Endpoints.TranslationEndpointManager.EnableBatchingAfterDelay()+MoveNext()
at Trampoline_ByteThisXUnity.AutoTranslator.Plugin.Core.Il2CppManagedEnumeratorMoveNext(IntPtr , Il2CppMethodInfo* )
[Error :XUnity.AutoTranslator] Failed: 'Simulation Log'
[Error :XUnity.AutoTranslator] Failed: 'November 24th, 2037. 7:50pm.
This is a recreation of a situation in which Observation Target
Factor "P" (Simulation Data Identifier: Pollon Takaoka) was
interfered with via the Hacking Trigger.'
[Error :XUnity.AutoTranslator] Failed: 'Conditions'
[Error :XUnity.AutoTranslator] A batch operation failed. Disabling batching and restarting failed jobs.

@ManlyMarco
Copy link
Collaborator

Try enabling different text frameworks in config. Check if the text isn't baked into textures.

@CodedRubyChan
Copy link
Author

I have all text frameworks enabled.

I hope it isn't baked into the Textures because i can't get them to dump :/

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

2 participants