ghorsington / CM3D2.YATranslator

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

YAT somehow cause the haversting feature in VPVR to not work #2

Closed ghost closed 7 years ago

ghost commented 7 years ago

Well, apparently, I tried to run the harvesting feature in VPVR by try to plant a seed, but after the dialogs, nothing happens.

NullReferenceException: Object reference not set to an instance of an object
ghorsington commented 7 years ago

The problem was partially on YAT's and partially on CM3D2's side.

For some reason CM3D2 devs decided to use cultivation UI's buttons' labels (the text) as a key to the whole button and the event invoked by the button itself.

Since YAT simply replaces the text with the translation thereof, the cultivation UI fails to find the button (because again, the button is indexed by the label text).

Since there is no way around it, I fixed it temporarily by redirecting the whole button finding method to YAT's side. While it works, it will be prone to break in future updates until CM3D2 fix their cultivation UI on their part.