Releases: FormularSumo/FormularBot
21/4/20
Added .gitignore using github template. All temporary/unneeded python files are ignored by github which means pycashe files will not be added to repository
Added variable closest_to_friendly_goal which is used where previously it was worked out each time.
Changed close range from 600 to 1000.
Changed get_nearest_boost to not cancel if close and distance_ball_friendly_goal < 2000. Added goalie, shooting and (distance_ball_friendly_goal < 6000 and close) as conditions to cancel it. Should help with issue of occasionally not doing anything.
Changed boost line colour to blue so it's different to shooting line colour.
Aerial routine bug fix
Previously tried to recover facing self.ball.location instead of agent.ball.location
e7815bc
20/4/20
Added a new aerial routine for shots over 600 uu by following Jereon's tutorial
These shots are more accurate and more powerful than the built in GoslingUtils aerials
8a42734
When working out if closest to the ball, only counts allies who are onside as allies who are behind the ball are unlikely to hit it
6687978
Boost while shooting shooting if (> 1000 from ball or angle < 0.3) and not airborne
2c3ed3f
17/4/20 - Lower Bracket Ultimate Battle League qualification tournament
Commented routines that I created or I've edited.
Prevented cancelling a shot when already committed and onside.
only cancel shots if not (if on_side and (close or airborne))
Prevented turtling
if not moving and int z location = 40: jump (flips car)
Fixed bug with backwards jump shots - https://discordapp.com/channels/348658686962696195/348659150793736193/699300552596652033
Changed boost to Toon Smoke
Removed debugging code which was printing in console
1.1.1 Removed debugging code
17/4/20
Removed all checks to clear stack in routines.py, as these checks would sometimes mess up DemoBot (and any other bot which use this repository), and more important require a lot of copy and pasting of code which is annoying and inefficient eg:

Now all checks are down in FormularBot.py.

Previously some checks were done in FormularBot.py, but they didn't actually work as 'agent.stack == jump_shot' is not True even if bot only has jump_shot in it's stack. Instead I've created my own variable which is updated when routines are pushed to the stack.

Created variables for if conditions are met for shooting and another one for being a goalie

This means if I update these conditions I only need to update them in one place and they change everywhere, rather than having to update it 5+ different places.
Slightly increased area where bot will take shots (even if it's not closest to ball) again
Moved demolition routine checking code to miscellaneous, as FormularBot currently doesn't go for demolitions. (DemoBot does but doesn't use the checks)
DemoBot bug fix
DemoBot would break when getting boost as there was code saying clear stack if ball is close to goal and not close, which applies to FormularBot but not DemoBot. Check has been moved to FormularBot.py.
16/4/20
Bot only goes for aerials if it has enough boost to reach ball (WIP)
Tweaked go_centre routine
Added link to Github in config files
Added UK flag to appearance
Separated and re-named appearance files - in future bots will probably have different appearances
Shots in stack are cancelled if the conditions for them aren't met, unless bot is airborne
Increased area where bot will takes shots if ball is next to enemy goal, and slightly shrunk area that's defined as small
Improved half flip so flips are exactly 180 from start position. Also routine doesn't pop until car touches ground again
Only boosts while collecting boost if not drifting (helps prevent driving in circles and car overshooting boost pads)
Added Miscellaneous folder with unused images and .pdn files.
10/4/20 - Upper Bracket Ultimate Battle League qualification tournament
Only shoot if onside and either: closest to ball, closest to ally goal and ball is in own half or ball is (roughly) in the enemy's D
If bot isn't shooting, in goal or getting boost it no longer demos enemies. Instead it puts itself in-between the ball and it's own goal, waiting for a condition to become true to take a shot or do something else
Improve reliability of fast kickoffs
If bot is going to back to goal, is offside and really close to the ball, it goes for the nearest big boost instead, to (hopefully) avoid scoring own goals.
If boost is within 1000 distance and at a greater angle than 1 bot drifts. This stops it endlessly circling boost pads
Added check which hopefully cancels shooting commands if conditions for them aren't met.
Added a link to Drive folder and in drive folder text file with links to Trello boards
Added a decal for orange team
10/4/20
Made bot recognise what kickoffs position it spawns in
Added fast kickoffs on diagonal kickoffs
Fixed crashes in 1 v 1s and 1 v 0s
Bot picks up boost on off-centre kickoffs on both teams (previously only did so on orange)
