Skip to content
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

Implement forced team start mappings #559

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

SadPencil
Copy link
Member

@SadPencil SadPencil commented Sep 17, 2024

This PR added a forced team start mapping for game modes such as a 2v2 mode.

It added two settings for a game mode:

  • ForceTeamStartMappings
  • TeamStartMappings

Example in MPMaps.ini file:

[Tournament 2v2]
CustomIniPath=INI\Tournament 2v2.ini
ForcedOptions=Tournament 2v2ForcedOptions
MinPlayersOverride=4
ForceNoTeams=false
ForceTeamStartMappings=true
TeamStartMappings=A,B,A,B

A,B,A,B enforces Player 1 & 3 is allying against 2 & 4

Example screenshot:
Snipaste_2024-09-17_19-10-10


Note: originally in commit 4cf9b33, RefreshTeamStartMappingPresets() was called in each for loop iteration. Link. This is changed to call it only once after the loop.

@SadPencil SadPencil marked this pull request as ready for review September 17, 2024 12:09
@SadPencil
Copy link
Member Author

error : IOException: The process cannot access the file 'D:\a\_temp\_runner_file_commands\set_env_c5738185-38f2-427d-ba9f-0798d9cdcb97' because it is being used by another process.

This build failure should be a random bug. Trying to re-trigger building.

Copy link

Nightly build for this pull request:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant