Distributing with 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
sludgefrog
Prole
Posts: 3
Joined: Sat Mar 25, 2017 7:32 pm

Distributing with modules

Post by sludgefrog »

I have created a zip file with main.lua in it. I use a module called "SUIT", which is stored in a subdirectory called 'SUIT'.

My zip file looks like this:
- main.lua
- SUIT\core.lua
- SUIT\<all other suit files>

When I start up, I get:
Capture.PNG
Capture.PNG (28.76 KiB) Viewed 2321 times
Where am I supposed to put my module dependency when creating a .love file for distribution?

Thanks
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Distributing with modules

Post by slime »

zip files are case sensitive (but the Windows filesystem isn't) - make sure you're doing require("SUIT") instead of require("suit") if the folder name is all upper-case letters.
sludgefrog
Prole
Posts: 3
Joined: Sat Mar 25, 2017 7:32 pm

Re: Distributing with modules

Post by sludgefrog »

slime wrote: Sun Apr 09, 2017 3:15 am zip files are case sensitive (but the Windows filesystem isn't) - make sure you're doing require("SUIT") instead of require("suit") if the folder name is all upper-case letters.
Thanks! That was it.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests