Structurize

Structurize

46M Downloads

UI Issues for Villagers and Hut Blocks - Requests and Material Lists

RuneVanguard opened this issue · 92 comments

commented

Minecolonies version

Version: minecolonies-0.10.483-BETA-universal MC 1.14.4

Expected behavior

  • UI Shows list of required materials when looking for requests in a villagers UI or building material lists in a Hut Block UI

Actual behaviour

  • UI isn't properly displaying required materials, requests, or the list appears clipped and only on part of the screen. More is visible when changing the size of the screen or the in game UI scale setting but not enough to be effective, resulting in workers unable to work and sometimes holding the block they need in their hand rather than doing anything. Requests aren't showing up in their UI at all. Assuming again that it's a UI error because occasionally I'll see the request in chat, which I know we can configure to different intervals, but isn't conducive to efficient filling of requests. Screenshot gives and example of the issue with the most visibility of the materials list I was able to achieve.

Screen Shot 2019-10-09 at 11 30 22 PM

Steps to reproduce the problem

  1. Open Villager/Hut block interface
  2. Select Required Resources or Requests
  3. List of requests/resources is either blank, clipped, or unreadable

EDIT: First time using GH for issue. Had to remove commented text

commented

can you try if changing the GUI scaling in your options affects it?

commented

I tried that previously. Scaling the UI does seem to change how much of the list is visible. The screenshot is with the UI and window size scaled in such a way that I was able to see the most of the list. Any other size/scale made it completely invisible.

commented

what java version are you using? older ones can cause issues aswell

commented

So I ran it on Windows with Java 8 U231 (same version I have on macOS), the same version of minecolonies, and the same version of structurize with no issue with UI. I'm only having the issue when I run the mod on my macOS version. When running it on Windows, I messed with GUI scaling, window sizing, and my graphics settings and it worked fine in all cases. When tinkering with the window size, resolution, and GUI scaling on macOS I was unable to find a usable setting. The screenshot is still the best representation of what I was able to accomplish.

commented

Can you try redownloading structurize/minecolonies?

commented

hm thats quite a weird issue, could you try using this java on your mac?https://adoptopenjdk.net/releases.html#x64_mac

commented

@Raycoms Fresh DLs of both mods and the issue persists.

@someaddons I've installed that JRE and am unsure of how to make sure it's being used. Sorry if that's a simple thing

commented

in the launcher under instance settings advanced you can choose the path to the java executable to use

commented

I got to that part, just unsure of where the JRE installed... Or should I just download the manual one and choose the .tar.gz?

commented

ye you can just unzip it somewhere

commented

Ok I finally figured out how to run the custom (not bundled) java... UI error is still occurring.

commented

