Skip to content

24/4/20

Choose a tag to compare

@FormularSumo FormularSumo released this 24 Apr 17:37
· 43 commits to master since this release

Replaced uses of if agent.ball.location.y * side(agent.team) * -1 > x * side(agent.team) * -1 or similar, which only worked for blue team, with if distance_ball_foe/friendly_goal which works for both teams and is exactly ball distance from goal.

Changed shooting range to 4000 and x to 1250. Changed clearing range to 3000. Changed closest to 1500

Added stack == 'getting boost' and agent.me.boost < 20 as a condition to not clear stack because often bot would not have any boost because it kept clearing stack everytime it tried to get some. Now it doesn't clear stack while getting boost unless boost > 20.

Since I removed all stack clearing code from routines.py I forgot to update DemoBot to not send True as a variable when pushing demo_nearest_enemy to stack, which meant DemoBot was crashing. Also added a try/except, which says no enemies to Demo :(

Removed defaultThrottle(agent.0) from goto_friendly_goal as something to do when reaching it as that's not needed and probably stops car from turning around from momentum.

Added 'Plays best in 3s.' to description as most of FormularBot's team code is written for 3s for when it played in Ultimate Battle League.