Page 1 of 1

Lua for Windows libraries not found

Posted: Thu Aug 11, 2011 10:44 pm
by lost_child
I installed "Lua for Windows" (a couple Lua libraries bundled together), but my LOVE project doesn't seem to recognize them. Specifically, when I use this line in my LOVE code:

Code: Select all

require "ex"
LOVE is unable to find the "ex" library.

To say the same thing differently, when I installed "Lua for Windows," a Windows environment variable called LUA_PATH was created, but LOVE is ignoring my LUA_PATH variable. The book "Programming in Lua" makes it sound like all Lua programs should be aware of LUA_PATH. Is it normal for LOVE to ignore LUA_PATH, or am I doing something wrong?

BTW, I apologize for being an annoying newbie, but I couldn't find this question answered on this forum.

Re: Lua for Windows libraries not found

Posted: Fri Aug 12, 2011 6:31 am
by Robin
Makes sense. If you write a game and distribute it, you can't guarantee that your players have Lua installed, let alone that "ex" library.

Re: Lua for Windows libraries not found

Posted: Fri Aug 12, 2011 9:28 am
by bartbes
Yes, LÖVE contains its own version of lua on windows, so you'd need to drop extensions etc in the installation dir.

Re: Lua for Windows libraries not found

Posted: Fri Aug 12, 2011 11:36 am
by lost_child
Ah, good to know I wasn't missing anything. Thanks for the replies!