Page 1 of 1

Distributing with modules

Posted: Sun Apr 09, 2017 1:59 am
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 2323 times
Where am I supposed to put my module dependency when creating a .love file for distribution?

Thanks

Re: Distributing with modules

Posted: Sun Apr 09, 2017 3:15 am
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.

Re: Distributing with modules

Posted: Mon Apr 10, 2017 4:53 am
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.