Also I really appreciate y'all's patience in helping me with this. I would love to be able to just run it on Windows but my work requires me to multitask in macOS and I have Windows bootstrapped onto the same laptop. I really love the mod because I can let the villagers build while I work and just check for requests every now and then. My only problem is that I can't see the requests without the UI working properly for me and the server I run for my friends and coworkers is in 1.14.4 so I don't have the option of simply running 1.12.2 :(

commented

Having similar problems when trying to build in creative (480 alpha that is in the patreon test pack, windows 10)
When I click with build tool, it only shows the top two huts alphabetically I have in my inventory, scrolling down, it starts to show most of them, but not all.

This is what it looks like when I first click with tool, you can see all the huts i have in my inventory (only have the ones in tool bar) which include the townhall, and warehouse.
a

This one shows when I scroll all the way to the bottom - there's the blank space there for the other names, but they don't appear, and clicking in that space does nothing.
b

If I select lumberjack at the end, then click the right arrows up the top, it scrolls through to decorations, townhall and warehouse - but they still don't show in the drop down text
c

(edited for formatting)

commented

...and was going to go test if I had the same error in the builders hut, but I placed the townhall and builder, made the lumberjack ready to be built, but can't access anything in my colony. Tells me I have no permissions to do anything, even though /mc whereami says I am in my colony. I am entirely too fuzzy headed to even START to work that one out, so I can't test the builder =P

commented

Should be noted that this issue is reproducible on both single player and a dedicated multiplayer server

commented

I'll check into this tomorrow, our maven repo is broken and I can't get our deps atm

commented

Great! I look forward to hearing back!

commented

I added a performance improvement to the list and only tested the postbox, so I gotta check some other lists too and check which ones "broke" =D

commented

I just tried it and wasn't able to reproduce this.

  1. On which structurize version are you?
  2. Can you tell me the steps exactly on how to reproduce this?
commented
  1. structurize-0.10.194-ALPHA
  2. It is a consistent issue for me every time I open an interface that contains any sort of list. I am running on mac so I will attempt to run it on Windows and see if I experience the same issue.
commented

Will ask one of our devs with a Mac check it out.

commented

I am having the same issue as the screenshots above with the left drop down not showing all huts in inventory...even after scrolling to see more. clicking the left/right arrow allow all to be found...but not listed. additionally, sometimes the list for upgrading a building is not shown unless i choose another and go back.

Windows 10, minecolonies-0.10.483-BETA-universal and structurize-0.10.194-ALPHA with forge version forge-1.14.4-28.1.69.

If i change back to structurize-0.10.193-ALPHA, then the GUI problems all go away.

Edit: Tested with structurize-0.10.195-ALPHA and menus populate and scroll as expected.

commented
  1. Tested with MC .472 and Struct 193, Works as intended on Mac 10.13.6 with Forge 28.1.61
  2. Tested with MC .483 and Struct 194 works as intended same Os and Forge.
  3. Tested with MC .483 and Struct 195 works as intended same Os and Forge.
    All tested with Java 1.8.0_74 64bit. OP issue could not be replicated.
    Video Settings: GUI Auto 800x600@60
commented

The problem I was having up there, I've made a separate instance of the mod, using MC 484 and structurize 195 and it's behaving as expected.

commented

Using all the same settings you listed. Same java, MC, Struct, OS, forge, and still getting the issue. No clue what the cause is at this point. Guess I'm just playing on Windows instead. Sorry to have wasted y'all's time.

commented

Really weird issue. I'd really like to know what is causing this

commented

I have been following this issue as it affects me as well, and I am sure others like me. I have a Mac and am not able to switch to a Windows machine. I would like to have this issue reopened and corrected. Please?

I have been through all the above suggested steps in correcting the issue to no avail.
minecolonies-0.10.493-RELEASE-universal
structurize-0.10.194-ALPHA
forge-1.14.4-28.1.76

commented

Since we can't debug this locally, not even on a MAC.

Can you run this structurize jar, open a few GUIs and send me your client log?

https://teamcity.minecolonies.com/guestAuth/repository/download/LetSDevTogether_Structurize_Branches_Build/32359:id/build/libs/structurize-0.10.163-PERSONAL.jar

commented

How do I override/get around the forge error?

"Mod mine colonies requires structurize 0.1.192-ALPHA or above
Currently, structurize is 0.10.16.3-PERSONAL"

commented

Urgs, I'll build you a new minecolonies version too then.

commented

Struc 0.10.164-PERSONAL
MC 0.10.1389-PERSONAL

Same issue is occurring. Drop-downs are blank for the structurize GUI but the scroll bar appears.Any scrolling GUI for MC is blank or clipped at the top covering around 90% of the area the list should show up in, just like the original screenshot posted

commented
commented

@Megistus please upload the files normally to Github or put them in a https://gist.github.com

commented

Hmm, nothing strange still...

commented

We will need driver versions

commented

This is what I am running:

Model Name: MacBook Pro
Model Identifier: MacBookPro14,1
Processor Name: Dual-Core Intel Core i5
Processor Speed: 2.3 GHz

Intel Iris Plus Graphics 640:
Chipset Model: Intel Iris Plus Graphics 640
Type: GPU

Displays:
Color LCD:
Display Type: Built-In Retina LCD
Resolution: 2560 x 1600 Retina

System Version: macOS 10.15 (19A602) ** Had this issue with macOS 10.14 **

Other than that ... dunno what driver versions you need. Not like Mac's can tweak on updating drivers like a PC can.

commented

Java Version 8 Update 161 (Minecraft 1.14.4)
Mac Version 10.15
Intel Iris Plus Graphics 650 1536 MB

commented

Updated to Java 231 now...oops

commented

@Sharkykzn @Asherslab compared to your settings, anything significantly different?

commented

The issue can be fixed if the user switches to Fullscreen. The GUI misplacement happens in windowed mode under macOS.

commented

Same Issue on the 1.14 version
Mac Intel Iris 655
(Oracle)Java 8 update 231
Forge 28.1.90
Minecolonies - 0.10.556-ALPHA
Structurize - 0.10.199-ALPHA

commented

This is not the case. I have tried starting in fullscreen, switching to and from fullscreen, and a reasonable number of variations of resolution, but the issue persists as in the original screenshot.

Minecraft 1.14.4
Mac Intel Iris 6100
Java 8 U231
Forge 28.1.90
MC 0.10.522-BETA
Struc 0.10.199-ALPHA

commented

Okay, amazing, so not only is it not consistent over MACs but also on some MACs does only display in windowed mode =D

commented

Have you tried to install Optifine? Initially I installed it and switched to fullsceen while using the mod, removed it and now there are no issues in fullscreen. I wouldn't rule out optifine did something even after deletion.

commented

Running it with Optifine produced the same issue with fullscreen and windowed. Following the uninstall of Optifine the issue persisted in fullscreen and windowed.

commented

Hi guys, the issue mentioned above ldtteam/minecolonies#4102 is mine. Happy for it to be merged into this one. Anything I can do to help with getting this working, just let me know.

commented

Hmm, posting my system in case it's helpful.

MacBook Pro (Retina, 15-inch, Mid 2015)
2.2 GHz Quad-Core Intel Core i7
RAM: 16GB
Intel Iris Pro 1536 MB

Changing the GUI scaling doesn't do anything for me. Seems to be tied to the change of the fullscreen resolution for me.

commented

I got around this one finally. It seems to be something funny with resolutions and fullscreen. Instead of using the maximise button (green button top left) use the in-game option to fullscreen. This fixed it for me. :)

