Hey,
i’m using editor 2 and since this morging i only get “ERROR:SCRIPT: (null)(null)” error messages instead of “real” once.
Did i do something wrong or is that caused by the last update?
Hey,
i’m using editor 2 and since this morging i only get “ERROR:SCRIPT: (null)(null)” error messages instead of “real” once.
Did i do something wrong or is that caused by the last update?
Does it work in Editor 1? Do you have any clue what could be triggering it?
I downloaded Editor 1 and got the same probem.
My project works fine, but if i add a mistake, for example:
local bla = 1 + "blubb"
I get following error msg:
ERROR:SCRIPT: (null)(null)
My other projects dont have this error but i dont know what could cause this…
I am using defnet, playfab, ludobits and rendercam extensions.
Interesting, would you mind trying a previous version of Editor 1, from here: http://d.defold.com/ ?
Does it work with 1.2.115?
What should i download there? Using Windows but cant find a zip file in that list.
Edit: Just detected that i get normal errors if there are compilation errors.
exmaple: “Compilation failed: ‘end’ expected.”
My bad, I forgot that we aren’t exposing links to older editors on that page (but we should!)…
Anyway, here is a direct link to the Windows version of editor 1.2.115: http://d.defold.com/archive/57fb5f1ad5df59262aa415f298f97694debc991c/stable/editor/Defold-win32.win32.x86.zip
I get the same error here.
in what context are you calling this code? At global scope? In a script? In a Lua module? In a coroutine?
It think it might help us if we saw the code triggering this. As you say, your other projects seem to work fine.
Yeh no problem. I can give you my project.
I also tested it with my laptop and got the same errors.
I added the mistake into my init of the main.script inside the main folder.
RockPaperScissors.zip (2.2 MB)
Also get the problem if i make mistakes in game_controller
Found it. It’s your function debug()
. You didn’t make it local, so it overrides the debug
standard library and . . . breaks stuff.
You basically always want to define functions as local, as in: local function debug(self)
. Leaving them global is a great way to get really weird bugs—random scripts calling functions from other scripts, etc. Just remember that if they’re local you need to define them in the right order (or forward declare functions that call each other). See here.
Oh wow, thank you very much