Page 1 of 1

What Lua libraries are included in Love 0.8.0?

Posted: Tue Jan 08, 2013 2:02 am
by fuxoft
Hello,

I have probably the opposite problem than most of people here. I already know Lua very well, I've been using it for many years, but I don't know almost anything about LOVE. I've been reading the Wiki and understand most of the LOVE libraries but I cannot find some of the most basic things. For example, I'd like to know which libraries are included in the default LOVE and what parts (if any) of the plain standard Lua are missing in LOVE or are implemented in a different way.

For example, by a mere accident, I found out that luasocket is included in LOVE. I also saw a LOVE example with string.find() function being called - neither of those is part of standard Lua. Is there some kind of basic list with ALL the extensions that are included in LOVE and are not part of default Lua? For example, bitwise operations, HTTPRequest library...?

Also, is there an official system to package custom compiled (i.e. not pure Lua) modules in Lua games? Or are all the modules mentioned LOVE pages written in pure Lua?

Thanks

Re: What Lua libraries are included in Love 0.8.0?

Posted: Tue Jan 08, 2013 2:29 am
by slime
LÖVE includes standard Lua 5.1, luasocket, and its own love.* API. Nothing else. string.find is a standard Lua string library function.

You can use third party compiled Lua libraries with LÖVE (such as bitop), although the require function is only able to load compiled libraries which are in the game's save directory, the other default Lua require paths, and in the current working directory set when LÖVE is launched.

Additionally, if a LÖVE game is not in fused release mode, LÖVE's require will only look for compiled libraries which exist in %appdata%\LOVE\ (or equivalent, depending on OS) or the working directory or the other default Lua require paths, not in %appdata%\LOVE\gamename\, for security reasons.

Re: What Lua libraries are included in Love 0.8.0?

Posted: Tue Jan 08, 2013 8:22 am
by fuxoft
Thanks! I saw string.find() used in a way where string.match would be better and I thought it's some kind of weird synonym. I totally forgor about Lua's string.find, sorry.

Is there a thread where the future of LOVE is discussed, e.g. what feature can be expected from the next version? For example, what about the switch to Lua 5.2?

Re: What Lua libraries are included in Love 0.8.0?

Posted: Tue Jan 08, 2013 8:32 am
by slime
fuxoft wrote:Is there a thread where the future of LOVE is discussed, e.g. what feature can be expected from the next version? For example, what about the switch to Lua 5.2?
My personal preference (which I believe many of the LÖVE developers share) is that the next language change LÖVE will get is a switch to LuaJIT instead of Lua 5.2. LuaJIT is orders of magnitude faster, includes an FFI, and has many Lua 5.2 features to boot, while still being a drop-in replacement for Lua 5.1.

You can find an incomplete list of some of the upcoming changes scheduled to be released with LÖVE 0.8.1 here. You can also check out the (not so large yet) commit-log for 0.9.0. Beyond the 0.8.1 changelog/commits and the existing 0.9.0 commits, nothing is certain. ;)

Re: What Lua libraries are included in Love 0.8.0?

Posted: Tue Jan 08, 2013 11:59 am
by Lafolie
Hopefully soon we can add enet to this list!