PDA

View Full Version : Accidentally reverted campaign module



Tatas
March 3rd, 2022, 06:01
I accidentally borked a map earlier tonight and couldn't find a way to fix it. It was part of a paid module so I figured I would just revert it. Unfortunately it's late at night here and I accidentally reverted a different paid campaign module (the actual campaign I'm running, Descent into Avernus) where I've made hundreds of hours of edits. Am I screwed? Is there a way to get the previous version before I reverted back? Thanks for any help you can provide.

damned
March 3rd, 2022, 06:29
Hi Tatas

I believe the answer is No unless you have made your own backups.
The changes are stored in the campaign folder in a subfolder called moduledb - reverting the module erases that file.
You may be able to use an undelete tool to recover the file.

LordEntrails
March 3rd, 2022, 14:57
Note, for future reference, you can revert single records via right click, you do not need to revert the entire module.

Also, rather than making changes to a module in your play campaign, myself what I do is make changes in a development campaign. It's not as clean in terms of story entries and map pins etc (since you end up with copies), but it allows me to load/unload a little more to my liking.

Tatas
March 3rd, 2022, 16:39
Thank you both for the replies. Luckily this story has a happy ending. My Windows 10 machine had shadow copy running so I was able to revert back to a version of the campaign folder from earlier in the day. Only lost what we played last night which was mostly theater of the mind. Boy, did I learn a lesson to backup the campaign folder! I'm going to write a small script that will do that for me automatically. Thanks for the notes about being able to selectively revert, that would have made it a much safer task. Of course I found that article after I found the information about doing it wholesale through the modules section.

Tatas
March 3rd, 2022, 18:04
Here's a PowerShell script I'm going to use to make backups of the campaign folder. I just reworked an old script I used for Valheim server backups. Obviously your specific directory locations may be different, but those can be modified. I've zipped the file up so that it can be attached here. You can also schedule this to run automatically on your PC if you wish using Task Scheduler. I've scheduled it to run daily. The script is designed to keep ten backup copies of the campaign folder as a default (this can be edited), and then starts overwriting the oldest. I don't know if there is an extension or other tool out there in the community to do this already, but feel free to use it if you'd like.

Trenloe
March 3rd, 2022, 18:16
Here's a PowerShell script I'm going to use to make backups of the campaign folder. I just reworked an old script I used for Valheim server backups. Obviously your specific directory locations may be different, but those can be modified. I've zipped the file up so that it can be attached here. You can also schedule this to run automatically if you wish. I don't know if there is an extension or other tool out there in the community to do this already, but feel free to use it if you'd like.
Very handy - thanks for sharing!