I am trying to make an Android build for testing my game and I got the error in the subject… The strange thing is that the game runs fine when I launch it from the editor. Moreover the error, appearing twice, is referring to two lua scripts that have not been changed in months!
I have no idea how to fix this. Any help is highly appreciated!
The bundle step uses bob.jar, which (due to legacy reasons) compile all source files in your project. Could it be that you’re not actually using these files, thus it never shows up when doing a build and run in the editor?
Things are getting very serious about this issue with block comments!!!
I ran the build on mobile and the background in the title screen was missing. This never happened before. I removed the block comments in the script controlling the background and also this issue was fixed!
How can I be sure that something else is not working in the right way for some block comments? What should I do? Remove all block comments in my project?
I would bet that this started with version 1.2.161 or 162 or 163.
I think you need to share a minimal example of where this is happening so that we can investigate. Also provide additional relevant information: How to get help
@britzl You are right, my apologize for the poor informations.
I am using Defold 1.2.163 on a Mac running Catalina (10.15). And this is the first time I tried to make an Android bundle with Catalina. Could it perhaps be a problem with bob.jar and Catalina?
For the minimal example. I will try to prepare one but at the moment I cannot anymore reproduce it in my (full) code…
I had same issues and same workaround as deleting all --]]-- and ----[[ lines in (any filename.script added to collection).
for example when building in Editor - all fine, when building web-version, the script with these lines looks like it doesn’t exist. started from 1.2.163 version.
Previous to 1.2.163 (1.2.162 and lower worked) we had some multiline Lua comments like
--[[
]]--
and they worked fine when building for Android. With 1.2.163, they no longer work (they made code break in strange ways without reporting errors other than returning module functions as nil). Changing them to
--[[
--]]
fixes the issue.
The editor also supports comment/uncomment of multiple selected lines with Ctrl+/