jncraton / BWMetaAI

A StarCraft Brood War AI designed to follow the modern 1v1 metagame
Other
100 stars 12 forks source link

Shared vision does not work #27

Closed T1mL3arn closed 3 years ago

T1mL3arn commented 3 years ago

I have triggers on my map that set shared vision for ally computers (I want to play with this bot as ally), but with this mod it does not work - I have no vision with my allies.

jncraton commented 3 years ago

As far as I know, this script shouldn't have any impact on shared vision in a UMS maps.

If you would like to play with this bot as an ally, the simplest method is to create a multiplayer Top vs Bottom game. You can then add computer players to both teams as desired and start the game with bots as opponents and teammates. This should work, and you should have shared vision.

T1mL3arn commented 3 years ago

Tested this AI in "Top vs Bottom" mode and it really works. But non-UMS mode does not give such thing as close/share respawns (the map should be adjusted in a proper way for this). So to set-up this AI to work in UMS, I have to place appropriate triggers on a map. In particular they are "execute AI %race% expansion custom level" for a computer player and "execute AI turn ON shared vision for %player%" for each ally force. And there is no shared vision with this mod in UMS, while without the mod - shared vision is enabled.

Here is a map to test.

Do these steps with and without BWMetaAI:

  1. Create game with this map and set UMS mode
  2. Set second player's race as Terran
  3. The other players can be any race
  4. Start the game and check a player that is on the right from your start location
  5. With mod you cannot see the Terran player, while without it you see it.
jncraton commented 3 years ago

Thanks for taking the time to share these details with me. I believe that I've corrected this issue. Does this work better for you?

https://github.com/jncraton/BWMetaAI/releases/tag/v2.3

T1mL3arn commented 3 years ago

Now shared vision works :+1: . Thank you for the fix.