microsoft / pxt-arcade

Arcade game editor based on Microsoft MakeCode
https://arcade.makecode.com
MIT License
478 stars 207 forks source link

Hardware only crash on undefined #4801

Open jwunderl opened 2 years ago

jwunderl commented 2 years ago

Describe the bug

A game on the forum appears to have a crash that only occurs on pygamer / hardware and not in the simulator. (I haven't personally ran it yet but multiple users reported / one user posted the issue with a fix that worked 7 months ago)

Threads: from today https://forum.makecode.com/t/what-is-a-980-error-on-a-pygamer/13977 and old thread the game came from https://forum.makecode.com/t/procedurally-generated-platformer/8500

To Reproduce Steps to reproduce the behavior:

  1. Go to https://arcade.makecode.com/74359-33595-49355-45845
  2. download to pygamer and lose, sounds like should crash with oops(980)
  3. Try https://makecode.com/_1bkEzbfRuWEP and it sounds like it worked. (in their forum post they said they removed teh death animation)
  4. should not see error

Expected behavior

should probably not crash on hardware (unless it's somehow a valid error, in which case simulator should crash to match hardware :))

UnsignedArduino commented 2 years ago

I am unable to reproduce this with my original v1 link on my PyGamer. (Also, I feel like the RNG changed??? Or maybe I'm just bad at my own games 😆)