Game crashes when i open GUI

Started by SlubblesThuggy on Tue, 05/12/2020 - 17:53

Topic category: Bugs and solutions

Last seen on 13:01, 2. Jun 2020
Joined Apr 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Game crashes when i open GUI
Tue, 05/12/2020 - 17:53

I have created a sort of crafting table with only two input slots. But when i right click in game to open the GUI, the game crashes. I have looked on others problems but their solutions dont work for me. I have some screenshots:

"enabled inventory" options for the block:

https://drive.google.com/open?id=1-z2HsRDAUJkoEKbUsZMswTsr67rmdG0q

Block GUI:

https://drive.google.com/open?id=1G9DCMCdc6IgDfjR6u6RelRXzaNSzaar7

GUI craft procedure (Gets called when the craft button is clicked):

https://drive.google.com/open?id=1W-8dVnXn-qFjHu3v6arX__IXVEZEsIub

It is only a part of the code for all the recipes, but it is just the same code everywhere.

 

I hope the links work, if not then say it and i will try to fix.

Last seen on 00:44, 6. Jul 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Why does your GUI skip slot…
Tue, 05/12/2020 - 19:03

Why does your GUI skip slot 02?

Also “Size of inventory” should be set to 4 because you have 3 slots + 1.

And the part where it starts with the word “comma” has a 2 in there, and there is no 2 slot in your GUI.

Last seen on 13:01, 2. Jun 2020
Joined Apr 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Yeah i saw that, instead of…
Wed, 05/13/2020 - 12:38

Yeah i saw that, instead of id 3 it should be id 2 och the output slot. Works now

Last seen on 00:44, 6. Jul 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Good :)
Wed, 05/13/2020 - 12:43

Good :)