1.8.2 Cant load saved game

Here you can... report bugs. Open a new thread for each bug, please.
Post Reply
Guest

1.8.2 Cant load saved game

Post by Guest »

Start a game.
Save it and enter foobar as file name.

Directly press Load game and enter foobar as name


Dont work - "Doesn't seam to be a bygfoot save game."

Sigh!
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

this is because the extension '.zip' is automatically appended to the name you give (unless it already has a .zip extension). so the file saved isn't foobar, but foobar.zip, in fact.

you have to enter foobar.zip to load your savegame.

in 1.9.0 it's a bit better, you can enter foobar and the program appends .zip automatically.

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

Post by Guest »

Nope - tried that - does not work either.
Guest

Post by Guest »

The only thing in .bygfoot/saves are the following 3 files:


foobar_teams.xml
foobar_general.xml
foobar_fixtures.xml


Game was saved as foobar.
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

then maybe compression is disabled (preferences->load/save).

if i disable compression, i have those 3 files, too. now if select any one of them, and click 'open', the game gets loaded no problem.

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

Post by Guest »

Tried that got the following error:


** (bygfoot:7226): CRITICAL **: xml_teams_read: error parsing file .bygfoot/saves/foobar_teams.xml


** (bygfoot:7226): WARNING **: error message: Fel på rad 45012: Tecknet " " är inte giltigt i början på ett entitetsnamn; tecknet & inleder en entitet. Om detta &-tecken inte ska vara en entitet måste du skriva om det som &.


translation:
Character " " is not valid as the start of a entity name the character & must start an entity name. If this &-tecken not shall be the start of an entity you must write it as &


So it looks like the program is saving the files in an invalid format.
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

which country file are you using? it sounds as if there's an ampersand (&) in a team name. you'd have to edit the country file and replace the & with 'and' and the problem should be solved.

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

Post by Guest »

The bad line in the file contains the following:

<_28>Dagenham & Redbridge</_28>


Its the "&" sign that confuses the parser.
There was another team that also had that character in its name
that confused the parser.

After removing the offending characters from the team name - it worked to load the game.

Maybe fix the game so it make sure that any player or team with
a "&" in its name are rewritten ?
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

;oops: i thought i fixed this a long time ago. this is also why i immediately knew what caused the error.

which package do you use? and did you download the official team names?

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

Post by Guest »

No package - I use the official team names - England.
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

what do you mean 'no package'? you must have downloaded the rpm, srpm, src or binary package, no? or did you use the update script to patch to 1.8.2?

anyway, i think your country defs are older than 1.8.2 (or maybe even 1.8.1), which is why the ampersands were still there. i looked into the 1.8.2 packages as well as into the official team names at the home page and neither contained ampersands.

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

Post by Guest »

I meant no additional packages.

Just downloaded the official src for the game compiled and installed it.

However I used to have some old version of the game installed from many months ago. Maybe 1.5 or so.

Maybe some data from it got used somehow.
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

Anonymous wrote:Maybe some data from it got used somehow.
probably. you should delete the old $HOME/.bygfoot folder then.

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