1.7.3: Job offer faulty

Here you can... report bugs. Open a new thread for each bug, please.
Post Reply
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

1.7.3: Job offer faulty

Post by gyboth »

when you get a job offer and accept, you sometimes end up with a
completely different team than the one that offered you the job.

the bug is hard to reproduce, so i'm not sure i'll be able to fix it quickly;
on the other hand, i doesn't appear often, i think.

as always, i'd be glad to receive any hints on when and why the bug occurs.

gyözö
Last edited by gyboth on Mon Feb 21, 2005 8:49 am, edited 1 time in total.
Press any key to continue or any other key to quit.
Guest

Post by Guest »

I had some problem with job offers and objective.
So i look into the code and found that job_offer_window is not modal !!
I think it should be ?

More other, -maybe i'm wrong - it seems that if the player cancel the "job offers", status var is not reset, it's always > 900000 so :

Code: Select all

 /* player wasn't fired */
    if( status < 900000 && 
	(my_team_played(week - 1) ||
	 my_team_played(week)) )
    {
	if(my_team_played(week - 1))
	    show_results(3);
	else if(week < 49)
	    callback_show_preview();
is never execute if user clic on cancel...
GeoVah
Posts: 50
Joined: Sat Dec 18, 2004 10:38 am
Location: Sophia Antipolis - France

Post by GeoVah »

herr its was me !!!
Geovah - geovah@jabber.sk- (yes i'm french...)
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

Anonymous wrote:So i look into the code and found that job_offer_window is not modal !!
all popup windows are modal in a way; main window sensitivity is set by the program itself.
More other, -maybe i'm wrong - it seems that if the player cancel the "job offers", status var is not reset, it's always > 900000 so : <snip>
is never execute if user clic on cancel...
that's ok because if the user clicks on 'cancel' the game is over and the program exits.

gyözö
Press any key to continue or any other key to quit.
GeoVah
Posts: 50
Joined: Sat Dec 18, 2004 10:38 am
Location: Sophia Antipolis - France

Post by GeoVah »

Ok but when user clic on cancel when a job offers windows appears -when he won lot of match, left pane (player list) is not set/redraw correctly
Geovah - geovah@jabber.sk- (yes i'm french...)
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

GeoVah wrote:Ok but when user clic on cancel when a job offers windows appears -when he won lot of match, left pane (player list) is not set/redraw correctly
all right, gonna check it. the next days are 1.7 debugging time, anyway.

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 »

GeoVah wrote:Ok but when user clic on cancel when a job offers windows appears -when he won lot of match, left pane (player list) is not set/redraw correctly
i've corrected this.

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 »

slightly different error and more a user fault than anything
i wasnt thinking when the job offer came up and hit close window instead of accept or reject.
sure enough the window closed but bygfoot remained ghosted
ooops
I had to exit the game
"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:slightly different error and more a user fault than anything
i wasnt thinking when the job offer came up and hit close window instead of accept or reject.
sure enough the window closed but bygfoot remained ghosted
ooops
I had to exit the game
you mean the main window remained insensitive, i guess. i'm going to correct this.

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 »

yes insensitive.
greyed out
ghosted
unfocused
;)
"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 »

:arrow: fixed in the cvs. i've also changed some build files (due to an update of my system), i hope everything still works on other systems (tell me if it is not so).

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

job offers

Post by usernamed »

Hi Gyozo,

I've now had the job offer bug hit me twice in 1.8.0. I was offered a job with Walsall, when I accepted it I found I was boss of Leicester (different division and everything)

Later I was offered my dream job at Chelsea, when I accepted it I had a completely different set of players but I was still at Leicester! Not just on the main game screen but in the league table as well.

I can provide you with my save game if it would help.
Usernamed

Oh, one other thing...

Post by Usernamed »

...I've just realised that the only thing I did differently from usual when starting the game was to select the 'load only names from team definition file' checkbox, instead of the 'load my team from definitions files' checkbox

Don't know if that helps to narrow it down.

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

Re: Oh, one other thing...

Post by gyboth »

Usernamed wrote:Don't know if that helps to narrow it down.
i don't think it does, those should be completely different things. but now that there's a fresh report, i'm going to have a bug-hunting session again (i failed to find the bug earlier).

sorry 'bout your dream job ;-)

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 »

all right, this time i could reproduce the bug (in contrast to last time i looked for it). thus it was fairly easy to find and correct :-D

:arrow: bug is fixed in the cvs; i've also made a revision, use the update script to patch your source package.

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