Dead AI?

Members can make suggestions for improving the site and improving the forum as well as submit bug reports to be reviewed by our support team here.
Post Reply
Message
Author
gjdip
Posts: 23
Joined: Wed Jan 23, 2019 8:45 pm
Contact:

Dead AI?

#1 Post by gjdip » Thu Jan 02, 2025 9:12 am

Are the AI bots dead? They have not responded for a few days. Gunboat works fine.

Ernst_Brenner
Posts: 558
Joined: Fri Mar 22, 2019 9:36 pm
Contact:

Re: Dead AI?

#2 Post by Ernst_Brenner » 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?
"Okay, quick question. The Internet. That's the one with e-mail, right?"

User avatar
kestasjk
Developer
Developer
Posts: 557
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Contact:

Re: Dead AI?

#3 Post by kestasjk » 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.

gjdip
Posts: 23
Joined: Wed Jan 23, 2019 8:45 pm
Contact:

Re: Dead AI?

#4 Post by gjdip » 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

gjdip
Posts: 23
Joined: Wed Jan 23, 2019 8:45 pm
Contact:

Re: Dead AI?

#5 Post by gjdip » Fri Jan 03, 2025 10:10 am

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.

User avatar
kestasjk
Developer
Developer
Posts: 557
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Contact:

Re: Dead AI?

#6 Post by kestasjk » Fri Jan 03, 2025 10:59 am

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

User avatar
kestasjk
Developer
Developer
Posts: 557
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Contact:

Re: Dead AI?

#7 Post by kestasjk » Fri Jan 03, 2025 1:16 pm

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

gjdip
Posts: 23
Joined: Wed Jan 23, 2019 8:45 pm
Contact:

Re: Dead AI?

#8 Post by gjdip » Fri Jan 03, 2025 2:45 pm

Thanks for looking into this. Everything seems to be working now.

User avatar
kestasjk
Developer
Developer
Posts: 557
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Contact:

Re: Dead AI?

#9 Post by kestasjk » Fri Jan 03, 2025 3:47 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users