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

ToyBox on Linux doesn't render some UI elements properly #483

Closed
TheMikiey opened this issue Oct 17, 2021 · 5 comments
Closed

ToyBox on Linux doesn't render some UI elements properly #483

TheMikiey opened this issue Oct 17, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@TheMikiey
Copy link

TheMikiey commented Oct 17, 2021

Describe the bug
Some UI elements (check boxes and drop-down boxes) do not render properly when playing the game on Linux using wine.

To Reproduce
Steps to reproduce the behavior:

  1. Install Pathfinder WoTR on Linux (I installed GOG Galaxy via Lutris and then installed Pathfinder normally through GOG Galaxy)
  2. Install UMM & this mod (I installed UMM by launching it with "mono" in my terminal)
  3. Open this mod's settings in UMM
  4. See rendering issues

Expected behavior
Properly rendered UI elements.

Screenshots

Screenshot_20211017_103854

In the below screenshot "Enable 'Next' when no feat selections are available", "Make All Feature Selections Optional" and "Add Full Hit Die Value" are enabled.
Screenshot_20211017_104045

In the below screenshot I have "Enabled Teleport Keys", "Allow Achievements While Using Mods", "Highlight Copyable Scrolls", "Make Tutorials Not Appear If Disabled In Settings" and "Allow Shift Click To Transfer Entire Stack" enabled.
Screenshot_20211017_104205

In the below screenshot I have a few "Cheats" options enabled but only "Equipment No Weight" shows in bold to indicate it's enabled.
Screenshot_20211017_104243

Screenshot_20211017_103956

Version Info:

  • ToyBox Version: 1.2.3 - 1.4.2.2 (Issue has been present since the first version I used up to the latest)
  • Pathfinder WoTR: 1.0.9c
  • OS: Manjaro 21.1.5 (all installed packages up to date)
  • Kernel: Linux 5.14.10-1

Additional context
This issue has been a problem since I started using the ToyBox mod, however I was able to get by since activated elements would have their text become bold, this is no longer the case for all elements. (some still become bold but others do not (see screenshots), this has only been an issue for the past few releases)

@TheMikiey TheMikiey added the bug Something isn't working label Oct 17, 2021
@demilich1
Copy link

Have the same issue, also running WotR on Linux (using Proton and Steam).

My guess is that the UI is broken because there is an exception in the log:

[ToyBox] <b><color=orange>[Warn] </color></b>per save settings not found, creating new...
[ToyBox] [Error] <b><color=yellow>Unable to load localization directory.</color></b>
  at System.Environment.get_StackTrace () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at ModKit.Mod.Error (System.String str) [0x00000] in <278ef6b7ae514b87aa36387550660fe3>:0 
  at ToyBox.Utils.ReadTranslations () [0x00000] in <278ef6b7ae514b87aa36387550660fe3>:0 
  at ToyBox.EtudesTreeModel..ctor () [0x00000] in <278ef6b7ae514b87aa36387550660fe3>:0 
  at ToyBox.EtudesTreeModel.get_Instance () [0x00000] in <278ef6b7ae514b87aa36387550660fe3>:0 
  at ToyBox.EtudesEditor.get_loadedEtudes () [0x00000] in <278ef6b7ae514b87aa36387550660fe3>:0 
  at ToyBox.EtudesEditor.UpdateEtudeStates () [0x00000] in <278ef6b7ae514b87aa36387550660fe3>:0 
  at ToyBox.EtudesEditor.OnShowGUI () [0x00000] in <278ef6b7ae514b87aa36387550660fe3>:0 
  at ToyBox.Main.OnShowGUI (UnityModManagerNet.UnityModManager+ModEntry modEntry) [0x00000] in <278ef6b7ae514b87aa36387550660fe3>:0 
  at UnityModManagerNet.UnityModManager+UI+<>c.<set_ShowModSettings>b__54_1 (UnityModManagerNet.UnityModManager+ModEntry mod) [0x00000] in <6f01b9ac742e434ba1d6af68c34ab3b2>:0 
  at UnityModManagerNet.UnityModManager+UI.set_ShowModSettings (System.Int32 value) [0x00000] in <6f01b9ac742e434ba1d6af68c34ab3b2>:0 
  at UnityModManagerNet.UnityModManager+UI.DrawTab (System.Int32 tabId, UnityEngine.Events.UnityAction& buttons) [0x00000] in <6f01b9ac742e434ba1d6af68c34ab3b2>:0 
  at UnityModManagerNet.UnityModManager+UI.WindowFunction (System.Int32 windowId) [0x00000] in <6f01b9ac742e434ba1d6af68c34ab3b2>:0 
  at UnityEngine.GUILayout+LayoutedWindow.DoWindow (System.Int32 windowID) [0x00000] in <4bee5931903d4283870a3843ed354648>:0 
  at UnityEngine.GUI.CallWindowDelegate (UnityEngine.GUI+WindowFunction func, System.Int32 id, System.Int32 instanceID, UnityEngine.GUISkin _skin, System.Int32 forceRect, System.Single width, System.Single height, UnityEngine.GUIStyle style) [0x00000] in <4bee5931903d4283870a3843ed354648>:0 

@condekind
Copy link

I have the same issue, and also observed this message in the log posted by @demilich1
I tried removing ~/.config/.mono but that didn't fix the problem.
The mod loses most of its functionality, since I can't click the checkboxes.

One extra bit of info - when a save is loaded, the log says (level set to trace):

...
[ToyBox][Debug] reloading per save settings from Player.SettingsList[ToyBox]
[ToyBox][Warn] per save settings not found, creating new...
[ToyBox][Debug] saved to Player.SettingsList[ToyBox]
...

This happens whenever I reload a save, so I guess the "creating new..." part fails. It would be nice if the log included in its messages the arguments of a failed operation (e.g., file paths when trying to create files, string contents when setting locale modifiers, etc). I tried chmod -R go+rwx path/to/game/dir (the one that has the Mods folder), but that didn't seem to change anything. My guess was that the sandboxing aspect of proton could be interfering with ToyBox, so I gave rwx permissions to everything inside the game folder (and read permission to every folder up to that point, seeing my default umask is 077). Not sure if any of this is relevant to the issue, though.

@dark0dave
Copy link
Contributor

This ui bug is caused by #499 (comment)

@condekind
Copy link

@dark0dave that fixed it for me, thanks! :)

@xADDBx
Copy link
Collaborator

xADDBx commented Apr 21, 2023

This issue will be closed because it is older than a year. The here mentioned Bug/Feature might already be fixed or implemented. If the bug still persists/the Feature is still requested, please reopen the issue or create a new one.

@xADDBx xADDBx closed this as completed Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants