Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Gameplanner - #74

Open
TheFutureKnight wants to merge 17 commits into
linus-jansson:gameplannerfrom
TheFutureKnight:gameplanner
Open

Gameplanner#74
TheFutureKnight wants to merge 17 commits into
linus-jansson:gameplannerfrom
TheFutureKnight:gameplanner

Conversation

@TheFutureKnight

Copy link
Copy Markdown
Contributor
  • Added Gameplanner section in readme
  • Removed unused assets
  • Added 4 files (static.py, AdvancedTowerPlacing.py, BotUtils.py, GamePlanner.bat)
  • Modified the BotUtils file to work compatibly with only this branch TODO: CLEANUP UNUSED CODE IN BOTUTILS
  • Added beeps inside the gameplanner (can be disabled by changing sound to False)
  • Gameplans are saved in gameplans folder under the name ATP_new_instructions.json and ATP_new_setup.json

@TheFutureKnight

Copy link
Copy Markdown
Contributor Author

TODO: Update the BotUtils to more recent rewritten code for getting the round num

@linus-jansson

Copy link
Copy Markdown
Owner

This is part of my fault, but it seems like your branch isn't completely synced with the main branch causing a lot of my changes being removed. Could you try to merge upstream main to your local branch?

@TheFutureKnight

Copy link
Copy Markdown
Contributor Author

You mean the code itself isn't synced up? Yes still working on that part, as I won't use the entirety of Bot.py, I'm just picking what's useful to the gameplanner, for static I didn't go thru it yet, that's about all the desyncs there is I think

@TheFutureKnight

Copy link
Copy Markdown
Contributor Author

BUG: Currently the logic for getting a round number waits for a mouse input, but this causes the monkey info tab to open (HIDING THE ROUND AREA) this always results in a lot of None rounds

  • Fixed it for Placing towers by adding a sleep(1.3) -> Temp fix
  • TODO: Add a way to wait for round_area to appear again, something like "Force_get_round()" that tries getRound() a few times and if it fails 3 times or so just return None as usual

@TheFutureKnight

Copy link
Copy Markdown
Contributor Author

This "SHOULD" fix the bug in most cases, still needs further testing, I only made the screenshots be taken sooner (before we can choose a tower)

on another note:

  • Added the new logic for getting the round (Minimal Mode)
  • Cleanup up BotUtils
  • Gameplans are saved in gameplans folder inside NewGameplan Folder under the name instructions.json and setup.json

Should be ready to merge

@linus-jansson

Copy link
Copy Markdown
Owner

Will have to look at this and do some reviewing 🙂 Been busy at work sorry for leaving you hanging for 5 months..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants