muchaszewski / dsp_translationmod Goto Github PK
View Code? Open in Web Editor NEWMod for Dyson Sphere Program that enables language translations
License: Other
Mod for Dyson Sphere Program that enables language translations
License: Other
..
Once every 10 times this bug arises and the game does not load anymore...
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
TranslationCommon.Translation.TranslationManager.LoadCurrentLanguage ()
TranslationCommon.Translation.TranslationManager.get_Langauges ()
TranslationCommon.Translation.TranslationManager.LoadCurrentLanguage ()
DSPTranslationPlugin.GameHarmony.GlobalObject_Initialize_Harmony.Prefix ()
GlobalObject.Initialize ()
Couldn't catch it in the debugger. Leaving issue because someone might have reproduction steps for this issue, that would help! Thanks :)
Subj.
The game doesn't even load and freezes. And the mod doesn't work
open stats panel Error (installed BetterStats)
Problem seems caused by font replacement in DSPTranslationPlugin mode
:0
Exception hit 1 times: NullReferenceException: Object reference not set to an instance of an object
DSPTranslationPlugin.UnityHarmony.TextDefaultFont.OnGetFont () <0x000aa>
DSPTranslationPlugin.UnityHarmony.Text_Font_Gettter_Harmony.Prefix (UnityEngine.UI.Text) <0x00041>
(wrapper dynamic-method) UnityEngine.UI.Text.DMD<UnityEngine.UI.Text..get_font> (UnityEngine.UI.Text) <0x0001c>
UnityEngine.UI.FontUpdateTracker.TrackText (UnityEngine.UI.Text) <0x0002a>
UnityEngine.UI.Text.OnEnable () <0x00059>
UnityEngine.GameObject:AddComponent()
BetterStats.BetterStats:UIProductionStatWindow__OnOpen_Postfix(UIProductionStatWindow)
UIProductionStatWindow:DMDUIProductionStatWindow::_OnOpen(UIProductionStatWindow)
ManualBehaviour:_Open()
UIGame:OpenProductionWindow()
UIGame:On_P_Switch()
UIGameMenu:OnButton5Click()
UnityEngine.EventSystems.EventSystem:Update()
Target methods matching by name:
UnityEngine.Font UnityEngine.UI.Text::get_font()
Relevant plugins:
Exception hit 2 times: System.NullReferenceException: Object reference not set to an instance of an object
at DSPTranslationPlugin.UnityHarmony.TextDefaultFont.OnGetFont () <0x000aa>
at DSPTranslationPlugin.UnityHarmony.Text_Font_Gettter_Harmony.Prefix (UnityEngine.UI.Text) <0x00041>
at (wrapper dynamic-method) UnityEngine.UI.Text.DMD<UnityEngine.UI.Text..get_font> (UnityEngine.UI.Text) <0x0001c>
at UnityEngine.UI.FontUpdateTracker.UntrackText (UnityEngine.UI.Text) <0x0002a>
at UnityEngine.UI.Text.set_font (UnityEngine.Font) <0x00064>
at BetterStats.BetterStats.UIProductionStatWindow__OnOpen_Postfix (UIProductionStatWindow) <0x010eb>
at (wrapper dynamic-method) UIProductionStatWindow.DMD<UIProductionStatWindow.._OnOpen> (UIProductionStatWindow) <0x0093a>
at ManualBehaviour._Open () <0x000b5>
Target methods matching by name:
UnityEngine.Font UnityEngine.UI.Text::get_font()
virtual System.Void UIProductionStatWindow::_OnOpen()
Relevant plugins:
Exception hit 1 times: NullReferenceException: Object reference not set to an instance of an object
DSPTranslationPlugin.UnityHarmony.TextDefaultFont.OnGetFont () <0x000aa>
DSPTranslationPlugin.UnityHarmony.Text_Font_Gettter_Harmony.Prefix (UnityEngine.UI.Text) <0x00041>
(wrapper dynamic-method) UnityEngine.UI.Text.DMD<UnityEngine.UI.Text..get_font> (UnityEngine.UI.Text) <0x0001c>
UnityEngine.UI.Text.UpdateGeometry () <0x0001c>
UnityEngine.UI.Graphic.Rebuild (UnityEngine.UI.CanvasUpdate) <0x0006c>
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () <0x00438>
UnityEngine.UI.ScrollRect:LateUpdate()
Target methods matching by name:
UnityEngine.Font UnityEngine.UI.Text::get_font()
Relevant plugins:
Game's default font doesn't work well with Cyrillic letters, so being able to specify font's name in translation's config would be great for readability. Either system-installed fonts or the ones in translation's folder could be used, the latter being more optimal and compatible IMO.
As stated in DysonSphereMod/QOL#121, there is a problem when combining the updated BetterStats version with the Translation Plugin.
This is probably caused by how BetterStats is replacing the displayed text in the production window in context of the game update.
(I am not responsible for the initial report, nor for BetterStats, I've opened this issue in order to keep everyone informed about new bugs)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.