BGM variable glitch
Root / SmileBASIC Bug Reports / [.]
12Me21Created:
BGMPLAY "C$0"*X+"$0=1"*YDepending on the values of X and Y, this will either:
- Work as expected
- Throw a MML "Internal error"
- Crash SB
It's the first part that causes that:
C$0 multiplied with X
If X is less than 5 it plays just fine but the channel is playing infinite silence when variable 0 is 0 or not set afaik.
X being 0 obviously doesn't do anything.
X being between 5 and 19 will output Internal error.
But when you get X to 20, it just crashes SB. Yes, version 3.6.0 is affected by this as well.
SB will crash when X is higher or equal to 20 until you eventually hit the memory limit SB has.
The maximum I got without the top menu loaded is 320461.
The maximum I got with the top menu loaded is 312970.
EDIT: Forgot a part in post
EDIT: Added stuff to post