Search found 148 matches
- Fri Jun 24, 2016 3:05 am
- Forum: Support and Development
- Topic: Library files not loading with require.
- Replies: 15
- Views: 7499
Re: Library files not loading with require.
Thanks for your help, will have a look at this later and have another go.
- Fri Jun 24, 2016 1:36 am
- Forum: Support and Development
- Topic: Library files not loading with require.
- Replies: 15
- Views: 7499
Re: Library files not loading with require.
Hello, thank you for your post. Yes I agree its basic stuff but you can appreciate my frustration its like the really simple things are causing problems when they shouldn't be. here is the project file. The assert sees that TEsound is in the /lib/TEsound/ directory. But I can't seem to get the funct...
- Thu Jun 23, 2016 4:09 pm
- Forum: Support and Development
- Topic: Library files not loading with require.
- Replies: 15
- Views: 7499
Re: Library files not loading with require.
I seem to be getting the same problem when I try and put library files into separate directories in the lib folder. Most of the time they don't work when I try and run the functions from within the main program once I move them to the lib.Libraryfolder. Like I try these libraries, and for the most p...
- Thu Jun 23, 2016 1:22 pm
- Forum: Support and Development
- Topic: cron a working example or tutorial.
- Replies: 4
- Views: 1786
Re: cron a working example or tutorial.
Thanks for the pointers. Managed to get cron working and now I have timed background changes.
- Wed Jun 22, 2016 11:42 pm
- Forum: Support and Development
- Topic: cron a working example or tutorial.
- Replies: 4
- Views: 1786
Re: cron a working example or tutorial.
Thanks for that explanation. That explains a bunch. So the init.lua is just a way to combine a bunch of separate library files into a kinda superlibrary table that can be accessed from the outside. This is the example given on the cron git "help" page. local cron = require 'cron' local fun...
- Wed Jun 22, 2016 2:03 pm
- Forum: Support and Development
- Topic: cron a working example or tutorial.
- Replies: 4
- Views: 1786
cron a working example or tutorial.
Hi, I have been searching the forum but there appears to be only code snippets available. I found the cron thread but I can't seem to get it to work as a /lib/cron/cron.lua it seems to need to live in the root directory. Do I need to write the init.lua code myself? Next thing was I had the library i...
- Wed Jun 22, 2016 9:30 am
- Forum: Support and Development
- Topic: Library files not loading with require.
- Replies: 15
- Views: 7499
Re: Library files not loading with require.
Thanks very much for your help and patience. I got the example working and can now use library directories.
- Wed Jun 22, 2016 9:03 am
- Forum: Support and Development
- Topic: Library files not loading with require.
- Replies: 15
- Views: 7499
Re: Library files not loading with require.
so I should use require ("lib.suit") if i have a directory structure thus. projectdirectory/ main.lua conf.lua ..................../documents/ .................../assets/ ................../lib/ ..................................../suit/ ...................................suit files but th...
- Wed Jun 22, 2016 8:01 am
- Forum: Support and Development
- Topic: Library files not loading with require.
- Replies: 15
- Views: 7499
Library files not loading with require.
Hi I have been searching the forum and wiki and I must be missing something real obvious. I can get require() to include files when they are in the project directory but as you appreciate I don't want to put all the files in the main directory, but that seems to be how love wants you to organize the...
- Wed Jun 22, 2016 3:17 am
- Forum: Support and Development
- Topic: love.filesystem.mount question about loading content from save directory
- Replies: 8
- Views: 4477
Re: love.filesystem.mount question about loading content from save directory
Thank you! You predicted a headache.