Page 1 of 1

Using LunaTester Causes onStart to be Skipped in APIs

Posted: 29 Oct 2016, 5:51
by Sambo
Apparently, functions that run in onStart are skipped in APIs if you launch using LunaTester. Here is my test:

Code: Select all

function onStart()
   i = 0
   assert(false, "Function not skipped")
end

function onDraw()
   Text.print("Value: " .. i)
end


It should give me the error, "Function not skipped," right?
Well, It actually gives me the error, "Attempt to concatenate global 'i' (a nil value)."

This only happens to APIs. How do I know? I called the API I was testing from onStart.

Posted: 29 Oct 2016, 8:11
by Wohlstand
This bug is seems on LunaLUA side or some is bad in the LunaLauncher code. I'll just forward this to Rednaxela