Colorslide tutorial build fail[Solved]

Project: here
Crash file: here

It will build, give an error and the game* will crash.
I copy pasted the code toward the middle of the tutorial to make sure I was doing the code right. I’m not quite sure if I’m doing something specific wrong.

INFO:DLIB: Log server started on port 59609
INFO:ENGINE: Target listening with name: James-PC - fe80::d7da:78de:f567:3258 - Windows
INFO:ENGINE: Engine service started on port 59610
INFO:GRAPHICS: Initialised graphics device 'opengl'
INFO:ENGINE: Defold Engine 1.5.0 (e0073d0)
INFO:DLIB: Initialized Remotery (ws://
INFO:ENGINE: Loading data from: build/default
INFO:LIVEUPDATE: Could not find base .arci/.arcd. Liveupdate disabled
INFO:ENGINE: Initialised sound device 'default'
Assertion failed: lua_isfunction(L, -1), file ..\src\gui.cpp, line 1779
INFO:CRASH: Successfully wrote Crashdump to file: C:\Users\james\AppData\Roaming\Defold/_crash

ERROR:CRASH:  0 0x7FF7D3F6EB60 dmCrash::GenerateCallstack D:\a\defold\defold\engine\crash\src\backtrace_win32.cpp:144

ERROR:CRASH:  1 0x7FF7D4047BD0 raise minkernel\crts\ucrt\src\appcrt\misc\signal.cpp:547

ERROR:CRASH:  2 0x7FF7D402D1E8 abort minkernel\crts\ucrt\src\appcrt\startup\abort.cpp:71

ERROR:CRASH:  3 0x7FF7D3FED510 common_assert_to_stderr<wchar_t> minkernel\crts\ucrt\src\appcrt\startup\assert.cpp:186

ERROR:CRASH:  4 0x7FF7D3FEDC94 _wassert minkernel\crts\ucrt\src\appcrt\startup\assert.cpp:443

ERROR:CRASH:  5 0x7FF7D3F66810 dmGui::RunScript D:\a\defold\defold\engine\gui\src\gui.cpp:1781

ERROR:CRASH:  6 0x7FF7D3C3C610 dmGameSystem::CompGuiInit D:\a\defold\defold\engine\gamesys\src\gamesys\components\comp_gui.cpp:797

ERROR:CRASH:  7 0x7FF7D3BF2610 dmGameObject::InitComponents D:\a\defold\defold\engine\gameobject\src\gameobject\gameobject.cpp:1694

ERROR:CRASH:  8 0x7FF7D3BF2340 dmGameObject::InitCollection D:\a\defold\defold\engine\gameobject\src\gameobject\gameobject.cpp:1763

ERROR:CRASH:  9 0x7FF7D3BD20C0 dmEngine::Init D:\a\defold\defold\engine\engine\src\engine.cpp:1289

ERROR:CRASH: 10 0x7FF7D3BD6A20 dmEngineCreate D:\a\defold\defold\engine\engine\src\engine.cpp:2080

ERROR:CRASH: 11 0x7FF7D3BD6FA0 dmEngine::RunLoop D:\a\defold\defold\engine\engine\src\engine_loop.cpp:68

ERROR:CRASH: 12 0x7FF7D3BCF600 engine_main D:\a\defold\defold\engine\engine\src\engine_main.cpp:148

ERROR:CRASH: 13 0x7FF7D3FD7B44 __scrt_common_main_seh d:\agent\_work\4\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288

ERROR:CRASH: 14 0x7FFF3D312560 BaseThreadInitThunk <unknown>:0

ERROR:CRASH: 15 0x7FFF3F00AA40 RtlUserThreadStart <unknown>:0

1 Like


I’m sorry it crashes on you, I’ll take a look now!

HI @James_Westbrook !

I found the issue. It seems we don’t properly detect if the user sets a “.script” file to a Gui scene. The file suffix should be “.gui_script”.

To fix your project. rename your “level_select_gui.script” to “level_select.gui_script” (there is also a …gui_script option when creating new files). Then set this .gui_script file in your Gui scene.

I’ve added a ticket for us so that we can fix this issue more properly:


OH thanks for pointing this out! That was one detail I did not notice in the tutorial.

1 Like

I do want to add I see they added “Only possible to add via a text editor” the engine let me type into the script field myself directly in there. I didn’t know it was looking for a .gui_script aka why the script wouldn’t come up so I copied the project path to put in myself initially.


Thanks! I’ll make sure we verify that as well!