Error on game start in automatic mode

Game development with Board Game Arena Studio
Post Reply
User avatar
disu
Posts: 62
Joined: 10 February 2016, 08:47

Error on game start in automatic mode

Post by disu »

Problem 1 (high priority)
Hi, when I try to start my Beta game in automatic mode, it gives me, after 10 seconds, the error:
"Your game options preferences for Trusis are invalid. You should check or reset them."
This happens either if I don't select specific options for the game, or if I set some of them.

Some background info:
  • In the options configuration I have a game type option. If it is set to STANDARD, other options are not shown. If it is set to CUSTOM, you can choose some other options. These options values are dependent on the number of players.
  • Players number range is from 5 to 30.
  • suggest_player_number = 8. not_recommend_player_number = array(5, 6)
Problem 2 (maybe related to problem 1)
I noticed also another error. If I enter the game customization popup, press "Change" on first option (Number of players, that could be in range 5-30) and then press "Reset to default", BGA gives me 1-5 identical errors: "Unknown network error (503)".
So I think that problems could be correlated.

As written in Game info page (https://boardgamearena.com/doc/Game_met ... os.inc.php, Number of players -> players section) I have specified the suggest_player_number=8 that is compatible with all default values for my options. So I should have no errors in automatic lobby.
However also a game with 5 players would be compatible with default options values.

Please help me BGA developers and admins :)
Last edited by disu on 26 April 2022, 08:51, edited 1 time in total.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Error on game start in automatic mode

Post by Een »

Problem 1:
Looking at your gameoptions you are adding an empty startcondition array for some values. The intended use is to not have anything for values that don't need a startcondition, so this might cause an issue. I would advise trying without it to eliminate this possibility.

Problem 2:
I haven't been able to reproduce this issue.

NB: 30 simultaneous players is a lot. On games supporting a big number of players (potentially unlimited for some of them) we have chosen to limit to 12 players. I would advise to do the same for your game.
User avatar
disu
Posts: 62
Joined: 10 February 2016, 08:47

Re: Error on game start in automatic mode

Post by disu »

Hi Een and thanks for your answers.
Een wrote: 19 April 2022, 15:26 Problem 1:
Looking at your gameoptions you are adding an empty startcondition array for some values. The intended use is to not have anything for values that don't need a startcondition, so this might cause an issue. I would advise trying without it to eliminate this possibility.
I've released a new version with no empty start conditions but the automatic mode still doesn't work.
Een wrote: 19 April 2022, 15:26 Problem 2:
I haven't been able to reproduce this issue.
You have to press the gear icon in automatic mode, then click "Change" in the number of players preference and then click "Reset to default" under number of players dropdowns.
Here a video with the error:
https://easyupload.io/fqnukp
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Error on game start in automatic mode

Post by Een »

Hi disu,

I checked problem 1 on my local env and was able to figure out the issue, that's on our side.
Contrary to what's indicated in the comments in gameinfos.inc.php, `'language_dependency' => true,` is not a valid option. It seems to work as intended for the simple lobby, but it's the reason it's not working with the automatic lobby at the moment. Trusis seems to be the first game to get to beta using this, so we were not aware of the issue.
We'll try to fix this for a future release, but in the meantime if you want it to work with the automatic lobby, you can set it to false (or to a list of all languages).

For problem 2, I confirm that it's what I tried and that I can't reproduce the issue. As there is one preference reset request per value, and you go up to 30 (as indicated in my previous reply, that's a bit much) probably your browser/connection fires them really quickly and you hit some kind of limit that I don't get with my browser/connection.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: Error on game start in automatic mode

Post by Een »

The fix for problem 1 was easier than I thought and it was possible to hotpatch it. This should work now.
User avatar
disu
Posts: 62
Joined: 10 February 2016, 08:47

Re: Error on game start in automatic mode

Post by disu »

Een wrote: 26 April 2022, 14:22 The fix for problem 1 was easier than I thought and it was possible to hotpatch it. This should work now.
Perfect! Thank for your support
Post Reply

Return to “Developers”