BlackBox Posted March 21, 2014 Share Posted March 21, 2014 Hey guys, Really simple question today! For a project, I want to use lua's inbuilt PriorityQueue - so of course I write a good 'ol require seen belowrequire "loop.collection.PriorityQueue"Unfortunately, I get an error message telling me that the module could not be found. Is this because this library is not available to us? Or is my require call wrong? A swift answer would be super cool! Thanks ~BlackBox Link to comment Share on other sites More sharing options...
squeek Posted March 22, 2014 Share Posted March 22, 2014 That is not part of the default Lua library. That seems to be part of LOOP The default Lua library is very small. Here's the relevant reference manual for the version of Lua that Don't Starve uses: http://www.lua.org/manual/5.1/ Link to comment Share on other sites More sharing options...
simplex Posted March 22, 2014 Share Posted March 22, 2014 As @squeek pointed out, this is part of LOOP, not core Lua. Since LOOP is a pure Lua library (actually, a set of libraries), you may include it (or part of it) in your mod, however this will certainly bloat its size.It would be nice if Don't Starve included some Lua libraries, but it does not, except for a Windows-only* LuaSocket.* Which is silly. LuaSocket is absolutely cross-platform, and was originally developed under Linux. I can't get why DS doesn't offer it for every platform. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.