Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gameplanner #74

Open
wants to merge 17 commits into
base: gameplanner
Choose a base branch
from

Conversation

TheFutureKnight
Copy link
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
Contributor Author

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

@linus-jansson
Copy link
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
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
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
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
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 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