Rolling Map Backups
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 8
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the mapper's existing saveMap and timer integration points; the issue does not name files or tests. Compare the rolling five-file backup example with the single-file timer alternative, then verify that autosaves occur and preserve the expected backup files without disrupting mapping.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100