Game crashes on 'begin new week'

Here you can... report bugs. Open a new thread for each bug, please.
Post Reply
pdrie
Posts: 2
Joined: Sun Jan 01, 2006 12:54 pm

Game crashes on 'begin new week'

Post by pdrie »

After playing a couple of seasons Bygfoot crashes when I begin a new week. The game shows some matches of a cup I'm not in and then crashes. The console in which I started Bygfoot has an error message:

** (bygfoot:7328): WARNING **: cup_from_clid: didn't find cup with id 2012

I am using 1.9.4 binary on Kubuntu 5.10.
ade334
Posts: 2
Joined: Mon Jan 02, 2006 10:23 pm

Post by ade334 »

I have the same probelm with Scotch Old Boys (last team in aus_vic)

on 2 separate games, season 9 week 6 round 2 has irrevocably crashed.


I've sent a savefile to gyözö and he's aware of the issue, so hopefully it isn't too tricky to fix.
idcarlos
Posts: 63
Joined: Mon Sep 12, 2005 2:30 pm

Post by idcarlos »

Same bug with this savegame

Playing two games with the next week button
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

why, i'd have to work really hard NOT to find this bug with three separate reports + savegames :lol:

i hope i'll have a chance to go hunting tonight or tomorrow ;-)

thanks for reporting to all.

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 »

:arrow: fixed

and i did have to work hard until i found the problem, buried deep in the bowels of the game :-P

thanks for reporting, all of you.

unfortunately the savegames are corrupted, so the fix doesn't help you, even if you use the cvs version. fortunately, fixing the savegame isn't that hard. in the following we'll assume the savegame is called SAVE.zip and the error you experience mentions a cup with id ID. here's how to do it:
  1. unzip the savegame. on linux systems it should be in HOME/.bygfoot-1.9/saves.
  2. open SAVE___misc.xml with a text editor
  3. find the line <_1005>ID</_1005> (e.g. <_1005>2002</_1005>) it shouldn't be hard, the line is probably among the first 10 or 20 lines in the file
  4. replace ID with 1500, so that you have a line <_1005>1500</_1005>
  5. save the file and close
  6. move the file back into the zip archive, overwriting the original SAVE___misc.xml
  7. the savegame should be usable now without crashing.
gyözö
Press any key to continue or any other key to quit.
pdrie
Posts: 2
Joined: Sun Jan 01, 2006 12:54 pm

Post by pdrie »

Great! The savegame fix works.
Many thanks!
idcarlos
Posts: 63
Joined: Mon Sep 12, 2005 2:30 pm

Post by idcarlos »

Thanks!

But not work for me.
With this savegame the program crash searcing cup 201X, but this cups not are in SAVE___misc.xml

:!: Under windows, unzip can't manage savegames with spaces, you need rename the savegame.
ade334
Posts: 2
Joined: Mon Jan 02, 2006 10:23 pm

Post by ade334 »

Try renaming the closest one - probably 2012

I got errors with 2003,2004,2005 etc, but just renamed the closest one, rezipped and it worked.
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

ade334 wrote:Try renaming the closest one - probably 2012

I got errors with 2003,2004,2005 etc, but just renamed the closest one, rezipped and it worked.
yeah, this is the way to go. forgot to mention that maybe you don't find the exact cup id.

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