Jump to content

Recommended Posts

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 below

require "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 :D

 

 

~BlackBox

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.

Edited by simplex

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...