Page 1 of 1
[SOLVED] Simple save/load game system using .txt files?
Posted: Fri Feb 08, 2019 8:58 am
Re: Simple save/load game system using .txt files?
Posted: Fri Feb 08, 2019 12:05 pm
What is table.show? Why do you call saveGame() when you want to load a game?
To get better answers, post a love file with the entire code.
Your code will only work in Windows (because of mkdir Games). There's also the danger that the Games directory is created in a random location, if you didn't make sure the working directory is what you want it to be. Better use love.filesystem
to avoid all of these problems.
BTW, there are several ready to use solutions available for serialization, so you don't need to reinvent the wheel. You can find some of them here
Edit: deleting your question once you got an answer is fucking rude.