SeasonHUD

SeasonHUD

3M Downloads

[Fabric 0.14.24/1.20.1/1.7.1] Abnormal Default HUD Position and Scale

kurisubrooks opened this issue ยท 8 comments

commented

I'm not sure if this is a bug specifically since there are options in the config file to be able to manually change the X/Y offset, but it's my assumption that perhaps this isn't the intended default behaviour, so I'll be reporting this as a bug.

Upon installing the mod and using it for the first time with the BigChadGuys Plus 1.1.6 modpack, the location of the SeasonHUD is both abnormally small and in a very strange spot (top-middle of screen). Screenshot below:

image

Applicable versions and mods:

  • Fabric 0.14.24
  • Minecraft 1.20.1
  • JourneyMap 5.9.18
  • FTBChunks 2001.2.4
  • SeasonHUD Fabric 1.7.1

System information:

  • OS: macOS Sonoma 14.0
  • CPU: Apple M1 Pro
  • Java 17 (Zulu JDK)

Client Log: https://mclo.gs/kcgS8n9

commented

The scale is likely correct, the 1x scale on Journeymap is shockingly small. I couldn't replicate the position issue on Windows though, and don't have a Mac to test on.

I rewrote most of the Journeymap code, to try and fix it. I uploaded a preview version here if you can test it out and see if it's any better:

1.7.2

commented

Using this new pre-release version, unfortunately the issue appears to be unchanged. Your comments however did give me a thought though, which I have now confirmed.

This appears to be related to macOS HiDPI scaling. Macs generally use very high resolution + high pixel density "Retina" displays, so the default scale according to the OS is higher than the 1x of a standard 1080p Windows device counterpart.

Iris has this setting which lets me half the resolution of the game to get around this, which let me easily test this below.
image

(macOS - 2x scaling - default)
image
(macOS - 1x scaling? "halved resolution")
image

Might be a change as simple as checking for the display resolution scale and then halving the scale/coords? Not sure how this would be handled in Java, especially with Minecraft. Sorry that I can't help further but hopefully this has been helpful.

commented

I made some more may have fixed it, and it is the version 1.7.2 just uploaded to Curseforge/Modrinth. If not, there is a function to detect if someone is using OSX, so I could take a look and see what I need to half to correct the scaling, and create a toggle.

commented

No change in 1.7.2-fabric from Modrinth.

image

Here's the log: https://mclo.gs/Zfhma1z

commented

Just took a look at the source code for the update and saw that you're using JourneyMap's info slots now, and upon testing this does indeed work - though without the icon/glyph. Is there a way to disable the old implementation when using it as an info slot?

image

commented

Yeah I was planning on making that a toggleable option, since there is a limited number of slots showable, but I haven't been able to get it to display the custom font for the icons yet.

I added a quick option in the settings menu (default H key) / config to change the math to be 1/2 the screen resolution. I think that is correct, since the opposite made it look similar to yours when I tried it.

1.7.2 MacOS Test

commented

I can confirm that this version works upon toggling "MacOS Retina Display" under the settings menu ๐Ÿ‘๐Ÿป

image

(Small suggestion: for the settings menu, macOS is officially capitalised as such, without the capital M at the start)

commented

Awesome, I'll clean it up a bit and release a proper update tomorrow. I corrected the capitalization in them menu and config file