Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inform players about AI and other players waiting #5741

Open
3 tasks
JayDi85 opened this issue Apr 21, 2019 · 2 comments
Open
3 tasks

Inform players about AI and other players waiting #5741

JayDi85 opened this issue Apr 21, 2019 · 2 comments

Comments

@JayDi85
Copy link
Member

JayDi85 commented Apr 21, 2019

Server config have settings maxAiOpponents (default 15). It's allows to limit active AI games. BUT user's don't known about that -- if you start new game with AI, but all AI opponets will be busy then your game is freeze on startup (empty battlefield) and unfreeze on AI available again.

There is must be message inform to players about AI busy status (or multiple messages -- every 1 minute as example). Also need to test timeouts for players with AI -- I can see timeouts for players like on rush hour (I think it's can be AI waiting timeouts with wrong priority time -- e.g. AI is waiting but server actived user's timeout):

ERROR 2019-04-21 19:55:44,179 ERROR - game freezed in waitResponseOpen for user xxx (connection problem)           =>[CALL main-1500] HumanPlayer.waitResponseOpen
ERROR 2019-04-21 19:55:44,780 ERROR - game freezed in waitResponseOpen for user xxx (connection problem)  

TODO:

  • make feedback messages or waiting panel;
  • test priority and timeouts with AI busy (it's can be limit maxAiOpponents to 1 for testing).
  • make same feedback messages/panel for other players, not AI (e.g. one player started, but other disconnected before begin).
@LevelX2
Copy link
Contributor

LevelX2 commented Apr 22, 2019

This setting does control the maximum AI players that you can add to a match or tournament.
It does not limit the overall AI players that can be active on a server.

@JayDi85
Copy link
Member Author

JayDi85 commented Apr 24, 2019

Then it's can be maxGameThreads or another limit. Users reports about up to 5 minute waiting before game start on beta server with big online (and I can confirm that -- game started, you get empty battlefield and game continue after minute and works fine, no error's in client or server logs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants