Missing modules

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
jonny2027
Prole
Posts: 1
Joined: Thu Jun 27, 2013 9:09 am

Missing modules

Post by jonny2027 »

Hello,

I have recently started loooking at Love and i love it but i am having problems running some samples and i wondered how i install missing modules. I get errors about missing modules leaf.lua and reload.lua.

Can anyone give me some advice on how to install these missing modules on mac os x

Thanks
User avatar
miko
Party member
Posts: 410
Joined: Fri Nov 26, 2010 2:25 pm
Location: PL

Re: Missing modules

Post by miko »

jonny2027 wrote:Hello,

I have recently started loooking at Love and i love it but i am having problems running some samples and i wondered how i install missing modules. I get errors about missing modules leaf.lua and reload.lua.

Can anyone give me some advice on how to install these missing modules on mac os x

Thanks
Do you have those files inside your *.love file (*.zip archive)?
For earlier versions of love you could do

Code: Select all

require ("leaf.lua")
, but in recent versions (and in official lua) you need

Code: Select all

require ("leaf")
. So you may need to modify your main.lua (or other) file.
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 6 guests