Unstable- xml load game error

Here you can... report bugs. Open a new thread for each bug, please.
Post Reply
vector
Posts: 449
Joined: Sat Dec 18, 2004 11:26 pm
Location: Australia, Victoria

Unstable- xml load game error

Post by vector »

Zip is on I saved and reloaded and got an error

Code: Select all

** (bygfoot:3800): CRITICAL **: xml_teams_read: error parsing file /home/mark/.bygfoot/saves/unstable_teams.xml

** (bygfoot:3800): WARNING **: error message: Error on line 62426: Character ' ' is not valid at the start of an entity name; the & character begins an entity; if this ampersand isn't sup
oo posed to be an entity, escape it as &
oo it seems i cant attach the zip file :cry:

just checked it all again. a complete new unstable cvs upload and make
same problem.
simply start, save, and load and twang
"There are two ways to score. Dribble it over the line or smash it into the back of the net."
What type are you?
arnaudus
Posts: 41
Joined: Thu Dec 23, 2004 6:43 pm

Post by arnaudus »

'&' is an illegal character in an XML file. Just replace it by & , such as in HTML.
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

arnaudus wrote:'&' is an illegal character in an XML file. Just replace it by & , such as in HTML.
i really wonder where it comes from... i'm sure i've replaced those &'s in the english country file :-?

gyözö
Press any key to continue or any other key to quit.
vector
Posts: 449
Joined: Sat Dec 18, 2004 11:26 pm
Location: Australia, Victoria

Post by vector »

Is the problem not caused further back?
In your country_eng
line 118 and 122 you have two teams with & in it.

your game code must then save these as xml

So either it needs to add "amp" to all "&" it finds as it saves

or

we ensure there are no "&" in country files.

Which would you prefer?
"There are two ways to score. Dribble it over the line or smash it into the back of the net."
What type are you?
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

vector wrote:In your country_eng
line 118 and 122 you have two teams with & in it.
this is what i don't understand at all. i though i've eliminated those a long time ago :-(
we ensure there are no "&" in country files.
Which would you prefer?
this one seems to be the easier solution. there aren't a lot of teams with &'s anyway (only the two in the english file).

gyözö
Press any key to continue or any other key to quit.
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

the country file is updated now in the cvs and the ampersands are removed.

gyözö
Press any key to continue or any other key to quit.
Post Reply