btd6farmer
btd6farmer copied to clipboard
Gameplanner
- 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
andATP_new_setup.json
TODO: Update the BotUtils to more recent rewritten code for getting the round num
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?
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
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
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
andsetup.json
Should be ready to merge
Will have to look at this and do some reviewing 🙂 Been busy at work sorry for leaving you hanging for 5 months..