Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

The newest version gives me this error whenever I try to run or export my game, and I don't know how to fix it.

Error: Compiling failed with error "Error: Script was not stack neutral! Stack shrank by 1". {"scene":"Final Boss","scriptType":"actor","actor":"Boss"}

Wait, I got it! It's got something to do with the new rnd function. That's why my game won't compile. I need to use the Math Functions event instead.

(+1)

Hi Levi, is there any chance you can share an image of the script where you were seeing this problem? The rnd function shouldn't have been causing this problem so I'd like to understand so I can fix it :-) The plan is to eventually remove "Math Functions" (with a migration so you won't need to do anything)

(1 edit)

Here's the script that's been causing the problem. It worked fine until I upgraded to 4.0.1.

(+2)

Thanks Levi, I've figured out what was wrong and fixed this in 4.0.2 released today :-) Thanks for raising this