Page 4 of 6

Re: webDiplomacy.net new server

Posted: Wed Jul 07, 2021 12:30 pm
by Tjappator
kestasjk wrote:
Wed Jul 07, 2021 11:43 am
Ah thanks I think I missed that. Okay, I think this should be straightforward.

Good news that it seems smoother. Are there any pages in particular or just in general?


Votes previously caused an immediate process in the board code. The api/board code is best to tally votes/orders but not a good place to do game processing, deadlocks are inevitable. So instead it'll set a flag that will queue it for gamemaster. At the moment I don't think the gamemaster recognizes vote situations, which I'll check and resolve asap.

On that topic the server has some new tech to help with performance, memcached a quick caching engine, since there was a lot of repetitive queries that the built-in cache wasn't using, and it's good for firing messages like that around as well without needing to start up a database connection which is costlier than I might have thought.


There will still be a small delay so it won't be as snappy until we improve the tech, but it should be fine (we'll see).

As far as I know, none of my matches (they are all anon so I can't link them, but with your godlike powers you should be able to see them) have been processed by all players being ready.
Ofcourse I can only confirm that there it isn't proceeding, while it should be, on one match. I strongly suspect that in some of my other matches all players have readied up, yet it is not proceeding (but again you should be able to check that with your godlike powers).
It is also not delayed, since in the match that I can confirm it (due to me being the only player with orders), I have been ready for the past ~20 hours (with some moments where I ready/unready/ready to see if that would change anything).

So my assumption is: the "processing server" does not trigger on "all players ready" for all games.

Re: webDiplomacy.net new server

Posted: Wed Jul 07, 2021 2:12 pm
by michaelf77
I have the same : games stuck with all players ready:
https://webdiplomacy.net/board.php?gameID=366078

Re: webDiplomacy.net new server

Posted: Wed Jul 07, 2021 3:09 pm
by Tjappator
michaelf77 wrote:
Wed Jul 07, 2021 2:12 pm
I have the same : games stuck with all players ready:
https://webdiplomacy.net/board.php?gameID=366078
It's not stuck, it will process IF AND ONLY IF the timer for the phase has reached 0.

It just doesn't recognize that all powers have readied up and are ready to go to the next phase ahead of time.

Re: webDiplomacy.net new server

Posted: Wed Jul 07, 2021 3:48 pm
by FxFocus
If my experience is typical then bot games currently take an hour to process the first move and 3 days for each move thereafter?

Re: webDiplomacy.net new server

Posted: Wed Jul 07, 2021 6:09 pm
by kestasjk
Okay I've changed the functionality so that when a player sees that all members are ready it leaves a hint/flag for the gamemaster to process it next round, rather than it getting processed within the board directly. Let's see how this goes

Re: webDiplomacy.net new server

Posted: Wed Jul 07, 2021 7:02 pm
by Nescio
Unfortunately, it seems bots no longer give orders: https://webdiplomacy.net/board.php?gameID=366438

Re: webDiplomacy.net new server

Posted: Wed Jul 07, 2021 7:30 pm
by FxFocus
Nescio wrote:
Wed Jul 07, 2021 7:02 pm
Unfortunately, it seems bots no longer give orders: https://webdiplomacy.net/board.php?gameID=366438
Not positive but I think the bots have completed their orders and are ready to move on but the game will not progress until the time runs out.

Re: webDiplomacy.net new server

Posted: Wed Jul 07, 2021 7:43 pm
by kestasjk
The bots weren't giving orders briefly there, thanks for letting me know about that, and there was some brief gamemaster downtime. Just getting more familiar with how memcached works in practice

Re: webDiplomacy.net new server

Posted: Fri Jul 09, 2021 12:19 pm
by Nescio
And another thing I noticed just now: the dates are off.
I finished https://webdiplomacy.net/board.php?gameID=366522 yesterday and https://webdiplomacy.net/board.php?gameID=366576 today.
Those games state they're finished on Sunday 11 July and Monday 12 July, respectively.
However, today is Friday 9 July.

Re: webDiplomacy.net new server

Posted: Fri Jul 09, 2021 7:56 pm
by goldfinger0303
Nescio wrote:
Fri Jul 09, 2021 12:19 pm
And another thing I noticed just now: the dates are off.
I finished https://webdiplomacy.net/board.php?gameID=366522 yesterday and https://webdiplomacy.net/board.php?gameID=366576 today.
Those games state they're finished on Sunday 11 July and Monday 12 July, respectively.
However, today is Friday 9 July.
That's always been the case. The end date is the date of the next phase would end.

Re: webDiplomacy.net new server

Posted: Fri Jul 09, 2021 8:30 pm
by Peregrine Falcon
goldfinger0303 wrote:
Fri Jul 09, 2021 7:56 pm
Nescio wrote:
Fri Jul 09, 2021 12:19 pm
And another thing I noticed just now: the dates are off.
That's always been the case. The end date is the date of the next phase would end.
It's not always been the case, but it certainly has been the case for quite some time. It's not a new problem introduced by the server change.

Re: webDiplomacy.net new server

Posted: Sun Jul 11, 2021 6:14 pm
by FxFocus
I hesitate to report this as I wonder why no one else has reported it?
Whenever I ready my orders in a bot game I have to refresh the page multiple times before reaching the next phase. Sometimes many, many times which is a bit tedious. I never get to see the button I used to see for moving to next phase?

Re: webDiplomacy.net new server

Posted: Mon Jul 12, 2021 6:34 am
by Claesar
FxFocus wrote:
Sun Jul 11, 2021 6:14 pm
I hesitate to report this as I wonder why no one else has reported it?
Whenever I ready my orders in a bot game I have to refresh the page multiple times before reaching the next phase. Sometimes many, many times which is a bit tedious. I never get to see the button I used to see for moving to next phase?
There was never a button for moving to the next phase. It takes a bit longer now, indeed

Re: webDiplomacy.net new server

Posted: Mon Jul 12, 2021 10:29 am
by kestasjk
How long would you say you have to wait for? It shouldn't really take very long, the rate should be once every 5 seconds or so

Re: webDiplomacy.net new server

Posted: Tue Jul 13, 2021 9:31 am
by Tjappator
It could be a coincidence, but I have noticed this 3 times now:

-A game updates at the exact moment I open the link to the game to look at my orders.

If you want the specific occurences, you would have to DM me, since they are anon games.

Re: webDiplomacy.net new server

Posted: Tue Jul 13, 2021 8:58 pm
by DougJoe
Claesar wrote:
Mon Jul 12, 2021 6:34 am
FxFocus wrote:
Sun Jul 11, 2021 6:14 pm
I hesitate to report this as I wonder why no one else has reported it?
Whenever I ready my orders in a bot game I have to refresh the page multiple times before reaching the next phase. Sometimes many, many times which is a bit tedious. I never get to see the button I used to see for moving to next phase?
There was never a button for moving to the next phase. It takes a bit longer now, indeed
I would guess that FxFocus is referring to the "click here" link (not button) that used to appear when the bot game had immediately processed after clicking the "Ready" button?

Re: webDiplomacy.net new server

Posted: Wed Jul 14, 2021 3:09 pm
by Tjappator
Tjappator wrote:
Tue Jul 13, 2021 9:31 am
It could be a coincidence, but I have noticed this 3 times now:

-A game updates at the exact moment I open the link to the game to look at my orders.

If you want the specific occurences, you would have to DM me, since they are anon games.
This happened again.

Re: webDiplomacy.net new server

Posted: Wed Jul 14, 2021 8:09 pm
by Gowron
Tjappator wrote:
Wed Jul 14, 2021 3:09 pm
Tjappator wrote:
Tue Jul 13, 2021 9:31 am
It could be a coincidence, but I have noticed this 3 times now:

-A game updates at the exact moment I open the link to the game to look at my orders.

If you want the specific occurences, you would have to DM me, since they are anon games.
This happened again.
Did you create those games, Tjappator? I saw that last night in the anonymous classic game I created. I think it is an effect of this:
kestasjk wrote:
Wed Jul 07, 2021 6:09 pm
Okay I've changed the functionality so that when a player sees that all members are ready it leaves a hint/flag for the gamemaster to process it next round, rather than it getting processed within the board directly. Let's see how this goes
It seems like some games are sitting there with all players readied up, waiting for a player to look at them again so they'll be processed.

Re: webDiplomacy.net new server

Posted: Wed Jul 14, 2021 8:24 pm
by Tjappator
Gowron wrote:
Wed Jul 14, 2021 8:09 pm

Did you create those games, Tjappator? I saw that last night in the anonymous classic game I created. I think it is an effect of this:
kestasjk wrote:
Wed Jul 07, 2021 6:09 pm
Okay I've changed the functionality so that when a player sees that all members are ready it leaves a hint/flag for the gamemaster to process it next round, rather than it getting processed within the board directly. Let's see how this goes
It seems like some games are sitting there with all players readied up, waiting for a player to look at them again so they'll be processed.
No I haven't created those games.

I think Kestasjk means the "virtual" gamemaster, as in the code that processes all the moves and calculates the results for the next round, not an actual real-life gamemaster.

It might be an effect of it, but as I understood it, it should only delay it by a (couple of) minute(s). Not wait like its a schrodingers box where you need to observe the game (open the shoebox) to observe the state of the game (cat)

Re: webDiplomacy.net new server

Posted: Thu Jul 15, 2021 9:06 pm
by kestasjk
Hmmm.. well you do need to view the game in order for it to get marked that processing is ready.

The idea is that previously games would get processed when they needed processing and were viewed by a user, so instead the game is flagged as being ready for processing when viewed by a user and should then get processed within a few seconds after that.


You might think why not have the gamemaster check whether games are ready instead of the user, but this isn't ideal since it means the gamemaster needs to search all active games and do calculations re: orders, votes, game timeouts, etc, every few seconds.

@Tjappator:
- Are you experiencing delays where games don't process for over 30 seconds, or is the problem that games only process when viewed, (and didn't you find that games would only processed when viewed before the server move as well)?

Are you experiencing this issue mainly/exclusively with bot games?