Hello,
I experience a strange behaviour that I fail to understand. This happens only on Firefox. For some reason, Webkit-based browsers are fine.
Almost everytime I send an AJAX query, most or all images in my game are reloaded by the browser, as shown below (it's an animated GIF, please click on the thumbnail to see it on the hosting website). The most troubling part is that it does not always happen (but very often) and does not always apply to all cards, but I fail to see any kind of pattern in this.

In this example, the player does nothing and passes. Here is the JS code for this action
With this, the server does nothing besides sending a notification and changing the game state
Since the player did nothing, the notification is not subscribed because there is no animation to perform. The only effect client side is the display of the log message.
I suppose this is some kind of bug on Firefox side, but I can't see what's causing it. Did anybody experience a similar problem and know a workaround ?
I experience a strange behaviour that I fail to understand. This happens only on Firefox. For some reason, Webkit-based browsers are fine.
Almost everytime I send an AJAX query, most or all images in my game are reloaded by the browser, as shown below (it's an animated GIF, please click on the thumbnail to see it on the hosting website). The most troubling part is that it does not always happen (but very often) and does not always apply to all cards, but I fail to see any kind of pattern in this.

In this example, the player does nothing and passes. Here is the JS code for this action
Code: Select all
onPassForward: function() {
this.ajaxcall('/draconisinvasion/draconisinvasion/passForward.html', {
lock: true
}, this, function(result) {});
},Code: Select all
public function passForward()
{
$activePlayer = $this->getActivePlayer();
$this->game->notifyAll(
'passForward',
clienttranslate('${playerName} does not Forward'),
[
'playerName' => $activePlayer->getName(),
]
);
// Checks if game is over, otherwise switch to next player
if ($this->game->getGameProgression() >= 100) {
$this->game->gamestate->nextState('endGame');
} else {
$this->game->gamestate->nextState('passForward');
}
}I suppose this is some kind of bug on Firefox side, but I can't see what's causing it. Did anybody experience a similar problem and know a workaround ?