Page 2 of 2
Re: Lövely Character Creator
Posted: Fri Mar 02, 2012 4:28 am
by xeol
I made the color sliders, kinda lame, but functional.
I could not create the save file system, don't know exactly how to do it or even if it's possible with love 0.7.2.
EDIT: Is it possible to save files outside the .love file? I think this will probably stop the development of this project.
Re: Lövely Character Creator
Posted: Fri Mar 02, 2012 7:49 am
by miko
xeol wrote:I made the color sliders, kinda lame, but functional.
I could not create the save file system, don't know exactly how to do it or even if it's possible with love 0.7.2.
EDIT: Is it possible to save files outside the .love file? I think this will probably stop the development of this project.
Sure, but remember to set the identity.
Re: Lövely Character Creator
Posted: Fri Mar 02, 2012 8:35 am
by T-Bone
If you just save files with love.filesystem, without setting any Identity or anything, the files usually just appear in ~/.local/share/love/loveapp.love/ on Linux. I guess it's similar on Windows and OSX. It's kind of weird to have a folder with a dot in its name but it works.
Re: Lövely Character Creator
Posted: Fri Mar 02, 2012 9:22 am
by coffee
T-Bone wrote:If you just save files with love.filesystem, without setting any Identity or anything, the files usually just appear in ~/.local/share/love/loveapp.love/ on Linux. I guess it's similar on Windows and OSX. It's kind of weird to have a folder with a dot in its name but it works.
Yes, also in osx ending ".love" folders turns too in a directly running love app without have it to zip it. Sometimes it's very handy but I always have to make sure that that love file isn't indeed a folder and that is zip packed for distribution.
Re: Lövely Character Creator
Posted: Fri Mar 02, 2012 8:02 pm
by xeol
Note that you can only set the name of the folder to store your files in, not the location.
So it will always be on the users directory?
Btw, I really can't think of a way to save the image. Apparently there is no function to read a part of the screen into imagedata, or even to read a specific pixel on the screen. If anyone knows a way to do it, tell me or feel free to add it to the code.
Also, I posted in the charas-project forum and way of the pixel yesterday, but got no replies so far ):
Re: Lövely Character Creator
Posted: Fri Mar 02, 2012 9:28 pm
by Robin
If you draw to a
Framebuffer, rather than directly to screen, you can use
Framebuffer:getImageData.
Re: Lövely Character Creator
Posted: Fri Mar 02, 2012 10:21 pm
by xeol
It worked, but somehow the resulting image is upside down. Do anyone know why is that?
Here goes the current version:
Re: Lövely Character Creator
Posted: Fri Mar 02, 2012 11:45 pm
by TechnoCat
xeol wrote:It worked, but somehow the resulting image is upside down. Do anyone know why is that?
Bug fixed in 0.8.0:
https://bitbucket.org/rude/love/issue/1 ... oader-fail