Page 1 of 2

Beginner Framework

Posted: Wed Dec 17, 2008 2:56 am
by Tabasco
I took a second look at love.filesystem and found what I was doing wrong.
After seeing the functions for locating the save directory, I assumed I had to try to open with a full path.

This evening I whipped up a basic starting framework that provides very basic functionality for saving and loading settings. Hopefully it will help new lovers get started.
I didn't package it with a license, so take your pick, MIT, zlib, bsd, you get the idea.

Update:
  • Included a formal MIT license
  • Added a Label widget
  • Added an option to Sheet to not render the frame and background (for full screen interfaces)

Re: Beginner Framework

Posted: Wed Dec 17, 2008 7:00 am
by bartbes
Tabasco wrote:I didn't package it with a license, so take your pick, MIT, zlib, bsd, you get the idea.
You know it doesn't work this way, right?
Anyway, I'll look into it this afternoon, it sound useful.

Re: Beginner Framework

Posted: Wed Dec 17, 2008 3:40 pm
by Tabasco
You know it doesn't work this way, right?
I hoped it would be apparent that I didn't really care, but if it makes you feel more comfortable I'll include something more formal next time.
As it stands, this is actually a better example of why one shouldn't mess around with code, alcohol, and fatigue all at once.

Re: Beginner Framework

Posted: Wed Dec 17, 2008 4:38 pm
by Merkoth
Can we consider this public domain, then?

Re: Beginner Framework

Posted: Wed Dec 17, 2008 4:42 pm
by Tabasco
Yes :)

Re: Beginner Framework

Posted: Wed Dec 17, 2008 7:17 pm
by Dvondrake
---

Re: Beginner Framework

Posted: Wed Dec 17, 2008 8:29 pm
by bartbes
Hmm.. that post just made it public domain :P (you might be able to find a topic around here about the problems with public domain-releasing).
However, just to clarify:
No license equals all rights reserved

Oops, totally forgot to say something about the code itself (getting grumpy).
I like the program/library/framework/whatever, however I would recommend changing the write code, and as 'read' code just use dofile.

Re: Beginner Framework

Posted: Wed Dec 17, 2008 9:25 pm
by Tabasco
So, a statement saying you can use it as public domain is ok, but a similar statement citing liberal licenses isn't?
It's irrelevant at this point I suppose. Once I've cleaned it up a little (okay, a lot), I'll include a formal license.

Are you suggesting that I write the save file as lua code and then load it by executing it?
If that's the case, wouldn't it be inherently insecure?

Thanks for the feedback :)

Re: Beginner Framework

Posted: Thu Dec 18, 2008 12:21 am
by SamPerson12345
This is awesome! Now I can get around to making an RPG! :D

Re: Beginner Framework

Posted: Thu Dec 18, 2008 7:03 am
by bartbes
Tabasco wrote:If that's the case, wouldn't it be inherently insecure?
You do have a small security risk, however one should first find the save file, then modify it so it can do something you can already do if you just change the .love. So it's nothing more dangerous than normal conditions.