Page 1 of 1

Dead AI?

Posted: Thu Jan 02, 2025 9:12 am
by gjdip
Are the AI bots dead? They have not responded for a few days. Gunboat works fine.

Re: Dead AI?

Posted: Thu Jan 02, 2025 11:22 pm
by Ernst_Brenner
Just tried a turn to test, they responded ok. Not sure what you mean exactly though, 'gunboat works fine'... are the bots available in non-gunboat? I checked your game history and there are several games that say ended January 5th... not sure how that's possible? Unless from a previous year?

Re: Dead AI?

Posted: Fri Jan 03, 2025 6:01 am
by kestasjk
Can you let me know the game ID? They're all monitored and I get notified if a bot hasn't checked in for too long, but there may be some other issue going on so let me know the game ID and I'll take a look.

Re: Dead AI?

Posted: Fri Jan 03, 2025 10:08 am
by gjdip
kestasjk wrote:
Fri Jan 03, 2025 6:01 am
Can you let me know the game ID? They're all monitored and I get notified if a bot hasn't checked in for too long, but there may be some other issue going on so let me know the game ID and I'll take a look.
https://webdiplomacy.net/beta/?gameID=1239929

Re: Dead AI?

Posted: Fri Jan 03, 2025 10:10 am
by gjdip
Ernst_Brenner wrote:
Thu Jan 02, 2025 11:22 pm
Just tried a turn to test, they responded ok. Not sure what you mean exactly though, 'gunboat works fine'... are the bots available in non-gunboat? I checked your game history and there are several games that say ended January 5th... not sure how that's possible? Unless from a previous year?
When you create a bot game you will see this at the bottom:

Full-press setting: (Classic only): 0/9 game slots available
Please try again later when a full-press slot becomes available.

If one or more of those slots are available you can create a full-press game against the bots. Otherwise, you play gunboat against them.

Re: Dead AI?

Posted: Fri Jan 03, 2025 10:59 am
by kestasjk
gjdip wrote:
Fri Jan 03, 2025 10:08 am
kestasjk wrote:
Fri Jan 03, 2025 6:01 am
Can you let me know the game ID? They're all monitored and I get notified if a bot hasn't checked in for too long, but there may be some other issue going on so let me know the game ID and I'll take a look.
https://webdiplomacy.net/beta/?gameID=1239929
Weird.. somehow there are 50 active full press bot games, which is way more than the bots can handle in a reasonable time. Let me see what's going on

Re: Dead AI?

Posted: Fri Jan 03, 2025 1:16 pm
by kestasjk
The active game # was a red herring, each bot things its in its own game, so there were 50 bots running not 50 games.

Issue was a bot for Austria was in a game in Diplomacy phase with 0 units and 0 SCs; the bot system said the player is dead and removed it, then the server provided the player as alive, so the bot system recreated the context, and keeps looping
The monitoring saw that the bots were active, so no alarms raised, but it was just one bot in a loop.


I've added a check to the bots so that once it has been removed it can't be recreated, and it looks like it has started posting messages to other players now.

Thanks for reporting

Re: Dead AI?

Posted: Fri Jan 03, 2025 2:45 pm
by gjdip
Thanks for looking into this. Everything seems to be working now.

Re: Dead AI?

Posted: Fri Jan 03, 2025 3:47 pm
by kestasjk
No worries. Also it seemed to be delaying sending messages unnecessarily, I think the code was written assuming messages had to be reviewed and had to have human-like delays between messages.

This was causing a bot-player to generate a valid message, then waiting for their next turn 50 bot-players later to send the valid message. At which point the message would often be stale, due to e.g. receiving another message from another bot

But might be misunderstanding something, let me know if the bots suddenly won't shut up.