xna-cncnet-client icon indicating copy to clipboard operation
xna-cncnet-client copied to clipboard

Add save/load to Custom Team Mappings

Open 11EJDE11 opened this issue 8 months ago • 2 comments

When setting custom team mappings, the client will now save/load the values. Only applies to host or skirmish. Also fixes an issue where for a non-host, the wrong preset would be chosen (always showed as either the first non-custom item or Custom).

Saves in UserINISettings (RA2MD.ini) like:

[TeamStartMappings]
fb2631acdc4728f0dd569ad57dc07edfe89cf736=A,A
a5af19e682d41fbe185a9879ec43785526203346=A,A,B,B,C,C,D,D
6cbdedbec3a190cf3675829715024e1ead54e7b6=A,A,x,A,B,x,B,B
f17d9f67057e32994a760f41a3bd1eb25d26a25c=A,A,B,A,B,B
ccff58c63db1d295480f0cc79d914c5d704b0f84=A,A,A,A,B,x,B,B
0dc540f6f57bc15da1617166b8858fb45953ef15=A,B,C,B,A,C,B,D

TeamMappings

11EJDE11 avatar Apr 14 '25 02:04 11EJDE11

Nightly build for this pull request:

github-actions[bot] avatar Apr 14 '25 02:04 github-actions[bot]

Nice idea, but I suggest for now there also needs to be a Reset To Default button to remove map team assignments. What do you think?

MahBoiDeveloper avatar Apr 14 '25 08:04 MahBoiDeveloper