Possible to override predefined tribe selection in multiplayer scenario if an AI player is included
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Nasenbaer |
Bug Description
Steps to reproduce:
1. Start a new multiplayer game.
2. First add some random map, for instance Crater.
3. Add yourself and an AI player with some non-atlantean tribe of your choice.
4. Now go back to the map selector and pick the multiplayer scenario game "Together we're strong". Make sure you check the box to load it as a scenario.
5. Observe the list of players.
Expected:
Since scenario mode was selected, both players should be given atlantean.
Actual:
If one of the players is an AI (doesn't seem to reproduce with two humans), the tribes are *not* changed, even though starting condition shifts to Scenario.
Yes, I realize the AI player will be completely rubbish in the scenario, but as long as it is possible to select them it should be handled. I briefly tried triggering this with Island jumping, but that seemed to change the tribe regardless of human/AI players. We should ensure all scenarios which limits tribe selection should set this, even with AI players.
If you start the game with either players as barbarian (and maybe empire?) you will receive the following error as a message in the inbox, as well as see it printed to the terminal.
Error in Lua Coroutine
[/home/
stack traceback:
[string "aux:infrastruc
[string "map:multiplaye
Send message to all players and pause gamelastserial: 0
Widelands r6279
I'm having problems with your description.
1. If you start it as MP scenario, you don't have a choice of tribes, it's Atlantean.
2. If you don't start it as MP scenario (but as Map), I tried several combinations of Tribes without any luck triggering the error.
However, I see in the confs that there's an Empire and an Antlantean Tower, but no Barbarian tower, so this might be the root cause of the problem.