Wargus / wargus

Importer and scripts for Warcraft II: Tides of Darkness, the expansion Beyond the Dark Portal, and Aleonas Tales
GNU General Public License v2.0
355 stars 55 forks source link

AI of players in map editor changes after setting a players AI #406

Closed CantWait1 closed 1 year ago

CantWait1 commented 2 years ago

Description So when creating a new custom map in the map editor of wargus a bug occurs when changing only one of the player colors'/clans' AI. When going to the player properties again, all the player colors'/clans' AI is set to that value.

To Reproduce Steps to reproduce the behavior:

  1. Create a custom map in the map editor (I used a 256x256 size).
  2. Click on the player properties button in the main menu.
  3. In the player properties menu play around by setting some player colors to computer and leaving one as person. Then pack sea/air attack for one of the player colors' AI.
  4. Exit the player properties menu as well as the main menu and continue to edit the map.
  5. Player around by placing some of the units of the player colors u enabled (that you set to computer).
  6. Press F10 or click on the menu in the top left corner to open the main menu.
  7. Enter into player properties and you will see that all the player colors have been set to sea or air attack as AI.
  8. You might have to open the player properties menu a couple more times to see a difference.

Expected behavior I expected the AI to stay the same as I have set it the first time.

Screenshots and Logs

My Settings (First time opening player properties (pp)) https://user-images.githubusercontent.com/96596269/147422016-9cb3eb20-ee0d-4ac2-b5d9-aa0ba3936d92.png

Second time opening pp (Stayed the same) https://user-images.githubusercontent.com/96596269/147422025-f0ac5017-8810-4de7-8bb9-99178a90010a.png

Third time opening pp https://user-images.githubusercontent.com/96596269/147422031-8e12f777-d766-4126-b291-d48077c58da1.png

Fourth time opening pp https://user-images.githubusercontent.com/96596269/147422044-6910b42d-fac6-46b7-adda-f83a80b22575.png

Desktop (please complete the following information):