Coder Social home page Coder Social logo

dsp_translationmod's People

Contributors

kremnev8 avatar muchaszewski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dsp_translationmod's Issues

?

..

A plugin-breaking bug after 0.7.18.xxxx

Everything went well with 0.6.17.xxxx, but with the new update, there is an error in the Settings menu. I am not able to load my custom translation, or any translation I download from Crowdin. Could you please fix it? Many thanks in advance!
DSP_Menu_Error

Error on startup

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

Font Error (installed BetterStats)

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

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:

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:

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:

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)

Running error

i get this error when I try to enter the game.I tried most things including deleting and installing the game.I was able to log in when I uninstalled the plugin and entered it

Ekran görüntüsü 2024-01-28 145141
Ekran

Add a config option to use a certain font in a translation

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.

Discrepancy with updated BetterStats Methods

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.