Skip to content

Track visited Fallout location on an interactive map

Notifications You must be signed in to change notification settings

FroZnShiva/fomap

Repository files navigation

Fallout Map

This adds tracking of visited locations to the map provided by Digital_Utopia.

Currently supported maps:

Caveats

This is just a quick hack, so there are some caveats:

  • Marking a location will now show up immediately – the page has to be reloaded.
  • The tracked locations are barely visible.

Persistence

All tracked locations are stored in your browser, more precicely in localStorage. This data might be removed when you clean your browser's history.

In order to migrate your progress to another machine or simply to back it up, see the commands below.

Export

Open the developer console in your browser and issue the following command:

localStorage.toSource().replace(/(^\(|\)$|")/g, '').replace(/'/g, '"')

Save the file, e.g., as fallout4.json. Note that if you copy the string from your browser's console, there are still some escaped quotes \" in the string. You might need to unescape them manually, e.g, by issuing (where pbpaste simply returns the contents of your clipboard (macOS)):

pbpaste | sed 's/\\\"/"/g' > fallout4.json

Import

In Firefox you might need to allow pasting by entering 'allow pasting' into the console.

Copy the content of the file fallout4.json and assign it to the variable json:

var json = '…'
var locations = JSON.parse(json)
for (var property in locations) {
    if (locations.hasOwnProperty(property)) {
        localStorage.setItem(property, locations[property])
    }
}

Then reload the page in order to see the tracked locations.

Screenshot

Screenshot

About

Track visited Fallout location on an interactive map

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published