No lifecycle events in scripts (SOLVED)

Hi, I have a weird problem. For some reason init in my script is not called (have print call there, nothing actually printed in the console). When I try to debug, defold editor just crashes with a message that it couldn’t connect to a debugger (macOS Mojave). The collection btw is loaded okay, I see my game objects on the screen when the game is launched. After I close my game window I see this Failed to create **plugInInterface via IOCreatePlugInInterfaceForService. message in console. However, no other messages in the console while the game window is opened.

Now I use 1.2.143. It seems that there was no such problem before I updated the editor (don’t know which version I was on before, though). Any ideas what can it be? (edited)

This is the structure of my collection. init function in field.script is not called for some reason

Do you have any errors in the console?

What if you put a print() outside of the lifecycle functions?

Are you building a release build or do you have an appmanifest? Release builds of the engine will not print anything in the console.

Okay, the problem was in manifest, thank you @britzl.

However I still think that editor shouldn’t close when trying to debug the release build. Also showing the message that I’m trying to debug release build would be very helpful however I have no idea whether it is possible to do

1 Like

Agreed. This can hopefully be improved. @Erik_Angelin and @mats.gisselson?

2 Likes