How to save and load tables?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
NoreoAlles
Party member
Posts: 107
Joined: Mon Jan 03, 2022 5:42 pm

How to save and load tables?

Post by NoreoAlles »

Hey, i really need to be able to save tables and load them when needed, since my massive procedurally generated game world is taking up 2 GB of Ram. I looked into possible solutions and found "serealizing" or smth like that, but i dont get it.
Thanks!
"Why do they call it oven when you of in the cold food of out hot eat the food?" - Jon Arbuckle
User avatar
zorg
Party member
Posts: 3436
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: How to save and load tables?

Post by zorg »

Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
darkfrei
Party member
Posts: 1169
Joined: Sat Feb 08, 2020 11:09 pm

Re: How to save and load tables?

Post by darkfrei »

Maybe use JSON as a safe file format.

https://github.com/grafi-tt/lunajson/
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
Post Reply

Who is online

Users browsing this forum: No registered users and 55 guests