Strange difference between scenes execution of code

Having this odd issue where the same code functions differently between scenes. In one scene, it runs fine. In the other, it causes a red error popup and doesn’t execute.

ht(REMOVE PARENTHETICAL)tps://drive.google.com/file/d/1yEDTer_rZjiGaKYlZbV_t92mXkm-mLVs/view?usp=drive_link

^the game in question

To reproduce the error, open the game, press “z” twice, once text appears wait 5 seconds and then hit “c”. That’ll take you to an area, use arrow keys to move downwards a screen and find a patch of hair. Move back and forth in that hair until a wild monster appears, then defeat it by selecting “Scrape”. Upon returning to the overworld, the error will appear and the items looted won’t be added to your inventory.

To see how it SHOULD function, do the following:

open the game, press “z” twice, once text appears wait 5 seconds and then hit “b”. That’ll take you to an area, use arrow keys to move up into a bone area screen. Move back and forth in that area until a wild monster appears, then defeat it by selecting “Scrape”. Upon returning to the overworld, the looted items will be added to your materials correctly.

Oh, also. The project only functions in gdevelop version 5.6.280

Just to be clear: the project linked above does work without any changes on 5.6.280 but does not work without any changes on 5.6.286? (released Monday)

Just wanting to get confirmation as that may give folks a better understanding of what to test for.

(Also wanting to make sure you aren’t trying to get it to work in 5.6.280 and it doesn’t currently, as older versions are unsupported)

Half works in 6.6.280, I’m trying to figure out why the other half doesn’t. Updating past 6.6.280 breaks a couple hundred other things, so that’s off the table.

We are still waiting for gdevelop 6.0.0, and you have gdevelop 5.6.280 installed (last gdevelop version - 5.6.286).

Yep, typo. my bad. Any idea on the issue itself?

You exported the game to phones, but we need the source files to try to solve your problem.

ht(REMOVE PARENTHETICAL)tps://drive.google.com/file/d/1-CnJi_vfSIhTxAr8BYkfhNanZPsTVVyE/view?usp=drive_link
Here, this should work.

This is a web export, not the game’s source code.

Whoops, my bad. here, this should work.

ht(REMOVE PARENTHETICAL)tps://drive.google.com/file/d/1Dl31Ok7PAXe0grYj4CDIHcH_9ONwm4Z1/view?usp=sharing