PDA

View Full Version : How do you retrieve a deleted map?



Geometer
March 1st, 2021, 12:42
5e, FG Unity.

Messing about with the maps in Curse of Strahd I managed to delete a player map from the campaign. It's obviously still on the hard drive somewhere as it shows if I open in a second iteration of CoS, but where is it and how do I reinstate the original?

Trenloe
March 1st, 2021, 12:50
Go to the module activation screen and right-click on the module and select revert changes. Note that this will revert any changes you've made to that module within that campaign.

Geometer
March 1st, 2021, 13:02
Go to the module activation screen and right-click on the module and select revert changes. Note that this will revert any changes you've made to that module within that campaign.

Um.. thanks but I've made a lot of changes to maps, text etc. within the campaign, I don't want to lose those and have to do them all over again. Is there no way of reinstating the one map?

Trenloe
March 1st, 2021, 13:23
You'll need to edit the campaign moduledb XML data. If you're not comfortable with this I wouldn't recommend it. Even if you are comfortable - make a backup before you do anything!

In the <FG app data>\campaigns\<your campaign name>\moduledb directory there will be an XML file called DD Curse of Strahd.xml - without FG running, make a copy of this file into a separate directory as a backup. Then open the original file in a text editor. Within the <image> data there will be a node showing as deleted. Here's an example:


<?xml version="1.0" encoding="utf-8"?>
<root version="4" dataversion="20201016">
<image>
<id-00012 type="deleted" />
...
...

Delete the whole line with the delated data, save the file and then load up your campaign - the image should be back to it's base settings. All your other edited module data should be OK.

Geometer
March 1st, 2021, 13:52
You'll need to edit the campaign moduledb XML data. If you're not comfortable with this I wouldn't recommend it. Even if you are comfortable - make a backup before you do anything!

In the <FG app data>\campaigns\<your campaign name>\moduledb directory there will be an XML file called DD Curse of Strahd.xml - without FG running, make a copy of this file into a separate directory as a backup. Then open the original file in a text editor. Within the <image> data there will be a node showing as deleted. Here's an example:


<?xml version="1.0" encoding="utf-8"?>
<root version="4" dataversion="20201016">
<image>
<id-00012 type="deleted" />
...
...

Delete the whole line with the delated data, save the file and then load up your campaign - the image should be back to it's base settings. All your other edited module data should be OK.

"Uncomfortable" doesn't even begin to describe how that makes me feel. The inner workings of PCs are a complete mystery to me, I've no idea what I'm doing and I'm not even going to try to follow those instructions.. Is there not an easier way?

NB; It's not a complete disaster if there isn't, I still have the DM map available which I can modify for use as a player map if necessary.

Trenloe
March 1st, 2021, 14:05
You can add the original map as a new image to the campaign - the problem will be that links to the original map (e.g. in a reference manual or story entry) won't work as they'll still be pointing to the old (deleted) reference, and any pin links won't be present on the map.

To add the image to the campaign as a "new" map, go to Assets and search for the original map name, then double click on the image and click on the "Create Image Record" button.

Geometer
March 1st, 2021, 14:26
You can add the original map as a new image to the campaign - the problem will be that links to the original map (e.g. in a reference manual or story entry) won't work as they'll still be pointing to the old (deleted) reference, and any pin links won't be present on the map.

To add the image to the campaign as a "new" map, go to Assets and search for the original map name, then double click on the image and click on the "Create Image Record" button.

Done, many thanks. Links not an issue as I'm writing my own for this map.

Much obliged to you.

similarly
March 2nd, 2021, 03:15
I had this happen with a map I created. There's a way to load a previous save! I'd have to look for it:
Here it is: Restore from db backup.
https://www.fantasygrounds.com/forums/showthread.php?48152-How-to-restore-from-db-backup

I spent an insane amount of time making a map (using a tile pack) inside FG. Then decided I didn't like it and deleted it. Then regretted and wanted it back. Loading the db saved me doing it over again.

Geometer
March 2nd, 2021, 12:04
I had this happen with a map I created. There's a way to load a previous save! I'd have to look for it:
Here it is: Restore from db backup.
https://www.fantasygrounds.com/forums/showthread.php?48152-How-to-restore-from-db-backup

I spent an insane amount of time making a map (using a tile pack) inside FG. Then decided I didn't like it and deleted it. Then regretted and wanted it back. Loading the db saved me doing it over again.

Thanks, I appreciate the suggestion but, frankly, I find that proposal just as scary as Trenloe's. I'll stick with re-doing the map for now.

Griogre
March 2nd, 2021, 20:08
similarly's suggestion is a good one. To make it work you would simply need to rename the current file to something else and the backup file to the current file. It might not be worth it to you now, but if you really have a problem in the future, its a good option.

similarly
March 2nd, 2021, 22:52
I've actually done it and it's not that hard or scary. Just follow the directions (and make sure you keep a backup of your campaign before you start ... and it's not a bad idea to back up the campaign once in a while anyway!)