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?
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?
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.
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.
Alright, great to hear that worked at least. 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.
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.