iLPdev / iLPdev/discMapper

Rolling Map Backups

Open
#121 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.