Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BetterStats] stats panel Error (installed DSPTranslationPlugin) #69

Open
Ciizel opened this issue Apr 10, 2021 · 0 comments
Open

[BetterStats] stats panel Error (installed DSPTranslationPlugin) #69

Ciizel opened this issue Apr 10, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Ciizel
Copy link

Ciizel commented Apr 10, 2021

2021-04-10 15 38 48

open stats panel Error (installed DSPTranslationPlugin)
Problem seems caused by font replacement in DSPTranslationPlugin mode
:0

this mod = https://dsp.thunderstore.io/package/Muchaszewski/DSPTranslationPlugin

error log

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:

  1. harmony-auto-0c769c6a-9475-4114-be4f-ed560b9cec9e - Muchaszewski-DSPTranslationPlugin\DSPTranslationPlugin.dll
    Postfix[index=0]: static System.Void DSPTranslationPlugin.UnityHarmony.Text_Font_Gettter_Harmony::Prefix(UnityEngine.UI.Text __instance)

==================
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:

  1. harmony-auto-0c769c6a-9475-4114-be4f-ed560b9cec9e - Muchaszewski-DSPTranslationPlugin\DSPTranslationPlugin.dll
    Postfix[index=0]: static System.Void DSPTranslationPlugin.UnityHarmony.Text_Font_Gettter_Harmony::Prefix(UnityEngine.UI.Text __instance)

==================
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:

  1. harmony-auto-0c769c6a-9475-4114-be4f-ed560b9cec9e - Muchaszewski-DSPTranslationPlugin\DSPTranslationPlugin.dll
    Postfix[index=0]: static System.Void DSPTranslationPlugin.UnityHarmony.Text_Font_Gettter_Harmony::Prefix(UnityEngine.UI.Text __instance)

==================

@brokenmass brokenmass added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants