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

Errors with styles #11

Closed
aaronhowser1 opened this issue Jun 22, 2019 · 17 comments
Closed

Errors with styles #11

aaronhowser1 opened this issue Jun 22, 2019 · 17 comments

Comments

@aaronhowser1
Copy link

Using ProjectIntelligence-1.12.2-1.0.5.21-universal

For some reason all my text is black, which really breaks the interface.

image
image

However, when I try to reload a Style, it tells me I've made changes to the current one and then throws an error (that I can't read because text is black)
image
image

@aaronhowser1
Copy link
Author

It was fixed by me deleting my brandon3055 folder, but I figure I should leave this open because that's more of a workaround than a fix

@aaronhowser1
Copy link
Author

Hmm I'm going through and re-downloading all the Draconic Evolution pages. It works fine until I get to the Chaos Guardian or Draconic Reactor, and then the text goes dark again and becomes hard to read. I can still safely change the styles, though.

@aaronhowser1
Copy link
Author

Re-deleted the config folder and went through and downloaded all the pages again, and the text went black just completely randomly this time. I wasn't even loading a new page. I have no idea what's going on tbh.

@brandon3055
Copy link
Member

brandon3055 commented Jun 29, 2019

Try reproducing this issue without your custom font mod.
Its very unlikely that this is a style error because i have seen a similar issue with another one of my mods. I suspect something is breaking text rendering. Rebooting you game to delete the config probably just fixed the issue temporarily.

@aaronhowser1
Copy link
Author

I uninstalled SmoothFont and went around the ui for a while and it never broke, so I guess that was the problem then. I'm not sure if the style error is related to that though, because I don't see how smoothfont would be changing the styles or preventing me from changing them.

@brandon3055
Copy link
Member

brandon3055 commented Jun 29, 2019

The issue is not the styles. I use a custom font renderer. I suspect SmoothFont is breaking my renderer somehow causing it to always render black.
I will look into it when i get a chance.

@aaronhowser1
Copy link
Author

But would SmoothFont also be causing the "One or more errors have occurred" thing when I try to change styles, like in the last image in the original post?

@brandon3055
Copy link
Member

Hmm... not sure. When that error window pops up it should also post something in the log. Can you show me what it posts?

@aaronhowser1
Copy link
Author

[05:27:06] [Client thread/ERROR] [brandonscore]: [Pi Reported Error]: Something went wrong while attempting to load the custom preset: G:\Games\MultiMC\instances\FTB Academy\.minecraft\config\brandon3055\ProjectIntelligence\GuiStyle\CustomPresets\vanilla.json (The system cannot find the file specified)
[05:27:06] [Client thread/ERROR] [projectintelligence]: Something went wrong while attempting to load the custom preset
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: java.io.FileNotFoundException: G:\Games\MultiMC\instances\FTB Academy\.minecraft\config\brandon3055\ProjectIntelligence\GuiStyle\CustomPresets\vanilla.json (The system cannot find the file specified)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at java.io.FileInputStream.open0(Native Method)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at java.io.FileInputStream.open(Unknown Source)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at java.io.FileInputStream.<init>(Unknown Source)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at java.io.FileReader.<init>(Unknown Source)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at com.brandon3055.projectintelligence.client.StyleHandler.loadPreset(StyleHandler.java:511)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at com.brandon3055.projectintelligence.client.gui.guielements.GuiStyleEditor.lambda$null$15(GuiStyleEditor.java:186)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at com.brandon3055.brandonscore.client.gui.modulargui.baseelements.GuiButton.onPressed(GuiButton.java:460)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at com.brandon3055.brandonscore.client.gui.modulargui.baseelements.GuiButton.mouseClicked(GuiButton.java:437)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at com.brandon3055.brandonscore.client.gui.modulargui.MGuiElementBase.mouseClicked(MGuiElementBase.java:588)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at com.brandon3055.brandonscore.client.gui.modulargui.baseelements.GuiPopUpDialogBase.mouseClicked(GuiPopUpDialogBase.java:76)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at com.brandon3055.brandonscore.client.gui.modulargui.GuiElementManager.mouseClicked(GuiElementManager.java:180)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at com.brandon3055.projectintelligence.client.gui.PIGuiContainer.mouseClicked(PIGuiContainer.java:251)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at com.brandon3055.projectintelligence.client.gui.GuiProjectIntelligence.func_73864_a(GuiProjectIntelligence.java:181)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at net.minecraft.client.gui.GuiScreen.func_146274_d(GuiScreen.java:533)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at com.brandon3055.projectintelligence.client.gui.GuiProjectIntelligence.func_146274_d(GuiProjectIntelligence.java:229)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at net.minecraft.client.gui.GuiScreen.func_146269_k(GuiScreen.java:501)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1759)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1098)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:398)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at net.minecraft.client.main.Main.main(SourceFile:123)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at java.lang.reflect.Method.invoke(Unknown Source)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at java.lang.reflect.Method.invoke(Unknown Source)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at org.multimc.EntryPoint.listen(EntryPoint.java:143)
[05:27:06] [Client thread/INFO] [STDERR]: [com.brandon3055.projectintelligence.client.StyleHandler:loadPreset:527]: 	at org.multimc.EntryPoint.main(EntryPoint.java:34)

@brandon3055
Copy link
Member

Ok looks like a separate issue. I will look into that as well.

@brandon3055
Copy link
Member

brandon3055 commented Jul 2, 2019

This is turning out to be an absolute pain to debug. SmoothFont wont run in a dev environment and so far i have not been able to reproduce the issue in a test back. I will continue fiddling with this but i suggest you also report this issue to the SmoothFont devs.

btw can you please post your smoothfont config. (Including the selected font)

@aaronhowser1
Copy link
Author

Here's my smoothfont.cfg


    # Primary font name.
    # (The font installed in the system or existing in the externalFontPaths folders (default:<minecraft dir>/fontfiles).)
    S:fontName=Verdana

    # Secondary font name. It is used if the character cannot be rendered with the primary font.
    # (The font installed in the system or existing in the externalFontPaths folders (default:<minecraft dir>/fontfiles).)
    S:secondaryFontName=Arial Rounded MT Bold

@brandon3055
Copy link
Member

Ok not being able to reproduce this in dev is making things rather difficult but i have at least been able to figure out the exact trigger. Its a combination of smooth font and the blue slime from tinkers.
When the mob soul on the DE page cycles to blue slime that's when it breaks. It also breaks if there happens to be a blue slime in the world.
This is 100% reproducible so i suggest you pass this info along to the smooth font devs.

@aaronhowser1
Copy link
Author

Reported here.
Amazing that you've managed to find the exact trigger, especially when it's so obscure.

@FoxMcloud5655
Copy link

Comes with being a developer :)

@brandon3055
Copy link
Member

Yea the giveaway was when i was just sitting there scratching my head trying to figure out why it wasn't happening then it suddenly just happened. The only thing changing on the screen was the mob soul.

@brandon3055
Copy link
Member

Looks like the SmoothFont dev has a fix for this in the works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants