Windows bundle crashes on start with missing require (SOLVED)

Hi guys.
I am working on small game - “Nanogram”.
Currently I am trying to create level editor for it and it works fine when I lunch it from menu “Project -> Build”. No errors, no warnings…
But after creating a bundle for windows (Architecture - 64 bit)( Variant - release), it doesnt want to work, and silently closes right after launch.

if someone could check it, i’ll appreciate it very much.
this is link to download it: https://1drv.ms/u/s!AvNHx3c2-U6giRSQSFJ00Few_od_?e=qLYgac

Thanks!

1 Like

I tried a debug build (on windows, 64bit) and ran it from the command line so I got the output, and I got this:

ERROR:SCRIPT: main/tile/TileController.script:2: module 'main.tile.TileVO' not found:
        no file 'main.tile.TileVO'
stack traceback:
        [C]: in function 'require'
        main/tile/TileController.script:2: in main chunk

…But that doesn’t make me understand it any better. ‘main.tile.TileVO’ is definitely there, and it runs from the editor. :worried: Maybe someone else has ideas.

1 Like

Replace every “require” from this (for example):

local BoardModel = require "main.board.BoardModel";

to this

local BoardModel = require("main.board.BoardModel")

and try bundle again.

No, It didn halp.

Yea, it’s a known bug (

Just remove ; everywhere where you use require.

Your project with the fix:
Archive.zip (815.5 KB)

3 Likes

Thank you a lot! Now it is alive :slight_smile:

1 Like