ghorsington / CM3D2.YATranslator

Yet Another Translator -- Translation plug-in for CM3D2 remade from scratch
https://coder.horse/CM3D2.YATranslator
The Unlicense
28 stars 5 forks source link

Method not found: "UnityInjector.PluginBase.get_Preferences" #24

Closed ghost closed 6 years ago

ghost commented 6 years ago

Im having a problem getting the Plugin to run, with the shown errors in the picture. Is it possible to get YAT to run with Bepinex? If not, then this issue is obsolete, sorry for that.

I have installed the most recent versions of the YAT and IMGUI plugins as well as CecilInject. unbenannt

ghorsington commented 6 years ago

Greetings!

It sure is possible. Make sure you have the latest version of BepInEx with ports of SybarisLoader and UnityInjector installed. Moreover, you have to make sure to migrate your Sybaris installation properly.

Instead of doing it all manually, I suggest using COM3D2 Sybaris 2 to BepInEx migration AIO I maintain. Just follow the README included in it and it will do all the migration work cleanly.

After that, update your game (the latest version is 1.18 as of the time of me writing this) and reinstall YAT (install it just like you normally do with Sybaris).

ghost commented 6 years ago

Greetings and thanks for the answer.

After testing a bit with the AIO package, i've managed to get it working. The problem seems to be an incompability between YAT and the XUnity Auto Translator i've also had installed(should have mentioned that earlier). So it seems one has to choose between translated buttons and translated texts while the autotranslater for sybaris is broken. Any idea how one could get those to working together?

Thanks in advance!

ghorsington commented 6 years ago

The problem is that the XUnity's AT uses ExIni, but UnityInjectorLoader contains its own custom version of it.

Try installing the new version of UnityInjectorLoader. Just extract the zip into BepInEx folder.

It seems to work, but as long as you build from source yourself. Here's a version I built from Vimek/XUnity.AutoTranslator (the version has GoogleTranslateHack endpoint that works -- just set Endpoint=GoogleTranslateHack in BepInEx/AutoTranslatorConfig.ini after you have run the game once):

XUnity.AutoTranslator.Plugin.BepIn.zip

ghost commented 6 years ago

Worked lika a charm, thanks a lot!