Skip to content

Releases: FormularSumo/FormularBot

21/4/20

21 Apr 13:48

Choose a tag to compare

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.

a0645f9

Aerial routine bug fix

20 Apr 10:00

Choose a tag to compare

Previously tried to recover facing self.ball.location instead of agent.ball.location
e7815bc

20/4/20

20 Apr 09:24

Choose a tag to compare

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

image - last two changes and 1.2.1 bug fix vs just first change

17/4/20 - Lower Bracket Ultimate Battle League qualification tournament

18 Apr 08:48

Choose a tag to compare

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

17 Apr 12:16

Choose a tag to compare

17/4/20

17 Apr 12:04

Choose a tag to compare

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:
image

Now all checks are down in FormularBot.py.
image
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.
image

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

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

16 Apr 15:12

Choose a tag to compare

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

16 Apr 14:45

Choose a tag to compare

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

16 Apr 10:59

Choose a tag to compare

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

16 Apr 10:56

Choose a tag to compare

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)