Page 1 of 1

BOB not staying up to date when comms lost/map refreshed?

PostPosted: Sat Jun 26, 2010 2:10 pm
by ender516
Game 7147200, round 13.

I have had a lousy internet connection lately, so I have been seeing a lot of the "Wait another 10 seconds?" dialog. Generally, I have found that I have to give up and click [refresh map]. (None of the foregoing is BOB's fault.) However, today, I was trying to deploy half of my men in one place and half in another. After clicking to deploy the first half, and clicking yes on the confirm deploy dialog, I had another comm failure. I choose not to wait another 10 seconds, and got the comm failure message in the action area. As suggested there, I clicked [refresh map]. Eventually, the action area redrew, telling me I still had all my men to deploy, with the dropdowns preset to do just what I had tried to do. The map did not show any additional troops on the territory, so I presumed that nothing had been deployed. I repeated the action, and was presented with the attack phase. A quick check of the log showed I had deployed both halves to the same spot, with the timing suggesting that the first action had been performed pretty much when I first tried it. So, somehow, the first deployment was performed without proper feedback to the map or the action area. Whether the log was correct between the two deployments, I don't know, I didn't happen to look. Is this a BOB bug, or did the site itself screw up?

Re: BOB not staying up to date when comms lost/map refreshed

PostPosted: Sat Jun 26, 2010 4:15 pm
by sherkaner
The site itself should redraw the army amounts, I guess that took some time in which you made your move. But the fact that after the refresh the dropdowns were at what you wanted actually is an indication that the move was performed.

Re: BOB not staying up to date when comms lost/map refreshed

PostPosted: Sun Jun 27, 2010 9:34 pm
by ender516
I guess the most misleading thing was the fact that the page still said I had 8 troops to deploy, which was the original full amount, so I assumed that the first deploy had been lost, and I repeated it.

Re: BOB not staying up to date when comms lost/map refreshed

PostPosted: Mon Jun 28, 2010 2:25 am
by Dako
Happened to me as well. Now I always refresh the whole page on miscomm at deploy phase.

Re: BOB not staying up to date when comms lost/map refreshed

PostPosted: Mon Jun 28, 2010 10:33 am
by ender516
Dako wrote:Happened to me as well. Now I always refresh the whole page on miscomm at deploy phase.

Do you click on [refresh map] (which I am pretty sure I did), or use the browser refresh function (which I didn't bother with, because it means the log has to be reprocessed, which is tedious, but acceptable if necessary)? And how does the page say I have all my troops if half have actually been deployed? What exactly does the [refresh map] link do?

Re: BOB not staying up to date when comms lost/map refreshed

PostPosted: Mon Jun 28, 2010 1:37 pm
by Dako
All the links on CC game page call sendRequest(command) function. [refresh] link just calls sendRequest without any parameters so it just makes a POST request to game.php script and get back updated data. This data includes all the armies and so on. So pressing it is mostly the same as pressing browser's refresh, but the data is parsed via AJAX on the clients side, not on the server side.

Re: BOB not staying up to date when comms lost/map refreshed

PostPosted: Mon Jun 28, 2010 11:01 pm
by ender516
What about when one presses Ctrl-F5, which I believe affects the use or contents of the cache?

Re: BOB not staying up to date when comms lost/map refreshed

PostPosted: Tue Jun 29, 2010 4:27 am
by Dako
Ctrl+F5 just send the same request as F5 (ie page reload) but it forces not to accept 304 header as an answer (Not Modified) and will retrieve them again (so they are fresh new).

Re: BOB not staying up to date when comms lost/map refreshed

PostPosted: Tue Jun 29, 2010 7:28 am
by ender516
Thanks for the details.