Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi all,

 

Some of my users are reporting some strange GUI rendering problems that I cannot seem to track down on my end:

 

Here is how the GUI displays for me in dev and multi-mc instances, and for most users:

width=800 height=476https://dl.dropboxusercontent.com/u/95935735/AW%20Dev%20Shots/2014-06-24-res_gui.png[/img]

 

And here is how it is displaying for a couple of users.  The background is rendering as black instead of gray.  The details are all there (can still see slots rendered in some other guis), but the main background layer is black/extremely dark.  They are each running different mod-packs (but probably have a few in common, so could be a common cause).

68dbc214-fb27-11e3-856b-839e0e1e8e2b.jpg

(holy crap thats a big SS.....)

 

Any ideas what the cause could be?

 

I already tried putting code in place to reset openGL state for lighting, textures, disabling 2nd texture unit (lightmap texture?), lots of other stuff.

 

The strange part is that the scrollable composite areas render properly -- and I don't do any lighting stuff inside their render code, only bind the texture.

 

Most relevant source:

https://github.com/shadowmage45/AncientWarfare2/blob/master/src/main/java/net/shadowmage/ancientwarfare/core/gui/GuiContainerBase.java

https://github.com/shadowmage45/AncientWarfare2/blob/master/src/main/java/net/shadowmage/ancientwarfare/core/gui/elements/CompositeScrolled.java

 

I haven't had that error in forge, but I have had it in other applications related to the box being a popup or not.

 

Is it possible they have another gui open behind it or right before it?  Can you open it in different ways?

Long time Bukkit & Forge Programmer

Happy to try and help

maybe the z-level of your gui's background, because in the other picture there is a radar and an options button, that might be the issue?

  • Author

That particular GUI can only be opened via using an item -- so there shouldn't be any other GUIs open.

 

Apparently for the affected users it effects most/all of the GUIs.  I am investigating having them try with no other mods installed to see if it is a mod-conflict or something else.  Either way, I will probably need to find a solution I can implement in my code.

 

Could be a z-level thing -- I don't mess with z-level during gui rendering at all, so it is left at whatever the previous renderer(mod) had set.

 

Hard for me to test solutions though, as I have been unable to duplicate the problem (gotta love those issues....)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.