Error with Dialogue Box I think

Hi, I’m new here, and I think I have an error with the extension Dialogue Box.


When I tried to preview the scene with the Dialogue Box, I got this error. What I don’t understand is why this error doesn’t appear in my other scenes if I copied it from these.
I’m not sure if the error message clearly explains how to fix it, as it’s quite long and English isn’t my first language. If anyone knows how to fix it, please let me know.

1 Like

Hey!
If you could send a photo of your events, that would help a lot.
Also, do you have any blocks of Javascript in your game?
According to the error, there is an error in a Javascript Code Event.

Also, Welcome to the GDevelop Forum! :smile: :tada:
We are so happy to have you here!

1 Like

I used two events almost identical to those I used in other scenes where that error doesn’t appear.

I didn’t modify any JavaScript code; I simply used what Gdvelop provides.

1 Like

Very weird.
The error says it is with Javascript code with an “undefined (reading ‘name’)” which is very weird.

  1. Could you send a photo here of any Javascript? I myself am not the best with it, but someone else here can probably help find an error, even if it was you accidentally typing a letter in it, or deleting something when you didn’t mean to.
  2. Is this a cloud project, or saved to your device?
  3. Can you check you are on the newest GDevelop version? Click “About GDevelop” at the bottom right corner of the main screen in the editor. The newest version is 5.6.251.

  1. Have you tried closing the editor and re-opening it?

Sorry, I know sometimes it feels like some of these things are useless, but it’s the littlest things that can bug out projects. :smile:
My FIRST EVER GDevelop Project bugged out because of the location on my computer, and it took me a week to fix it :laughing:

1 Like

I found the dialogue box extension by pandako. I encountered the same error. Remember the extension is non-reviewed (community extension). I have confirmed it does use js events:

I analyzed the JavaScript. This seems to happen because there is no object on the scene for the JS code to process. The creator of the extension did not add safety checks in case no instances were on the scene.

You can fix this by adding instances on the scene for all objects used in the events and be very careful when using it in external events (as it could be used on a scene where objects don’t exist or have an instance on the scene)

I’m sorry, but I don’t understand what I should do. I got lost in the last part, as my English is bad :sweat_smile:
If it’s not too much trouble, could you show me an example?

I simply mean:
Add every object you used on the scene

1 Like