commented

As a note, I’m on a Mac, never had an issue at all, using Green button, in game maximise, windowed, or otherwise. So I’ve no clue what’s going on here nor can I debug it.

Will note, I always play with the GUI scaling set to normal/medium/whatever-it’s-called, not auto or etc. that may be what’s going on here?

commented

I just tested mine colonies on my wife's older Mac. It works as expected. Upon other searching ... this seems to be a MacBook Pro Retina issue (found mention of issue with other games and their UI's). Hope this helps as maybe a way forward.

commented

Have we gotten anywhere on this recently?

commented

We still can't reproduce this any way, maybe @Asherslab will be able to reproduce it somehow on his Mac. Without reproducing it, it's impossible to fix it unfortunately.

commented

I am having this issue on my Mac. Won't work on an external monitor in any setting. On my laptop screen the contents are only visible when running in full screen mode.

commented

For twitch launcher users and mc 1.13+: can you look into launch settings/at the beginning of latest.log and make sure that java arguments/flags contains -XstartOnFirstThread?
I doubt it can help but twitch is broken so let's be sure

commented

Fix is only when in full screen but thats not really a fix

is Minecolonies using a lib for the lists?

commented

We are using our lib for every of our guis

commented

To be fair, I debugged this these days with a user that has this same issue. This has appeared in minecraft 1.14 forward. So there is a good chance this is a forge/openGL/minecraft issue.

