BUG: Certain Procedure Blocks lose all functionality in Additional Global Triggers.

Started by StellaeLux on Wed, 10/09/2019 - 00:27

Topic category: Bugs and solutions

Last seen on 20:25, 8. May 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
BUG: Certain Procedure Blocks lose all functionality in Additional Global Triggers.
Wed, 10/09/2019 - 13:31 (edited)

There are only a few times where I start questioning whether programming languages are actually unambiguous or not.

In this case I created a procedure:

On Player Tick Update.

"Some code"

If (condition) is true

     do Sent to chat to all players "DebugMessage"

     do Deal 1 damage to provided entity.

"More code"

So I basically debugged to check whether the procedure would reach the Deal Damage and as I play tested, yes it did! Every 5 seconds I got the message "DebugMessage". However no damage was dealt...

Inside of this procedure I'm mostly setting and checking NBT tags with somewhere a "Set Entity Health to 0" down the road that does not trigger under any normal circumstance.

To check whether it was possible to use Deal [] damage to entity in On Player Tick Update, I recreated it in a different workspace:

if number nbt tag Counter < 1000

increment nbt tag Counter

else

deal 1 damage to provided entity

send message to all

set nbt tag Counter to 0

And as I originally expected, but were now surprised by, it worked!

So in both cases, I know for a FACT that the if statement in which the deal x damage to entity has returned true as I received the chat message, yet in my original workspace it failed to do any damage.

Does anyone know how to solve this or is this a bug?

Edited by StellaeLux on Wed, 10/09/2019 - 13:31
You can upload it to say…
Fri, 10/11/2019 - 12:12

You can upload it to say Mediafire and send the link on our contact form: https://www.pylo.co/contact

But please zip the entire workspace folder, not just export it so I can get as close as possible to your state of the workspace.

Please tell me which mod elements to check and how to see the problem too. Thanks!

Last seen on 20:25, 8. May 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
I sent the mail to Contact:…
Fri, 10/11/2019 - 19:26

CAPTCHA validation error: unknown CAPTCHA session ID. Contact the site administrator if this problem persists.

When using the  https://www.pylo.co/contact link.

I hope I provided all the info that you need!

Last seen on 20:25, 8. May 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
If you got the same result…
Fri, 10/11/2019 - 22:57

If you got the same result as I described in the mail regarding Steak oddly fixing the issue. I also found out that (cooked) sheep flesh did the same, and thus assuming all vanilla food types (when eaten in the dimension), which completely doesn't make sense, but I thoroughly tested it and I keep being able to reproduce that exact same result. (It might take 4 debug messages before the damage starts beginning)

I have replied to you in the…
Sat, 10/12/2019 - 07:28

I have replied to you in the email how I would go with bugfinding in this case.

Check the "offtopic" part of the email I sent you too ;)

Last seen on 20:25, 8. May 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
I think I've done it!…
Sat, 10/12/2019 - 13:16

I think I've done it! Patched 1.9.1.

Let me know if I messed something up xD