Would this be a reason for “Hot Reload” to be grayed out? This smells like a permissions thing. I already tried adding Defold to System Preferences > Security & Privacy > Accessibility, but that didn’t seem to help.
Mac Book Pro, Graphics
Radeon Pro 555 2 GB, Intel HD Graphics 630 1536 MB
Here is the error in the Defold console when I build and run the project.
INFO:DLIB: Log server started on port 65077
ERROR:ENGINE: Unable to create engine (redirect) web-server (-1)
INFO:ENGINE: Defold Engine 1.2.154 (2a329c6)
INFO:ENGINE: Loading data from: build/default
INFO:ENGINE: Initialised sound device 'default'
I tried restarting my laptop and opening the Defold application. The “Hot Reload” is still grayed out and I’m still seeing the same error displayed in the console, indicating that the engine web-server couldn’t be created. What would be the next thing to check?
I disabled and attempted to restart Defold. System Preferences > Network; turned off wi-fi, unplugged network cable and set Configure IPv4 to Off, then clicked Apply.
Started Defold, built Side Scroller Tutorial and Hot Reload is still grayed out, the same error displayed in the Defold console.
Hmm. I downloaded version 1.2.152 as suggested and installed. I opened up the Side Scroller tutorial, opened spaceship > spaceship.script and built the project. Hot Reload is still grayed out, the same error displayed in the Defold console.
I’m going to try and delete the Side Scroller tutorial from my local and download a different tutorial. Perhaps something is being cached…
Also, the Defold’s downloads page doesn’t seem to show a list of previous Mac OS versions. Could I try older versions of Defold for Mac OS (Mojave, 10.14.4)? When I navigate to http://d.defold.com/archive/, file listing has been disabled, so I’m not able to view older versions.
Yeah it’s a temporary issue with the build system, we’re working on a fix for it this week.
There’s actually two servers being run, one with a dynamic port and a redirection server that runs at a static port 8002 that shuffles the traffic to the dynamic server. You could look at the 8002 port to see i it’s used:
Open up ‘network utility’ app in macos (I assume you’re running on a mac) and go to the port scan tab. Configure it like this:
Run it without the defold engine running, there will probably be an entry for 8002 which is why it doesn’t work. I’ve added ticket #4119 to just skip the redirection server if the port is taken. We’ll let you know
Bingo! I have another application that occupies 8002 when it’s running. After I shut it down, I can Hot Reload. Again, thanks for working with me to figure this out! I am looking forward to using Defold.
No problem! I’ve pushed a small fix for this scenario, doesn’t make sense to not support hot-reloading when the redirection fails… Good luck with Defold and make sure to update us on your progress