Search found 54 matches
- Mon Jul 20, 2015 4:25 pm
- Forum: Support and Development
- Topic: Loading files from an choosable user folder
- Replies: 17
- Views: 7478
Re: Loading files from an choosable user folder
love.filesystem.getDirectoryItems Does work. I'm using it with the FFI code. if love.filesystem.isDirectory("ImageMasks/") then self.previews,success = love.filesystem.getDirectoryItems("ImageMasks/") end Your mistake probably is somewhere else and not in ffi. If you upload the ....
- Fri Jul 17, 2015 5:37 am
- Forum: Games and Creations
- Topic: NUMBERF/CKER (formerly Numberwang) - math game (not 2048)
- Replies: 24
- Views: 18168
Re: NUMBERF/CKER (formerly Numberwang) - math game (not 2048
Hahahaha you actually used my suggestion for a name. Awesome.
- Wed Jul 15, 2015 9:45 am
- Forum: Support and Development
- Topic: Loading files from an choosable user folder
- Replies: 17
- Views: 7478
Re: Loading files from an choosable user folder
Just call it anywhere. it just sets the base write and real folder from %APPDATA% to being the directory above your code folder.So I must download FFI library and put it inside my .love? Or it's lua native then I can just write it inside my function Menu:saveTexture()?
- Tue Jul 14, 2015 11:43 pm
- Forum: Support and Development
- Topic: Loading files from an choosable user folder
- Replies: 17
- Views: 7478
Re: Loading files from an choosable user folder
Check the code here. Even though you aren't supposed to you can manually set the user folder via FFI. (thanks to slime for actually writing this) function changeDirectory() local ffi = require("ffi") ffi.cdef[[ int PHYSFS_mount(const char *newDir, const char *mountPoint, int appendToPath);...
- Tue Jul 14, 2015 11:22 pm
- Forum: Libraries and Tools
- Topic: a simple color picker
- Replies: 10
- Views: 8648
Re: a simple color picker
Awesome! New version has much nicer mouse behaviour! I'm going to be using a version of this in Colour Constructor, so your code is going to be used by hundreds of artists. I must say man, that's some damn dense code without any comments. I may upload a commented version after i work out how everyth...
- Tue Jul 14, 2015 11:13 pm
- Forum: Libraries and Tools
- Topic: Colour Constructor
- Replies: 9
- Views: 4744
Re: Colour Constructor
Thanks Evine. I think that is a good solution for singular files, but i ended up going with Slimes solution after a bit of IRC help. function changeDirectory() local ffi = require("ffi") ffi.cdef[[ int PHYSFS_mount(const char *newDir, const char *mountPoint, int appendToPath); ]]; ffi.cdef...
- Sun Jul 12, 2015 1:08 pm
- Forum: Libraries and Tools
- Topic: Colour Constructor
- Replies: 9
- Views: 4744
Re: Colour Constructor
Yeah! I agree entierly, Love honestly is a great option for making little tools, and a little bit of work on the engine to make a few non game related things would really help in that direction. Like love2d is so much easier than something like wxlua, which is what zerobrane is made in, and it's gre...
- Sun Jul 12, 2015 6:37 am
- Forum: Libraries and Tools
- Topic: Colour Constructor
- Replies: 9
- Views: 4744
Re: Colour Constructor
Well the solution to my MAC problem was dumb.
Zipping the app on a PC breaks things!!!
EDIT:
Slime thanks so much for that code.
Worked perfectly!
Zipping the app on a PC breaks things!!!
EDIT:
Slime thanks so much for that code.
Worked perfectly!
- Fri Jul 10, 2015 8:17 pm
- Forum: Libraries and Tools
- Topic: Colour Constructor
- Replies: 9
- Views: 4744
Re: Colour Constructor
Thanks Slime! I'll give that a shot and report back my results. But that sounds like a very promising option! The other problem that i need some help with is the mac build. The currently shipped mac build is really dodgy, as it is the love.app with instructions to drag in the .love file. (this wasn'...
- Fri Jul 10, 2015 5:18 pm
- Forum: Libraries and Tools
- Topic: Colour Constructor
- Replies: 9
- Views: 4744
Re: Colour Constructor
Thank Nicolai and his Love Frames for that! Also the guy that put together the dark skin.