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

Error when dumping textures

Open javiert239 opened this issue 9 months ago • 1 comments
trafficstars

I got this error when I tried dumping the textures of a game:

[Error  :XUnity.AutoTranslator] An error occurred while translating texture.
System.MissingMethodException: UnityEngine.RenderTexture UnityEngine.RenderTexture.GetTemporary(int,int,int,UnityEngine.RenderTextureFormat,UnityEngine.RenderTextureReadWrite)
  at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.SetupKeyForNameWithFallback (System.String name, UnityEngine.Texture2D texture) [0x0000f] in <94a3c349cf7c4b76954227cc04c0dda8>:0 
  at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.SetupHashAndData (UnityEngine.Texture2D texture) [0x0004b] in <94a3c349cf7c4b76954227cc04c0dda8>:0 
  at XUnity.AutoTranslator.Plugin.Core.TextureTranslationInfo.GetKey () [0x0000c] in <94a3c349cf7c4b76954227cc04c0dda8>:0 
  at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.TranslateTexture (System.Object source, UnityEngine.Sprite& sprite, UnityEngine.Texture2D& texture, System.Boolean isPrefixHooked, XUnity.AutoTranslator.Plugin.Core.TextureReloadContext context) [0x00037] in <94a3c349cf7c4b76954227cc04c0dda8>:0 
  at XUnity.AutoTranslator.Plugin.Core.AutoTranslationPlugin.HandleImage (System.Object source, UnityEngine.Sprite& sprite, UnityEngine.Texture2D& texture, System.Boolean isPrefixHooked) [0x0002c] in <94a3c349cf7c4b76954227cc04c0dda8>:0 

Game uses Unity 2020.3.48 and I'm using BepInEx_x64_5.4.9.0 (pretty old, but because the game is old too, if I use other version of bepinex, the game freeze after the splash screen).

It doesn't dump anything, and I found a similar issue here: https://github.com/bbepis/XUnity.AutoTranslator/issues/616

However, in my case the game doesn't use il2cpp.

I already tried modyfing the dumping values in the AutoTranslatorConfig with no luck.

Is anything else I can try?

javiert239 avatar Jan 31 '25 01:01 javiert239