-
Notifications
You must be signed in to change notification settings - Fork 56
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
[macOS] AI players in multi-player game do not progress #449
[macOS] AI players in multi-player game do not progress #449
Comments
This happens in the windows version as well. I reproduced with 1 human and 2 AI players on the Plains of Snow map. |
Linux too. Singleplayer skirmish (modern or classic). AI doesn't seem to do anything outside of the campaign. Git bisect says it's this commit (in Stratagus) that broke it commit 936b1dc09c7360072b21544cc599756bba0fa906
src/action/action_build.cpp | 2 +- |
fix by changing line 467 of build.cpp from none_of returns true (and thus CanBuildHere returns nullopt) if no building rules match. This is not the same behavior as before the commit, which iterated through rules to see if one passed if and only If AiBuildingRules was empty, it would not iterate through them and thus aichecked was never set to false so it did not return nullopt tl;dr none_of should only be checked if AiBuildingRules is not empty (compiled and confirmed) edit |
…editor to place units.) #closes Wargus/wargus#449 Thanks to MamiyaOtaru for investigation and fix. Other `none_of` should be ok.
…gression in editor to place units.) (and not fixed by 59d30da) #closes Wargus/wargus#449 Allow AI to build building. Thanks to MamiyaOtaru for investigation and fix.
…gression in editor to place units.) (and not fixed by 59d30da) #closes Wargus/wargus#449 Allow AI to build building. Thanks to MamiyaOtaru for investigation and fix.
Describe the bug
AI players in multi-player game do not progress. They mine a single gold, then sit around (do not build town hall, etc.)
To Reproduce
Using two computers...
Computer 1: create a (local) multiplayer game
multi-player settings:
Map: Classic/A continent to explore.pud.smp.gz (8 player map)
The "dedicated AI server" option selected or not doesn't seem to make any difference.
removed fog of war, and set terrain to explored so that I can see what AI is doing...
race, units, resources all map default
Add an AI player to the list.
On computer 2:
Join local game, connect to auto-discovered ip, select ready
Computer 1: verify computer 2 has joined, player 2 ready, AI player appears on player list, start the game.
Expected Behavior
AI player immediately builds a town hall, collects resources, continues building, engages other players.
Desktop
I'm building Wargus on two Macs using the Stratagus MacOs build instructions
And @shinra-electric 's regression to #584 mentioned in issue #438 to fix the font issues.
Mac1: M1 running macOS 14.2.1
Mac2: Intel running macOS 11.7.10
Data extraction working well (except for the data extraction source code folder and font issues mentioned in #438)
The text was updated successfully, but these errors were encountered: