Hi all,
during the last weeks I’ve been writing my first Defold game as a hobby with my kids. So far everything went well and we tested the game on my(MacOS) dev machine. However, when trying to bundle the game for windows (or HTML5 etc.) I get errors for all Lua modules.
I have included the modules like this so far:
local m = require("/path/my_module")
This works on the dev machine just fine, but when building for Windows it gives:
the module '//path/my_module' can't be found
After some search I tried to replace the separator with “.”, as they should be replaced with the OS separator.
local m = require("path.my_module")
This way it bundles for Windows, however, it no longer runs one my dev machine and I get
the module 'path.my_module' can't be found
Any ideas what I am doing wrong and how to do it correctly? Thanks!