PDA

View Full Version : how do i fix fantasy grounds crashing



Mike Maycock
April 19th, 2019, 18:10
I am getting

database error amxl parse error occurred processing file campaigns/waterdeep3/campaign.xml - error on line 4: error reading end tag

Does anyone know how to fix this.

I have did a complete uninstall and and a new install

any help would be great

LordEntrails
April 19th, 2019, 18:14
Does this repeat with a new campaign?
Does it repeat if you disable all extension?
Does it repeat in a New campaign with no extensions?

I'm guessing your campaign file got corrupted. If you post your "waterdeep/campaign.xml" file we can take a look. Sounds like your file got corrupted. Did you edit it manually?

Zacchaeus
April 19th, 2019, 18:18
The error is likely in the campaign itself which won't be affected by uninstalling and reinstalling.

First thing to check is whether the error occurs in a new campaign without any extensions. If it does not then the next thing to look at is the extensions you are using if any. Start by removing all of the extensions from your campaign and then enabling them one at a time until the error repeats. You will then have found the culprit. Check the thread for that extension to ensure that it still works and if it does make sure you have the latest version.

If that doesn't solve the issue then your campaign file may well have become corrupted. To see if you can fix that start by backing up the entire waterdeep3 campaign folder. Then open up that folder and rename the file db.xml to dbold.xml or whatever. Then find the largest or latest session.xml file and rename it to db.xml and then start your campaign up.

Mike Maycock
April 19th, 2019, 18:22
Hello Lordentrails

It happens when i create a new campaign nake for waterdeep. Then it will work for a couple of weeks and then crash again. I lose all the data and have to start again.
I dont have any extensions enabled
I have edited it manually bc i am not that smart in computers. How do i post the xml you are looking ?

Thanks

Mike Maycock
April 19th, 2019, 18:25
Hey zacchaeus

I am not running any extensions at all. I have tried renaming and finding the latest session and when i load it i get the same error.

Trenloe
April 19th, 2019, 18:26
Fixing a corrupted campaign.xml file is pretty easy - create a brand new campaign with the same ruleset and then copy it from the directory of the new campaign to the directory of the campaign causing the error - overwrite the campaign.xml file there. Only copy campaign.xml, nothing else. This file just has the ruleset name, GM name (default GM) and password info (if any), it doesn’t have any data specific to the game itself.

Trenloe
April 19th, 2019, 18:29
If this works for a while the fails, something is corrupting it.

What operating system are you running on?
Do you use any cloud synch applications to backup your FG data?

Mike Maycock
April 19th, 2019, 18:29
trenloe


I have did that and when i run the new game it runs good for a couple of sessions and i get the same error and losing all data

Mike Maycock
April 19th, 2019, 18:36
If this works for a while the fails, something is corrupting it.

What operating system are you running on?
Do you use any cloud synch applications to backup your FG data?

I am running windows 8 and I dont use any cloud application to back fg

Trenloe
April 19th, 2019, 18:38
I am running windows 8 and I dont use any cloud application to back fg
For testing, in future have the FG console open by typing /console in the chat window before you exit FG - then don’t just close down FG, exit back to the launcher via the desktop right click menu - look in the console and see if there are any errors or warning regarding saving/updating files.

Mike Maycock
April 19th, 2019, 18:47
For testing, in future have the FG console open by typing /console in the chat window before you exit FG - then don’t just close down FG, exit back to the launcher via the desktop right click menu - look in the console and see if there are any errors or warning regarding saving/updating files.

when i do that i see the error that i started with

Mike Maycock
April 19th, 2019, 18:51
For testing, in future have the FG console open by typing /console in the chat window before you exit FG - then don’t just close down FG, exit back to the launcher via the desktop right click menu - look in the console and see if there are any errors or warning regarding saving/updating files.

Hey


When I do that i dont get an error now but as soon as i load it. I get the error that started this thread

