Skip to content

Conversation

@dysonreturns
Copy link

When launching SC2 in latest version, the minimap isn't clickable and buttons are greyed out for most users.
This behaviour started happening sometime during 5.0.x.
Everyone should be able to opt into launching v4.10.

Sharpy is currently held back, because the old launch methods (bot vs ai, bot vs bot) do not all allow passing in sc2_version.

To demonstrate what this change does, if we were to update the example like bot_vs_bot.py where you play against yourself/custom scripted enemy:

 result: list[Result] = run_game(
        maps.get("AcropolisAIE"),
        [
            Bot(Race.Protoss, WarpGateBot()),
            Bot(Race.Zerg, ZergRushBot()),
        ],
        realtime=False,
        game_time_limit=2,
        save_replay_as="Example.SC2Replay",
        sc2_version="4.10"
    )
    logger.info(f"Result: {result}")

The added sc2_version param will now propagate through the legacy host- and join- commands.
This obviously works for single-player (bot vs ai) too.

It is safe and does not interfere with the new launcher (run_multiple_games and GameMatch).
Omitting it launches the latest version as per usual.

dysonreturns and others added 12 commits June 5, 2025 11:52
…are based on.

Latest 5.0.14 (94137) is bugged on the API, i.e. missing a lot of Upgrades.
This commit allows sc2-techtree to this version, by supplying `run_game` with: `, sc2_version="5.0.14.93333")`
…renzy

Add abilities with empty 'buttonname' in stableid.json
…perty

Makes unit.tag be @cached_property
…ield

Adds `ActionObserverCameraMove.distance` enabling wide zoom-out
…urns/python-sc2 into dysonreturns-old-launcher-accept-sc2_version
@BurnySc2 BurnySc2 merged commit 06096ca into BurnySc2:develop Jun 27, 2025
28 of 29 checks passed
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.

2 participants