Add/Remove chips should return warnings, not errors

Inventory Item Add, Inventory Item Remove, as well as Rooms V1’s Award Currency, and Award Consumable, will all return circuit errors when trying to add/remove negative or 0 amounts

Creators should not have to add filters to each one of their chips that say “If less than or equal to 0, skip, else add/remove item”. It should just return a circuit warning, not a circuit error. The chip literally has a Success output that could just return false if it failed

For those who don’t know:

  • Circuit errors completely stop execution and throw a red error log
    image
  • Circuit warnings don’t stop execution, but the chip still does nothing and a yellow warning log is entered saying why nothing happened
    image

I understand why we cannot add/remove negative amounts, as that could lead to incorrect math removing/giving items when it shouldn’t, if giving a dynamic amount, this still does not mean an error should be thrown, negative or 0 amounts should return a warning

1 Like

YES! Same should go with Player-Focused Event Senders sending to an invalid player, as this COMPLETELY halts anything up ahead

No, this is something that should stay as an error

When you are sending an event to a player, the game is expecting you to send it to a valid player. When you input invalid, it goes “woah, this isnt a player” and throws an error

If you want to do something with an invalid player, send the event to all and use If Player Is Valid And Local containing a player

If for some reason you do need to dynamically check validity, its niche enough and simple enough you could just do If Is Valid/If Player Is Valid, where as checking the counts of inventory items is not as simple, as its not instant, something like Inventory Item Get Count does not return a value instantly

1 Like