Zacchaeus
April 19th, 2019, 19:41
Where are you storing your FG Data folder (i.e. what's the full path to the folder) and do you have full read/write access to that location?

Mike Maycock
April 19th, 2019, 19:46
Where are you storing your FG Data folder (i.e. what's the full path to the folder) and do you have full read/write access to that location?

C:\Users\mmay****\AppData\Roaming\Fantasy Grounds\campaigns

is this what you looking for ?

Trenloe
April 19th, 2019, 20:26
When I do that i dont get an error now but as soon as i load it. I get the error that started this thread
Please post the campaign.xml file that you're having issues with.

Mike Maycock
April 19th, 2019, 20:44
Please post the campaign.xml file that you're having issues with.

What would be the best way to post the campaign file on here . I cant copy and paste it here and when i drag it over it opens up to another internet page. i could copy and paste that but it would be a lot

sorry i am not the greatest at computers

Mike Maycock
April 19th, 2019, 20:46
i have attached the campaign file

Trenloe
April 19th, 2019, 20:54
i have attached the campaign file
Thanks for posting.

Was that the actual campaign.xml file? Because it contains the data from a db.xml file. I've known the campaign.xml file to rarely get corrupted (become zero length) but I've never heard of it getting overwritten with the data from db.xml.

The campaign.xml file is very short and contains little data. A 5E campaign.xml will contain just this:


<?xml version="1.0" encoding="iso-8859-1"?>
<root version="3.3">
<password></password>
<ruleset>5E</ruleset>
<username>GM</username>
</root>

Are you doing any editing on that file at all?
When is that data changing? When you exit a campaign in FG if you immediately open that file what does it look like?

Mike Maycock
April 19th, 2019, 21:18
Thanks for posting.

Was that the actual campaign.xml file? Because it contains the data from a db.xml file. I've known the campaign.xml file to rarely get corrupted (become zero length) but I've never heard of it getting overwritten with the data from db.xml.

The campaign.xml file is very short and contains little data. A 5E campaign.xml will contain just this:


<?xml version="1.0" encoding="iso-8859-1"?>
<root version="3.3">
<password></password>
<ruleset>5E</ruleset>
<username>GM</username>
</root>

Are you doing any editing on that file at all?
When is that data changing? When you exit a campaign in FG if you immediately open that file what does it look like?

Let me bring a another campaign file from my other waterdeep campaigns. I haven't modified any data

Trenloe
April 19th, 2019, 21:25
Let me bring a another campaign file from my other waterdeep campaigns.
Thanks for posting.

Yeah, that's got corrupted:

https://www.fantasygrounds.com/forums/attachment.php?attachmentid=27117

Are you using a password with that campaign? If so, does it have any non standard characters in it?

Copy over the attached campaign.xml file and see if your campaign loads OK. Keep a copy of this handy, and if you get the error in future, don't manually edit any of the XML files, just copy this file back over.


I haven't modified any data
Are you just modifying data within FG or are you editing the XML directly?

Mike Maycock
April 19th, 2019, 21:30
Thanks for posting.

Yeah, that's got corrupted:

https://www.fantasygrounds.com/forums/attachment.php?attachmentid=27117

Are you using a password with that campaign? If so, does it have any non standard characters in it?

Copy over the attached campaign.xml file and see if your campaign loads OK. Keep a copy of this handy, and if you get the error in future, don't manually edit any of the XML files, just copy this file back over.


Are you just modifying data within FG or are you editing the XML directly?

Hey

Thanks and there is no password for the campaign

Mike Maycock
April 19th, 2019, 21:34
Thanks for posting.

Yeah, that's got corrupted:

https://www.fantasygrounds.com/forums/attachment.php?attachmentid=27117

Are you using a password with that campaign? If so, does it have any non standard characters in it?

Copy over the attached campaign.xml file and see if your campaign loads OK. Keep a copy of this handy, and if you get the error in future, don't manually edit any of the XML files, just copy this file back over.


Are you just modifying data within FG or are you editing the XML directly?

Hey


When i put the one in that you did for me i get the same error appearing

Mike

Trenloe
April 19th, 2019, 21:40
Hey


When i put the one in that you did for me i get the same error appearing

Mike
Close FG down completely, don't copy files when FG is open, then copy the campaign.xml file I attached above into the campaign directory of the campaign you're going to run - overwrite the file that's already there. Once it's copied over, open it in a text editor and make sure it looks like this:


<?xml version="1.0" encoding="iso-8859-1"?>
<root version="3.3">
<password></password>
<ruleset>5E</ruleset>
<username>mike</username>
</root>

If it does look like the above, then close the text editor and start up FG and attempt to load the campaign. If you get the error again, open the file in a text editor - is it the same as the text above, or has it changed?

Mike Maycock
April 19th, 2019, 21:50
Close FG down completely, don't copy files when FG is open, then copy the campaign.xml file I attached above into the campaign directory of the campaign you're going to run - overwrite the file that's already there. Once it's copied over, open it in a text editor and make sure it looks like this:


<?xml version="1.0" encoding="iso-8859-1"?>
<root version="3.3">
<password></password>
<ruleset>5E</ruleset>
<username>mike</username>
</root>

If it does look like the above, then close the text editor and start up FG and attempt to load the campaign. If you get the error again, open the file in a text editor - is it the same as the text above, or has it changed?

thank you for your time