Lua for Windows libraries not found

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
lost_child
Prole
Posts: 2
Joined: Thu Aug 11, 2011 10:31 pm

Lua for Windows libraries not found

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Lua for Windows libraries not found

Post 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.
Help us help you: attach a .love.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Lua for Windows libraries not found

Post 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.
lost_child
Prole
Posts: 2
Joined: Thu Aug 11, 2011 10:31 pm

Re: Lua for Windows libraries not found

Post by lost_child »

Ah, good to know I wasn't missing anything. Thanks for the replies!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 5 guests