Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed ball touches ground detection #9

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
10 changes: 10 additions & 0 deletions rlbottraining/example_bots/prop_bot/prop_bot.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Locations]
# Path to loadout config from runner
looks_config = ./prop_bot_looks.cfg

# Bot's python file.
# Only need this if RLBot controlled
python_file = prop_bot.py

# The name that will be displayed in game
name = Prop Bot
14 changes: 14 additions & 0 deletions rlbottraining/example_bots/prop_bot/prop_bot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from rlbot.agents.base_agent import BaseAgent, SimpleControllerState
from rlbot.utils.structures.game_data_struct import GameTickPacket

class PropBot(BaseAgent):
"""
A bot which just sits there like a prop.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BrickBot already does this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brick bot has handbrake on, this causes the ball to move it quite a bit when it hits it.

"""

def get_output(self, game_tick_packet: GameTickPacket) -> SimpleControllerState:
seconds = game_tick_packet.game_info.seconds_elapsed
controller_state = SimpleControllerState()
controller_state.steer = 0
controller_state.handbrake = 0
return controller_state
56 changes: 56 additions & 0 deletions rlbottraining/example_bots/prop_bot/prop_bot_looks.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[Bot Loadout]
# Primary Color selection
team_color_id = 11
# Secondary Color selection
custom_color_id = 74
# Car type (Octane, Merc, etc
car_id = 23
# Type of decal
decal_id = 1618
# Wheel selection
wheels_id = 1656
# Boost selection
boost_id = 0
# Antenna Selection
antenna_id = 0
# Hat Selection
hat_id = 0
# Paint Type (for first color)
paint_finish_id = 1978
# Paint Type (for secondary color)
custom_finish_id = 1978
# Engine Audio Selection
engine_audio_id = 1786
# Car trail Selection
trails_id = 1898
# Goal Explosion Selection
goal_explosion_id = 1971

[Bot Loadout Orange]
# Primary Color selection
team_color_id = 11
# Secondary Color selection
custom_color_id = 74
# Car type (Octane, Merc, etc
car_id = 23
# Type of decal
decal_id = 1618
# Wheel selection
wheels_id = 1656
# Boost selection
boost_id = 0
# Antenna Selection
antenna_id = 0
# Hat Selection
hat_id = 0
# Paint Type (for first color)
paint_finish_id = 1978
# Paint Type (for secondary color)
custom_finish_id = 1978
# Engine Audio Selection
engine_audio_id = 1786
# Car trail Selection
trails_id = 1898
# Goal Explosion Selection
goal_explosion_id = 1971

1 change: 1 addition & 0 deletions rlbottraining/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class BotConfigs:
Contains paths to example bots included in this repo.
"""
brick_bot = _example_bot_dir / 'brick_bot' / 'brick_bot.cfg'
prop_bot = _example_bot_dir / 'prop_bot' / 'prop_bot.cfg'
simple_bot = _example_bot_dir / 'simple_bot' / 'simple_bot.cfg'
line_goalie = _example_bot_dir / 'line_goalie' / 'line_goalie.cfg'

Expand Down