Custom Extension Bug (HELP PLEASE)

I found A Gdevelop bug and it is ruining the production of my game.

I make custom extensions for my games. In my most recent game, I created an extension for picking up items.

I attach it to the item object, and try to use it, but it says its not attached.


I really need the extension to work in order to code most of my game, so I am going to code stuff like dialogue until someone finds a fix.

PLEASE HELP ME.

How have you defined the behaviour in the extension?

Is that a menu? How do I do that?

I dont know what you mean by that.

I’m just wondering if the behaviour has been set up incorrectly (however that may be) in the extension part of the editor?

So properties and stuff right?



Would that help? I don’t know if you mean properties or not.

Please answer :slightly_frowning_face:. This bug is ruining my game development process.

I don’t have an immediate answer. Could you perhaps export the extension and share it? I’ll could then try it in a test game to see if I get the same issue.

Do you have a discord I could send it to? I don’t think you can attach .json files on the forum.

As a heads up, whatever you’re doing in the “slot empty extension”, you’re using a number larger than the maximum number supported in Javascript. Regardless of whatever else is going on, tt will not function as you have it in the screenshot with that as an animation name or number.

I believe the max safe number is 9,007,199,254,740,991 but what you have is equivalent to about 10 magnitudes higher than that.

Just realized that it’s a number instead of a string. Thanks!
Though it doesn’t fix my main problem, it probably fixed another.

1 Like

I think I found the problem. I am using the “Item” behavior on an object NAMED “Item”, So I think it bugged up in the system, because it works with non-“Item” named objects.

Oh no. I realized it actually only happens to GLOBAL OBJECTS. I Therefore global objects can’t have behaviors?

Non-custom behaviors seem to work just fine on global objects, so I will test to see if other custom behaviors do the same with global objects like my normal custom behavior does.