Hi all. I'm trying to use coroutines in xlua similar to how zephni uses them in his normal lua extension tutorials on the daily click:
script = coroutine.create(runscript);
function pausescript()
coroutine.yield(script);
end
function resumescript()
coroutine.resume(script);
end
however, when I run the application xlua returns an invalid return request error, that goes away when I delete the coroutine.create action, and when i actually try to use pausescript() and resumescript() in functions, i get a really long error string. I am using xlua version 1.5.2 and latest update MMF2 developer. I really need coroutines for my application, is there something im doing wrong? I haven't had any problems coding with xlua up until this point...