CnCNet / xna-cncnet-client

XNA / MonoGame based client for playing classic Command & Conquer games both online and offline with a CnCNet game spawner.
Other
228 stars 91 forks source link

#324 User defined auto ally presets #329

Open devo1929 opened 2 years ago

devo1929 commented 2 years ago

Summary

Currently, users are limited to auto ally presets where pre-defined (whether in mpmaps.ini or in the .map files). This allows the user to create "user defined" presets as well as mark any preset (user defined or map) as the default for a given map.

User defined presets are prefixed with [U].

When a user has specified the default preset for a given map, that map will be auto selected when the map is changed and auto allying is enabled.

Custom user auto ally presets are stored at Client/AutoAllyUserPresets.ini


Drop down with custom preset and settings button image

Example AutoAllyUserPresets.ini contents:

[Presets]
0=8WalledWorld112v2v2v2
1=4DesertIslandLE
2=4ColdestPeak
3=8MayflowerFreezesOver

[8WalledWorld112v2v2v2]
$$Default=2v2v2v2
2v2v2v2=A,A,B,B,C,C,D,D

[4DesertIslandLE]
my custom=A,B,x,A
test=A,B,x,A

[4ColdestPeak]
test=A,B,B,A

[8MayflowerFreezesOver]
4v4 Corners=A,A,B,B,A,A,B,B

Drop down opened with differing preset options image

Edit preset with "create" option selected image

Edit preset with existing option selected image

Edit preset window drop down options image

Edit button is disabled when auto allying is disabled image

Help window: image

github-actions[bot] commented 2 years ago

Nightly build for this pull request: