ocraft / ocraft-s2client

StarCraft II Client - Java library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
55 stars 15 forks source link

to handle the custom built balance-patched maps for linux #45

Closed Ketroc closed 3 years ago

Ketroc commented 3 years ago

Due to Blizzard dropped support for linux (and the various bugs in windows), custom maps have had to be created to apply the latest balance patches. More info here: https://aiarena.net/wiki/ids-50-maps-410-linux-version/

These maps run on 4.10, but mimic the latest patch including ids. They can be recognized by their map names which end in the version number eg. "Death Aura 5.0.6"

My change calls remapForBuild() with the latest build if one of these maps is being played.

Some important notes as I'm not too familiar with ocraft: -I'm unsure if the map name is already available somewhere, so I don't know if this waitForResponse is necessary to get it -I wasn't able to get ocraft running locally so this change is untested

Another option would be to allow the bots to remap the ids, leaving it outside of ocraft, but currently only remapForBuild() is public and it won't work as is, calling it when the bot starts.