Beginner Framework

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Tabasco
Citizen
Posts: 72
Joined: Tue Dec 02, 2008 5:04 pm

Beginner Framework

Post 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)
Attachments
lvfw.love
(4.89 KiB) Downloaded 459 times
Last edited by Tabasco on Fri Dec 19, 2008 6:32 pm, edited 1 time in total.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Beginner Framework

Post 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.
User avatar
Tabasco
Citizen
Posts: 72
Joined: Tue Dec 02, 2008 5:04 pm

Re: Beginner Framework

Post 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.
User avatar
Merkoth
Party member
Posts: 186
Joined: Mon Feb 04, 2008 11:43 pm
Location: Buenos Aires, Argentina

Re: Beginner Framework

Post by Merkoth »

Can we consider this public domain, then?
Dvondrake
Prole
Posts: 29
Joined: Sun Oct 26, 2008 5:53 pm

Re: Beginner Framework

Post by Dvondrake »

---
Last edited by Dvondrake on Mon Jan 21, 2019 10:20 pm, edited 1 time in total.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Beginner Framework

Post 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.
User avatar
Tabasco
Citizen
Posts: 72
Joined: Tue Dec 02, 2008 5:04 pm

Re: Beginner Framework

Post 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 :)
User avatar
SamPerson12345
Prole
Posts: 41
Joined: Sat Aug 30, 2008 5:35 pm

Re: Beginner Framework

Post by SamPerson12345 »

This is awesome! Now I can get around to making an RPG! :D
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Beginner Framework

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest