nvs / gem

Gem TD+: A Warcraft III Tower Defense
https://discord.gg/PxNNp77
26 stars 2 forks source link

1.30.2: Maximum number of players in games list is shown as `9` or `11` #375

Closed nvs closed 5 years ago

nvs commented 5 years ago

A bit of research leads me to believe that the games list utilizes what is present within the war3map.w3i. Within, Gem configures players. I believe I would need to remove configuration for any of the computer players to prevent the games list from erroneously listing the wrong size.

The solution seems to be the following:

To the user this should be business as usual. But the games list will only show #/8, which is the desired result. Now, this leaves a few side effects that need to be addressed:

nvs commented 5 years ago

Testing shows that this can still be either 8 or 9, depending on the game's mood. I am not sure why, but the game seems to randomly pull the value from the war3map.w3i or from within values set inside config ().