Why does this small procedure crash the game as soon as it is triggered?

Started by mrgwbland on

Topic category: Help with MCreator software

Active 6 months ago
Joined Oct 2018
Points:
837

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 56
Why does this small procedure crash the game as soon as it is triggered?
Sun, 11/15/2020 - 21:26 (edited)

https://imgur.com/a/1lR5hsU

I attach this to a block and whenever a certain slot is changed this gets triggered, but it crashes it. How do I fix this? (This is for demonstrative purposes, I narrowed this part down from my main procedure as the part that causes the crash.

Edited by mrgwbland on Sun, 11/15/2020 - 21:26
Active 6 hours ago
Joined Oct 2020
Points:
679

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 135
It will be easier to find…
Sun, 11/15/2020 - 21:34

It will be easier to find out what the problem is if you include the whole procedure, however the problem could be that there is no slot 2 in the GUI that you are using. If that's not the problem then it will be something that is not shown in your imgur post i.e the rest of the procedure block.

Active 6 months ago
Joined Oct 2018
Points:
837

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 56
No you misinterpreted what I…
Sun, 11/15/2020 - 21:36

No you misinterpreted what I meant, just this piece alone will crash it, without any other code. But also the gui has 4 slots so there is a slot 2.

Active 6 months ago
Joined Oct 2018
Points:
837

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 56
actually I think I have…
Sun, 11/15/2020 - 21:41

actually I think I have figured out that because 2 is an input slot I can't use it as output as well. Am I correct here? and is there a way around this?

Active 6 months ago
Joined Oct 2018
Points:
837

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 56
Did you read what I put?
Mon, 11/16/2020 - 16:35

Did you read what I put?

Active 6 hours ago
Joined Oct 2020
Points:
679

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 135
Did you read what we put?
Wed, 11/18/2020 - 13:47

Did you read what we put?

Active 6 months ago
Joined Oct 2018
Points:
837

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 56
Yeah
Wed, 11/18/2020 - 14:18

Yeah