Rick Posted September 24, 2014 Share Posted September 24, 2014 When I run the following it says 'create' is a nil value. local t = coroutine.create(function() end) This is leading me to believe that coroutines aren't part of the Lua build LE is using? I know this worked back in Jan 14 as I was using coroutines then. Did something change with this? When I look at the Lua source I see inside linit.c http://www.lua.org/source/5.2/linit.c.html that it inits a bunch of libraries. Josh did you comment out the coroutine one? If so can you put it back in? This is a very handy thing and shouldn't be any sort of security issue with it. [EDIT] Nevermind. My entity script I created was named coroutine.lua which overwrote Lua's coroutine table since it seems the script name is used to make a table in LE. Renamed my entity script to something else and it works now. Who would have thunk it 5 Quote Link to comment Share on other sites More sharing options...
CrazyM Posted September 26, 2014 Share Posted September 26, 2014 Awesome, I didn't know you could do coroutines in Lua. FYI for others interested: http://lua-users.org/wiki/CoroutinesTutorial Quote CrazyMinnowStudio.com Youtube, Twitter, Facebook, G+ Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.