Crashing on GUI open procedure

Started by FragantA4sheet on Mon, 01/23/2023 - 02:19

Topic category: Help with modding (Java Edition)

Last seen on 07:21, 7. Feb 2023
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Crashing on GUI open procedure
Mon, 01/23/2023 - 02:19

Title.

I have a button in a GUI that closes all GUIs then opens another and this crashes my game. They're very simple procedures but wondering if anyone knows why or how to set up a multi-page GUI in this way?

I've tried putting the close GUI procedure by itself and that works as soon as I press the button, it closes. However if I put the:

"Open screen for [event/target entity] pass location [x] [y] [z] GUI: TEST"

it crashes as soon as I press the button that procedure is linked to. There are no other conditions etc, just that alone.

Last seen on 22:40, 27. Mar 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'd suggest making it so…
Mon, 01/23/2023 - 02:43

I'd suggest making it so that it closes all GUIS, then waits on one tick, then opens up another GUI. Might solve the issue. If it still doesn't work, just test with not having any closing of GUI's, but just opening another one instantly.

Last seen on 07:21, 7. Feb 2023
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I will try the wait one tick…
Mon, 01/23/2023 - 23:10

I will try the wait one tick, but as per original post, even opening another instantly without any close GUI procedure crashes the game, so I don't think that's the problem..