PDA

View Full Version : is it possible to recover db.xml



lousilver
December 17th, 2022, 06:43
Hi,

I was manually editing db.xml to put multiple paragraphs in a frame, something i've done dozens of times. but i must have done something wrong, as when I loaded the campaign to check my work i got some warnings (see below), and the campaign was completely utterly blank. Some quick googling suggests there's a db.backup.xml somewhere, but i don't see one in the campaign folder, i'm not sure if that's something people (smartly) do manually before manipulating their files. It's not a huge loss, but would be nice to recover if at all possible (i'm suspecting not - although i see below the log mentioned a backup was created...where is it?)

[12/17/2022 12:47:32 AM] [ERROR] Process Data File (): An error occurred while parsing EntityName. Line 1604, position 545.
[12/17/2022 12:47:32 AM] [ERROR] Error while loading campaign database.
[12/17/2022 12:47:33 AM] MEASURE: LOAD - PART 1 - 8.5653756
[12/17/2022 12:47:33 AM] Migrating campaign database to latest data version. (CoreRPG)
[12/17/2022 12:47:33 AM] Campaign database backup created.
[12/17/2022 12:47:33 AM] MEASURE: MODULE LOAD - 0.2529739 - D&D Monster Manual
[12/17/2022 12:47:33 AM] MEASURE: MODULE LOAD - 0.0214616 - D&D Monsters of the Multiverse - Players
[12/17/2022 12:47:34 AM] MEASURE: LOAD - PART 2 - 1.3304518
[12/17/2022 12:48:08 AM] Destroying match
[12/17/2022 12:48:08 AM] Tabletop scene exiting.
[12/17/2022 12:48:08 AM] Launcher scene starting.

Zacchaeus
December 17th, 2022, 09:25
If you have session files you can revert to an earlier save https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/1207304196/Restore+Campaign+to+an+Earlier+Save

Note that you can add a paragraph inside a text frame by positioning your cursor where you want the break to be and press SHIFT+ enter. See video fourteen here https://www.fantasygrounds.com/forums/showthread.php?75515-New-Video-Series

LordEntrails
December 17th, 2022, 16:01
If you don't have a backup of the db, you can use something like notepad++ to make sure the xml is well formatted. It might be as simple as you forgot to close a tag or such. If you haven't already.

lousilver
December 17th, 2022, 18:45
Thank-you! I didn't realize the session files were backups, i thought there were maybe chatlogs. I had only one session file with the content, which also had the error in it. Turned out to be a missing '#'. It wouldn't have been a huge disaster like some of my other modules, but I'm a bit relieved to not have to recreate that work, and to know that each campaign does indeed have backup files.

damned
December 18th, 2022, 03:28
You shoudl consider also backing up your campaign directories periodically in case you have a disk failure, virus, human error etc..