Waiting for connection...! (SOLVED)

I just created a new project and tried to build and launch it. It successfully launched the game but then the game window is stuck on a loading screen where it says it’s connecting to someplace. It never leaves that screen!

I’ve been messing around with my firewall settings but nothing helps.

The only way for me to actually run a project now is to export it to Windows and then run the game separately, which is inconvenient to say the least. Any idea on what to do?

1 Like

The reason for the loading screen is that it is a fallback when the engine (game window) is unable to load the contents from the editor, which happens over network. It could possibly be connectivity issues caused by a firewall. Do you get any info in the console-window (bottom of the editor) when running the game from there, like engine version and other things? That would mean the editor is able to connect to the running engine. Did you get any notifications from the firewall when you did this the first time? What OS are you using?

1 Like

I’m using Windows7 and yes, I did get a notification the first time it happened (where I allowed it to access).

Here’s the console log:
INFO:ENGINE: Defold Engine 1.2.65 (39f180d)
INFO:ENGINE: Loading data from: .
INFO:ENGINE: Initialised sound device ‘default’

INFO:DLIB: SSDP: Started on address 25.162.74.198
INFO:DLIB: SSDP: Started on address 192.168.0.13

1 Like

I was mistaken in my original post, when you just run locally like that it should not go over network at all. We need to look it up properly. A thing you could try in the mean-time would be to look in the menu Project > Target. When the game is not running, that should say “Local” and an IP address. If you run the game (showing the loading screen) and go back to that menu, it should then also list the running game, so in addition to the “Local” entry there should be another one. Try selecting that and re-running the game (Ctrl+B). That would trigger another path of running the game, which might hopefully work until we understand what is causing your problem.

1 Like

Thanks a lot!

I think it works. I still have to run it twice every time I launch it but it’s gone past the connection screen. The new screen is completely black but that’s because I haven’t added anything to the game yet.

1 Like

Alright, great to hear that worked at least. :slight_smile: If you are not concerned with wasting cpu, you should be able to just leave the game window in the background and it should be reused every time you build the game (as long as you selected that new target in the menu). Would take away that double-launch anyway, so alt-tab instead of quitting the game.

1 Like

Having the same issue as above but the mentioned solution did NOT work for me. Any suggestions?

I get the following output in the console:

INFO:ENGINE: Defold Engine 1.2.81 (e8e0c7d)
INFO:ENGINE: Loading data from: .
INFO:ENGINE: Initialised sound device ‘default’

INFO:DLIB: SSDP: Started on address 192.168.0.23
WARNING:DLIB: Failed to send announce message (-22)

Edit: Running the editor as administrator solved the issue!

1 Like

The issue may be related to where in the file system the Defold application was installed, in my case i installed first on a system managed directory (program files (x86)) and i got the Waiting for connection message on every single attempt to run even the sample projects. I decided to remove de installation and installed again on the user managed directory (/Users/MyUserProfile) and now everything is working fine.

Hope this helps others

Alberto Trevino

3 Likes

Thank you for sharing your experience and solution @b23vnodev!