Skip to content

Rolling Map Backups #121

Description

@iLPdev

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions