Page 1 of 1

Help on a custom slot system

Posted: Sun Feb 27, 2022 11:43 pm
by Marioman2007
I got some motivation to do a slot system, but I have a few doubts and I would be very grateful if someone could answer these

how complicated can this sytem be? is it something I should get into?
how can I read the progress on the slot?
is deleting a slot possible?
what can be the limitations?
is doing this system worth it?
what could be the conditions which I would have to keep in mind while making this?
what could be the most difficult part of this?

Re: Help on a custom slot system

Posted: Mon Feb 28, 2022 4:25 am
by Emral
This all seems like stuff you'll have to answer for yourself when designing your system. But to humour the set of queries:
- However complicated you want it to be
- Depends on your implementation. You'll probably need a variable or table to store progress in. Then read from that.
- Depends on your implementation. I'd probably do it table-based and set contents to nil.
- Depends on your implementation. Probably few things.
- Worth it for what? If you need it for something, then probably
- I don't know
- I don't know

Re: Help on a custom slot system

Posted: Mon Feb 28, 2022 9:39 am
by Marioman2007
well, my system will simply load a level when the current save slot is 1
and then there will be options to use / start a slot, do you think it would be possible to delete slots then?
I know os.remove(filename) exists but iirc it was removed in LunaLua (for obvious reasons) but not in Lua?

also by "worth it" I meant if it would be something that people would like to use