Skip to content

Commit eb2e228

Browse files
committed
Update v5 dropshot info
1 parent 47eadba commit eb2e228

1 file changed

Lines changed: 52 additions & 9 deletions

File tree

docs/v5/botmaking/dropshot.md

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
As of August 19. 2018 the RLBot framework officially supports Dropshot with access to locations of floor tiles. This page contains information and useful values related to the Dropshot game mode.
2-
31
To make RLBot start a Dropshot game you have to set the following values in `match.toml`:
42

53
```toml
@@ -8,10 +6,24 @@ game_mode = "Dropshot"
86
game_map_upk = "ShatterShot_P"
97
```
108

9+
??? warning "RLBot doesn't have access to individual tile data"
10+
RLBot v5 currently doesn't have access to the position or state information of individual dropshot tiles. This is a known issue that was present in RLBot v4, but this information might return.
11+
1112
## Tiles
1213

1314
There are 140 tiles in total.
14-
Locations and owning team can be found in the agent's FieldInfo as GoalInfo objects. In Python `self.field_info.goals` will be a list of the floor tiles with following attributes:
15+
16+
A list of all locations can be found [here](https://pastebin.com/w79VhU8W).
17+
18+
The tiles are hexagonal in shape. The distance between centres is 768 uu (except for the middle where the distance from blue tiles to orange tiles is 256 uu. A neutral strip about 128 uu wide covers the tiles partially). The image below shows the relative dimensions of a Dropshot tile.
19+
20+
![A Dropshot tile's dimensions](/img/dropshot/tiles.png)
21+
22+
## Goals
23+
24+
There are 2 goals under the floor, one per team.
25+
26+
Locations and owning team can be found in the agent's FieldInfo as GoalInfo objects. In Python `self.field_info.goals` will be a list of the goals with following attributes:
1527

1628
```python
1729
class GoalInfo:
@@ -24,15 +36,46 @@ class GoalInfo:
2436

2537
Example: To access the location of tile 0 in Python, write: `self.field_info.goals[0].location`
2638

27-
A list of all locations can be found [here](https://pastebin.com/w79VhU8W).
28-
29-
The tiles are hexagonal in shape. The distance between centres is 768 uu (except for the middle where the distance from blue tiles to orange tiles is 256 uu. A neutral strip about 128 uu wide covers the tiles partially). The image below shows the relative dimensions of a Dropshot tile.
30-
31-
![A Dropshot tile's dimensions](/img/dropshot/tiles.png)
39+
The goals provided are as follows:
40+
41+
```rust
42+
[
43+
GoalInfo {
44+
team_num: 0,
45+
location: Vector3 {
46+
x: 0.0,
47+
y: -4430.0,
48+
z: -1040.0,
49+
},
50+
direction: Vector3 {
51+
x: -8.742278e-8,
52+
y: -0.0,
53+
z: 1.0,
54+
},
55+
width: 5408.0,
56+
height: 12640.0,
57+
},
58+
GoalInfo {
59+
team_num: 1,
60+
location: Vector3 {
61+
x: 0.0,
62+
y: 4430.0,
63+
z: -1040.0,
64+
},
65+
direction: Vector3 {
66+
x: -8.742278e-8,
67+
y: -0.0,
68+
z: 1.0,
69+
},
70+
width: 5408.0,
71+
height: 12640.0,
72+
},
73+
]
74+
```
3275

3376
## Arena
3477

35-
The tiles are layed out in rows of 7,8,9,10,11,12,13 |middle| 13,12,11,10,9,8,7. Where tile 0 is in the blue corner (back left if you are on blue team) and tile 139 is in an orange corner (back left if you are on the orange team).
78+
The tiles are layed out in rows of `7,8,9,10,11,12,13 |middle| 13,12,11,10,9,8,7`. Where tile 0 is in the blue corner (back left if you are on blue team) and tile 139 is in an orange corner (back left if you are on the orange team).
3679

3780
The overall layout of the arena and tile indices can be seen below.
3881

0 commit comments

Comments
 (0)