Skip to content

Conversation

@BurnySc2
Copy link
Owner

No description provided.

BurnySc2 and others added 30 commits January 9, 2023 04:01
* Convert unit class to dataclass (#147)

* Start converting Unit class to use dataclass

* Finish converting Unit class to dataclass

* Run "python -m pytest" instead of "pytest" to add root folder to path

* Attempt to fix CI tests

* Attempt to fix testbots

* Fix tests

* Fix upgradestest bot

* Fix upgradestest bot again

* Fix damage-test bot and queries-test bot

* Update tests

* Remove commented out code

* Add benchmark_bot_ai_init to ci

* Fix queries_test_bot

* Rewrite post init as properties

* Add _prepare_units benchmark

* Add docstring, remove post_init and fix EffectId

* Convert game_data to dataclass (#150)

* Convert game_data to dataclass

* Fix structure_type_build_progress for units without creation ability

* Fix typo

* Refactor game_info and power_source (#151)

* Refactor game_info and power_source

* Improve calculation

* Refactor Ramp to be a dataclass

* Refactor game_info to be a dataclass but keeps using proto data

* Rename from_proto_string to from_proto_dict

* Add test to check protobuf implementation

* Add pre-commit hook to tests

* Fix tests

* Add dict generation to CI

* Supress importerror

* Change hook-stage to push

* Force exit code 0

* Improve bot_ai benchmark

* Upload generated dicts as artifact

* Refactor CI into one file

* Fix ci.yml

* Clean up ci.yml

* Remove running test from pre-commit hook

* Remove pycache before comparing generated dict with previous

* Undo dataclasses for GameInfo, GameState and Unit

* Fix generate dicts file

* Comment out RepeatedScalarContainer

* Cache pre-commit in CI

* Fix missed undos

* Add missing _find_ramps_and_vision_blockers

* Refactor to using if statement

* Fix RallyTarget from_proto
Start locations position rounding, they are sligthy offset in some maps, like in InsideAndOutAIE (33.499755859375, 30.5) instead of (33.5, 30.5)
Start locations position rounding
This fix allows all expansions on GoldenauraAIE to be found correctly
…o fix/terrain-height-check-for-expansion-locations
Some older maps have inconsistent height values even at the same base location
dysonreturns and others added 29 commits January 17, 2025 12:32
…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")`
Add abilities with empty 'buttonname' in stableid.json
Adds `ActionObserverCameraMove.distance` enabling wide zoom-out
…urns/python-sc2 into dysonreturns-old-launcher-accept-sc2_version
…sion

Allow passing in sc2_version to all legacy host and launch methods
Returns ObserverAI to working order
@BurnySc2 BurnySc2 merged commit b559db5 into master Jun 27, 2025
60 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.

5 participants