Page 1 of 1

Bob bug. Nuclear fog games. Statistics table.

PostPosted: Mon Nov 04, 2013 7:30 am
by Woltato
Operating System: Win 7
Browser: Firefox
Scripts/third party programs used: Bob

If the bug happened in a game/s, do not forget to indicate the game number/s.

Concise description:
In nuclear spoils fog game after territories have been nuked the statistics table is showing wrong totals. Presumably this is because the totals are calculated from the game log where there is no indication of who is taken out by a nuke.

e.g. Game 13448271

in this game there are 3 players who've just been nuked that are displaying the wrong totals. It shows 9/11 for one of my own teammates. He's been nuked twice in the last round.

Image

Just a suggestion - the region totals are found in CDATA section of the page source. The 6th piece by ~ is the total number of territories held. Might be an easy way to fix by extracting the totals from here instead of calculating from the game log.
players[1] = new Array("red~~~p r16~2~17~?~?");
players[2] = new Array("red~~~p r10~5~25~?~?");
players[3] = new Array("red~~~p r12~5~19~?~?");
players[4] = new Array("red~~~p r12~4~10~?~?");
players[5] = new Array("green~~~p r12~1~9~12~3");
players[6] = new Array("red~~~p r12~5~16~18~5");
players[7] = new Array("red~~~p r12~5~14~16~4");
players[8] = new Array("red~~~p r11~2~20~23~6");

Re: Bob bug. Nuclear fog games. Statistics table.

PostPosted: Mon Nov 04, 2013 4:31 pm
by blakebowling
Moved to Tools and Enhancements Bugs.