Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rolling Map Backups #121

Open
iLPdev opened this issue Aug 27, 2020 · 0 comments
Open

Rolling Map Backups #121

iLPdev opened this issue Aug 27, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@iLPdev
Copy link
Owner

iLPdev commented Aug 27, 2020

Is your feature request related to a problem? If so, please describe.
There is no autosave built into the mapper

Describe the solution you'd like
Leris' rolling backup solution:

mapper.backupVersion = mapper.backupVersion or 0
mapper.backupVersion = (mapper.backupVersion + 1) % 5

local fileName = getMudletHomeDir() .. "/map/backup" .. mapper.backupVersion .. ".dat"
saveMap(fileName)
echoM("Map has been saved as " .. fileName)

Describe alternatives you've considered
Breakerone9's timer solution:

Set a 5minute timer that runs

saveMap(getMudletHomeDir() .. "/map/backup.dat")

Additional context
Discord #help discussion on 8/25

@iLPdev iLPdev added the enhancement New feature or request label Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant