Page 2 of 2

Re: makeLÖVE - LÖVE2D project generator

Posted: Mon May 26, 2014 2:32 pm
by davisdude
Just an update: added a GitHut for the Windows version. Fork it for the other versions if you want it included.
https://github.com/davisdude/MakeLOVE/b ... keLOVE.bat
Also added capability of automatically switching based on location of LÖVE.

Re: makeLÖVE - LÖVE2D project generator

Posted: Sat May 31, 2014 9:06 pm
by smoking bunny
just an update. but ive started work on a generator for LÖVE2D projects. im going to try and work out a copy/paste for library files as well, so people can have the files already etc.
will see...

Re: makeLÖVE - LÖVE2D project generator

Posted: Sat May 31, 2014 11:10 pm
by smoking bunny
so im actually near done with this makeLÖVE generator, built with love.
the one problem is the saving of files. as ive seen, you can only really write files to the library/application support/LÖVE [mac] folder, which is a bit annoying.

so there is no way around this?
im guessing it will just have to be in actual lua. but wanted to use makeLÖVE with LÖVE. guess to show what LÖVE can do

any ideas, pass them along. cheers

Re: makeLÖVE - LÖVE2D project generator

Posted: Sat May 31, 2014 11:13 pm
by Karai17
Use luas io module instead of loves fs module

Re: makeLÖVE - LÖVE2D project generator

Posted: Sat May 31, 2014 11:17 pm
by smoking bunny
aye, thats what im currently looking at now. its simple stuff. but just getting the saving is the main thing. lucky i bought the PiL book for these kind of measures, im still learning lua. though really, everyone is still learning new things no matter how long theyve been programming ;)

so ill do the main 'look with LÖVE and use lua for the rest ;)

i was doing a keypressed actions. so press 1 for main, press 2 for conf and so on. im also going to be looking at libraries and adding them. but people would have to have a centralised place they keep libraries so it can read the folder of add-ons/libraries

*edit*
i did get the files to write with just LÖVE, but as you said, the lua side would be best for this. but LÖVE did write, but only sadly in the library/etc/blahblah folder

Re: makeLÖVE - LÖVE2D project generator

Posted: Sat May 31, 2014 11:23 pm
by Karai17
You could store a copy of the project in the save Dir and use is.execute to copy and past the project, edit conf file, etc. That would let people customize their projects

Re: makeLÖVE - LÖVE2D project generator

Posted: Sat May 31, 2014 11:27 pm
by smoking bunny
true. ill just try the simple option for now. which is:
• have copy of empty makeLÖVE files, which are main.lua & conf.lua
• save window pop up to where you can save them and what name.

later on, ill more than likely add more. but just get the first working one out firse that works much like what has been made already with the shell script
but ill have a look see and see what turns up.

*edit add*
i didnt know about is.execute
is that lua or LÖVE?
either way ill still look

Re: makeLÖVE - LÖVE2D project generator

Posted: Sun Jun 01, 2014 12:08 am
by smoking bunny
aye its all coming together really nicely.
ill be working on it for a little bit more, but need to get some rest and will finish tomorrow and post it up. im just outlining the best method for people for saving. so i got it 'out' of the library LÖVE folder, so now just working on the 'where' selection save point

Re: makeLÖVE - LÖVE2D project generator

Posted: Sun Jun 01, 2014 12:11 am
by Karai17
Either let them type in a location, or auto save it to their home folder

Re: makeLÖVE - LÖVE2D project generator

Posted: Sun Jun 01, 2014 12:14 am
by smoking bunny
im going for the save to desktop, [or wherever] option just now, more for testing and getting it done [for now], then see if i can find a 'text input' thing for LÖVE so people could just type in makeLÖVE to where they save. then just click save ;)

but should be done by tomorrow after some well needed sleep ;)