Using LunaTester Causes onStart to be Skipped in APIs
Posted: 29 Oct 2016, 5:51
Apparently, functions that run in onStart are skipped in APIs if you launch using LunaTester. Here is my test:
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.
Code: Select all
function onStart()
i = 0
assert(false, "Function not skipped")
end
function onDraw()
Text.print("Value: " .. i)
endIt 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.