bbepis / XUnity.AutoTranslator

MIT License
1.98k stars 292 forks source link

Compatibility issues with Unity Asset Bundle Mod System and Harmony Mod #472

Open TL0SR2 opened 10 months ago

TL0SR2 commented 10 months ago

Here I have a game whose mod system is using unity Asset Bundle pakage(The game has its own mod system,so the mods aren't installed through mod manager such as Unity Injecter),which means the dll and all the assets are packed so the dll can't run correctly(maybe because it can't get correct file path),but there are other mods using Harmony and if I use Reipatcher (or other mod manager) instead of the game's mod system (using AssetBundle) there would have big compatibility issues that the mods using Harmony won'y be loaded correctly and cause big problem How can I solve this problem? Or,are there any ways to make the translation dll working correctly in the Unity Asset Bundle?

Atamg1994 commented 10 months ago

What game is this ? GAME Name? Error logs?

TL0SR2 commented 10 months ago

这是什么游戏?游戏名称?错误日志?

Well if you want to know the game name...The game is named Juno:New Origins I use the reipatcher to install the translation dll and the translation run correctly(but the other mod using Harmony can't run) The error is created by game when it load Harmony Mod Here's error log

An Error occurred initializing mod type 'Assets.Scripts.Mod'{This is the type to manage the mod in the game} in mod '{the harmony mod name}' TypeLoadException:Could not resolve type with token 01000017(this is same for all the mods) from typeref(expected class 'HarmonyLib.Harmony' in assembly '0Harmony,Version=2.2.2.0,Culture=neutral,PublicKeyToken=null') {Then there logged the error position in the code which i think isn't useful}