commented

It's not related to any UI changes we made recently

commented

Could be related to porting changes too, but I doubt it.

commented

I bet on opengl, since macos has weird policies around rendering

commented

wannted to upgrade the pack to 1.15 and now im required to play in fullscreen

commented

im playing on an older 1.12 version and everything works fine

commented

the problem is if youre monitore is too big the UI breaks

thats why its not on every mac because of the monitor size

my breaks because i have a 15' screen and its breaks even in fullscreen but when i set down the resolution it works

commented

when im in window mode and change the gui scaling it gets better :D

commented

can you provide screenshots while holding left ctrl (super key for mac)+shift+alt (should display blue boxes around elements) for different gui scaling?

commented

well its because of the high resolution ist there a overflow problem or something?

because scrolling is not broken on other mods / vanilla

commented

The weird thing is that this only happens for Macs, windows and linux users don't have any issues.

commented

with a high res monitor?

im on 15,4-Inch (2880 x 1800)

commented

ye

commented

does the scroll element require some system call?

commented

Nope

commented

Normale Gui scale
image
Highest Gui scale
image

commented

-XstartOnFirstThread

and this doesn't change anything

commented

Well, ty for screenshots, that's really weird thing (= I don't know what to test now)

commented

i tried a mod thats adds controller support (controllable)
and has the same bug but in a diffrent way

in window mode it only allowed to move a max area
image

can this help?

commented

I'd still bet on mac tinkering with openGL driver stuff #blamemacs

commented

I am going to make an educated guess based on what I see here.
Given that this happens with some very special controls, all of them use scissoring to limit the rendering area, i am going to make a guess that this logic is broken.

We might possibly be using the scaling calculation wrong, or MacOS is returning the wrong information. I had this issue in SmithsCore and build in a Debug mode for this special purpose.

The new BlockOut also contains this debugging mode, however the old BO does not. We should compare the Implementations of the Scissoring in the Old and New BO to check.

commented

Anybody in here, with a mac and which have the issue: We are collecting data on the issue: Please run this Structurize jar: https://teamcity.orionminecraft.com/repository/download/LetSDevTogether_Structurize_Branches_Build/36380:id/build/libs/structurize-0.10.207-PERSONAL.jar

In a creative super flat world:

  1. Grab a scan tool
  2. Left click a block, right click another block then right click in the air.
  3. This opens the scan UI.
  4. Make a screenshot
  5. Press "Show Resources"
  6. Press "Replace" on any one of the displayed resources
  7. This opens the replace UI
  8. Make another screenshot.
  9. Close all UIs by pressing the red crosses
  10. Once back in game, press F3 to open the Minecraft debug screen
  11. Create another screenshot.
  12. Open your system information, see here (https://support.apple.com/en-us/HT203001) and create a screenshot from your Overview tab. Please remove your Seriel Number from this screenshot, by editing it. We are not responsible for you disclosing that piece of information if you forget and upload it! The important parts:
    image

Then 13) Upload all of these 4 screenshots here!

Yes we know the UIs look potentially weird. But we have enabled some debugging layers to show us more information.

commented

after work i will send it to you (like 3 hourse)

commented

Here are my screenshots.
Archive.zip

commented

@PowerSchill Did you have the issues previously?
And do you still have them now?
Except for the weird block textures (those were added in this test version to see additional control information)

commented

Okay ONLY the mod nothing else;)

Debug.zip

commented

Cool this means we have a fix because in the latests alphas we have still the ui issues

LOVE IT! :D

commented

@lucsoft @PowerSchill Did this actually fix it or not?

commented

@lucsoft @PowerSchill Did this actually fix it or not?

Well yes this list works

And the alpha version (both together) doesn’t

commented

Okey, I will create a PR then to fix this.

commented

In the Alpha Version I don’t see the Lists at all (only if I change full screen +reseloution )