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

Compatibility issues with Unity Asset Bundle Mod System and Harmony Mod

Open TL0SR2 opened this issue 1 year ago • 2 comments
trafficstars

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?

TL0SR2 avatar Jan 06 '24 05:01 TL0SR2

What game is this ? GAME Name? Error logs?

Atamg1994 avatar Jan 06 '24 05:01 Atamg1994

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

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}

TL0SR2 avatar Jan 06 '24 05:01 TL0SR2