FancyMenu

FancyMenu

79M Downloads

Disconnected screen text has many widget locator ids

Codestian opened this issue · 0 comments

commented

Describe the bug
On the disconnected screen, there are 2 texts indicating the error and message. For example, 'Failed to connect to the server' is followed by 'Unknown host'. Another is 'Failed to connect to the server', followed by 'Outdated client!'. The first text appears to be consistent, but the latter isn't fixed. This means the texts have dynamic widget locator id. So if i delete both texts, the second text will reappear if its a different error message. For example, the same text widget locator id is disconnected_screen:430498 on one instance, then disconnected_screen:320454.

To Reproduce
Steps to reproduce the behavior (e.g.):

  1. Attempt to enter server with invalid ip address (hellotest.com)
  2. This will show error message 'Unknown host'.
  3. In the layout editor, remove the 'Unknown host' text and save.
  4. Open the logs window to observe the error logs in the next few steps.
  5. Attempt to enter a 1.21.1 server with 1.19.4.
  6. This will show error message 'Outdated client! Please use 1.21.1'.
  7. In the layout editor, remove the 'Outdated client! Please use 1.21.1' text.
  8. Enter the server with the invalid ip address again. The error message now shows again.
  9. The logs will then spam the following until the user exits the screen:
[FANCYMENU] Unable to get label/text of Vanilla widget via placeholder! Vanilla element not found: disconnected_screen:430498

Expected behavior
When I delete both texts, they should not reappear again.

Game Log
latest.log

Screenshots
If screenshots would help to explain the issue, please include these.
Screenshot 2024-10-07 at 4 21 09 AM
If i delete the vanilla 'Unknown hosts' text, then reproduce the 'Outdated client' message, the 'Outdated client' message should also disappear, since its the same text. But it appears because it has a different id.

Basic Informations (please complete the following information):

  • OS: macOS 14.5
  • FancyMenu Version: 3.2.5
  • Fabric 0.16.5
  • Minecraft Version 1.21.1
  • Active Mods [e.g. Optifine, 5zig, TooManyItems]