Search found 8 matches

by BroccoliRaab
Mon Mar 05, 2018 7:38 pm
Forum: Libraries and Tools
Topic: BroccoliUtils - Misc. Collections of Libraries
Replies: 5
Views: 3578

Re: BroccoliUtils - Misc. Collections of Libraries

I thought I added an assert statement that would not allow cyclic tables, but I guess not. I'll fix that. I didn't know about that string.format so thats awesome to know about, And I probably should have known not to load from appdata. Of course thats a bad idea. I will update those things when I ge...
by BroccoliRaab
Sun Mar 04, 2018 3:33 pm
Forum: Libraries and Tools
Topic: BroccoliUtils - Misc. Collections of Libraries
Replies: 5
Views: 3578

BroccoliUtils - Misc. Collections of Libraries

BroccoliUtils is a collection of Libraries that I have used for developing my own games with Love2D. It has a libraries for: Saving data as a lua file that when run returns a table with all of your data Using timers to run a function periodically, or create a delay before it runs Converting a sprite...
by BroccoliRaab
Fri Jul 14, 2017 8:40 pm
Forum: Libraries and Tools
Topic: SaveData: A library for saving data in 35 lines
Replies: 6
Views: 7421

Re: SaveData: A library for saving data in 35 lines

I added the assertion, and now it escapes characters properly
by BroccoliRaab
Mon Jul 10, 2017 11:31 pm
Forum: Libraries and Tools
Topic: SaveData: A library for saving data in 35 lines
Replies: 6
Views: 7421

Re: SaveData: A library for saving data in 35 lines

I appreciate the criticism and suggestions. I was worried about performance and wasn't sure how to implement the usage of table.concat with non integer keys. I will also update it so as to escape the strings properly. I don't think I will update it to work with cyclic tables. And I feel as though ta...
by BroccoliRaab
Sun Jul 09, 2017 1:40 am
Forum: Libraries and Tools
Topic: SaveData: A library for saving data in 35 lines
Replies: 6
Views: 7421

Re: SaveData: A library for saving data in 35 lines

Thanks for the feedback. I have already made the changes to match your suggestions. I kept line 42 as is , because it also erases the comma that would form after the very last curly bracket of the actual data table. I later plan to have the option for the save function to acquire the metatable of th...
by BroccoliRaab
Fri Jul 07, 2017 10:40 pm
Forum: Libraries and Tools
Topic: SaveData: A library for saving data in 35 lines
Replies: 6
Views: 7421

SaveData: A library for saving data in 35 lines

SaveData is a small library for saving tables of any size into a file then loading them for use later. Usage saveData.save(data, saveFile) This will save the Table, data into a file named saveFile overwriting it if it exists and creating it if it does not. This will return the success and error valu...
by BroccoliRaab
Sun Jul 02, 2017 9:20 pm
Forum: Support and Development
Topic: Love_INI_Paser: how to read and write headers with variables?
Replies: 1
Views: 1684

Re: Love_INI_Paser: how to read and write headers with variables?

Given their example: local LIP = require 'LIP'; local data = { sound = { left = 70, right = 80, }, screen = { width = 960, height = 544, caption = 'Windows caption', focused = true, }, }; -- Data saving LIP.save('savedata.ini', data); You can instead do : local LIP = require 'LIP'; local data = { [&...
by BroccoliRaab
Tue Jun 27, 2017 4:06 am
Forum: Libraries and Tools
Topic: Dim4:A clock and timer library
Replies: 0
Views: 1771

Dim4:A clock and timer library

DIM4 I was working a creating a small simple library for timers in love 1.10.2. I thought I'd share it here. I'm not sure yet if I will update it and work on it, as it is something small I had made for myself. But if you'd like to, use it however you want. He is github link. https://github.com/Broc...