DrizzleRaine / wagic

Automatically exported from code.google.com/p/wagic
Other
0 stars 0 forks source link

undo loads a new ai deck everytime in all modes. #753

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
start a match...play some stuff...in a few turn, start "undoing" actions....ai 
deck is reloaded each time into a new deck.

Original issue reported on code.google.com by omegabla...@gmail.com on 7 Nov 2011 at 9:46

GoogleCodeExporter commented 8 years ago
Can you confirm you fixed the problem in r4048 ?

Original comment by Xawot...@gmail.com on 8 Nov 2011 at 6:21

GoogleCodeExporter commented 8 years ago
no, that change did nothing to it, this bug also existed before that in rev 
4046.

Original comment by omegabla...@gmail.com on 9 Nov 2011 at 1:15

GoogleCodeExporter commented 8 years ago
Actually, that's precisely how undo works: it destroys the current game, 
recreates a new one using normally exactly the same parameters (so, same decks, 
same randoms), then re-process all the actions performed except the last one. 
Did you encounter a case where the parameters are not exactly the same or is 
that related to deck "object instance" being different, in this lase case, it's 
actually intended...

Original comment by Xawot...@gmail.com on 9 Nov 2011 at 4:00

GoogleCodeExporter commented 8 years ago
:) give it a try, yann, it completely loads a new deck, if every time you hit 
esc you even get to see the deck name that just loaded. it does however keep 
the last action in  tact and does keep the current cards in battlefield and 
hand the same however, the deck clearly does reload as the new deck...i go from 
fighting an elf deck thats green to fighting a red deck with lightining bolts. 
there is clearly an issue.
the repro is exactly as stated, just start a match and "undo" a few times and 
watch it change the decks.

Original comment by omegabla...@gmail.com on 9 Nov 2011 at 7:35

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r4056.

Original comment by Xawot...@gmail.com on 9 Nov 2011 at 10:15

GoogleCodeExporter commented 8 years ago
I finally got it !!! it was not a deck problem at all, the same deck was 
actually being reloaded all the time (it would crash otherwise), but the random 
used to choose the avatar icon was not saved in the game, so a new icon was 
chosen each time. Not sure why the name of the AI player was also changing ...

Original comment by Xawot...@gmail.com on 9 Nov 2011 at 10:16