Red Error Deciphering

How do I determine what is causing a red error?

How can I determine what in the code is causing this error?

It looks like it’s happening bc of the array tools. Are you using array tools or another extension?

I’ve seen something similar when an array is empty and you try to pop a value. It could be happening bc the array is empty or the index that you’re trying to modify doesn’t exist.

Sometimes, you need to make sure the array count isn’t zero or that it’s equal or greater than something.

Now, it’s saying it can’t find clone. Is the array tools installed? Maybe try reinstalling the extension or make sure the variable or objects exist.

Hm, okay. I’ll give it a shot.

Array count isn’t 0, array tools is installed.
variable and objects all exist.

reinstalling it actually made the error occur more frequently : (
thankfully didn’t save so was able to roll back.

You can try and isolate where it happens. Does it happen when something is clicked? You can try disabling an event and see if the error still happens.

So that’s the interesting thing. I get the error from a line that adds a value to an array. It runs fine in some scenes, but crashes the game in others, with no apparent cause. Each scene has access to the same objects and variables.

You need to look at the first few lines, at the beginning of the sentences; what’s interesting here is gdjs.evtsExt__ArrayTools__......
Above that are the methods that use gdjs.evtsExt__ArrayTools__......
Below that is your scene and your events gdjs.grove_45hill_321Code....

If you have a project to reproduce this crash, send it here so we can debug the project and fix the error if it really comes from the Array Tools extension.

How i missed that i have no idea

See i told you ppl on forums are better with red errors

Apologies, but how do I send the project? I’m unsure what you mean.

Put your project folder into a .zip and send it here

The site is saying it doesn’t support .zip files. Should be able to pull it from this link: h(remove this parenthetical)ttps://limewire.com/d/ahTWI#1UpJ2ShiyL

couple of things to know.
The game only works in gdevelop version 5.6.280 , updating past there adds ~900 errors.

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.

I have no way of doing anything if the game doesn’t have the assets; the 2156 resources are missing along with the game.json.

Open your diagnostic report with the F7 key,

You will see that your project indeed has 900+ problems on variables, deprecated conditions and actions, and others errors.

Before looking into the ArrayTool extension, perhaps you should start by having an empty diagnostic report.

Oh, apologies, thought the resources were in there. The diagnostic report says all of that, but it’s only an issue when gdevelop is updated. How would I go about packaging an editable version with the resources included?

Um…are your assets in your project or loose ?

I thought they were in the project, but if they aren’t being sent in that zip they must not be.

oh dear… open the resources menu thingy in gdevelop, where does it say the files are?

Hm, says they’re in assets.

wait really? ill look at what you sent myself

uhhh, i just see a json filebro

i mean yeah sure you have the assets but you didnt send them
i need the folder your json file is in, yknow?