btd6farmer icon indicating copy to clipboard operation
btd6farmer copied to clipboard

Gameplanner

Open TheFutureKnight opened this issue 2 years ago • 6 comments

  • 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 avatar Feb 08 '23 19:02 TheFutureKnight

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

TheFutureKnight avatar Feb 09 '23 12:02 TheFutureKnight

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?

linus-jansson avatar Feb 16 '23 19:02 linus-jansson

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 avatar Feb 16 '23 21:02 TheFutureKnight

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 avatar Feb 19 '23 03:02 TheFutureKnight

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

TheFutureKnight avatar Feb 19 '23 03:02 TheFutureKnight

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

linus-jansson avatar Jul 14 '23 22:07 linus-jansson