Skip to content

Commit bc7af4d

Browse files
committed
Add maps util
1 parent 5d0d89b commit bc7af4d

File tree

2 files changed

+119
-1
lines changed

2 files changed

+119
-1
lines changed

rlbot/utils/maps.py

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
GAME_MAP_TO_UPK = {
2+
"DFHStadium": "Stadium_P",
3+
"Mannfield": "EuroStadium_P",
4+
"ChampionsField": "cs_p",
5+
"UrbanCentral": "TrainStation_P",
6+
"BeckwithPark": "Park_P",
7+
"UtopiaColiseum": "UtopiaStadium_P",
8+
"Wasteland": "wasteland_s_p",
9+
"NeoTokyo": "NeoTokyo_Standard_P",
10+
"AquaDome": "Underwater_P",
11+
"StarbaseArc": "arc_standard_p",
12+
"Farmstead": "farm_p",
13+
"SaltyShores": "beach_P",
14+
"DFHStadium_Stormy": "Stadium_Foggy_P",
15+
"DFHStadium_Day": "stadium_day_p",
16+
"Mannfield_Stormy": "EuroStadium_Rainy_P",
17+
"Mannfield_Night": "EuroStadium_Night_P",
18+
"ChampionsField_Day": "cs_day_p",
19+
"BeckwithPark_Stormy": "Park_Rainy_P",
20+
"BeckwithPark_Midnight": "Park_Night_P",
21+
"UrbanCentral_Night": "TrainStation_Night_P",
22+
"UrbanCentral_Dawn": "TrainStation_Dawn_P",
23+
"UtopiaColiseum_Dusk": "UtopiaStadium_Dusk_P",
24+
"DFHStadium_Snowy": "Stadium_Winter_P",
25+
"Mannfield_Snowy": "eurostadium_snownight_p",
26+
"UtopiaColiseum_Snowy": "UtopiaStadium_Snow_P",
27+
"Badlands": "Wasteland_P",
28+
"Badlands_Night": "Wasteland_Night_P",
29+
"TokyoUnderpass": "NeoTokyo_P",
30+
"Arctagon": "ARC_P",
31+
"Pillars": "Labs_CirclePillars_P",
32+
"Cosmic": "Labs_Cosmic_V4_P",
33+
"DoubleGoal": "Labs_DoubleGoal_V2_P",
34+
"Octagon": "Labs_Octagon_02_P",
35+
"Underpass": "Labs_Underpass_P",
36+
"UtopiaRetro": "Labs_Utopia_P",
37+
"Hoops_DunkHouse": "HoopsStadium_P",
38+
"DropShot_Core707": "ShatterShot_P",
39+
"ThrowbackStadium": "ThrowbackStadium_P",
40+
"ForbiddenTemple": "CHN_Stadium_P",
41+
"RivalsArena": "cs_hw_p",
42+
"Farmstead_Night": "Farm_Night_P",
43+
"SaltyShores_Night": "beach_night_p",
44+
"NeonFields": "music_p",
45+
"DFHStadium_Circuit": "Stadium_Race_Day_P",
46+
"DeadeyeCanyon": "Outlaw_P",
47+
"StarbaseArc_Aftermath": "ARC_Darc_P",
48+
"Wasteland_Night": "Wasteland_Night_S_P",
49+
"BeckwithPark_GothamNight": "Park_Bman_P",
50+
"ForbiddenTemple_Day": "CHN_Stadium_Day_P",
51+
"UrbanCentral_Haunted": "Haunted_TrainStation_P",
52+
"ChampionsField_NFL": "BB_P",
53+
"ThrowbackStadium_Snowy": "ThrowbackHockey_p",
54+
"Basin": "Labs_Basin_P",
55+
"Corridor": "Labs_Corridor_P",
56+
"Loophole": "Labs_Holyfield_P",
57+
"Galleon": "Labs_Galleon_P",
58+
"GalleonRetro": "Labs_Galleon_Mast_P",
59+
"Hourglass": "Labs_PillarGlass_P",
60+
"Barricade": "Labs_PillarHeat_P",
61+
"Colossus": "Labs_PillarWings_P",
62+
"BeckwithPark_Snowy": "Park_Snowy_P",
63+
"NeoTokyo_Comic": "NeoTokyo_Toon_P",
64+
"UtopiaColiseum_Gilded": "UtopiaStadium_Lux_P",
65+
"SovereignHeights": "Street_P",
66+
"Hoops_TheBlock": "HoopsStreet_P",
67+
"Farmstead_Spooky": "Farm_HW_P",
68+
"ChampionsField_NikeFC": "swoosh_p",
69+
"ForbiddenTemple_FireAndIce": "fni_stadium_p",
70+
"DeadeyeCanyon_Oasis": "outlaw_oasis_p",
71+
"EstadioVida_Dusk": "ff_dusk_p",
72+
"Mannfield_Dusk": "eurostadium_dusk_p",
73+
"Farmstead_Pitched": "farm_grs_p",
74+
"Farmstead_Upsidedown": "farm_hw_p",
75+
"Wasteland_Pitched": "wasteland_grs_p",
76+
"Neotokyo_Hacked": "neotokyo_hax_p",
77+
}
78+
79+
STANDARD_MAPS = [
80+
"DFHStadium",
81+
"Mannfield",
82+
"ChampionsField",
83+
"UrbanCentral",
84+
"BeckwithPark",
85+
"UtopiaColiseum",
86+
"Wasteland",
87+
"NeoTokyo",
88+
"AquaDome",
89+
"StarbaseArc",
90+
"Farmstead",
91+
"SaltyShores",
92+
"DFHStadium_Stormy",
93+
"DFHStadium_Day",
94+
"Mannfield_Stormy",
95+
"Mannfield_Night",
96+
"ChampionsField_Day",
97+
"BeckwithPark_Stormy",
98+
"UrbanCentral_Night",
99+
"UrbanCentral_Dawn",
100+
"UtopiaColiseum_Dusk",
101+
"DFHStadium_Snowy",
102+
"Mannfield_Snowy",
103+
"UtopiaColiseum_Snowy",
104+
"ForbiddenTemple",
105+
"RivalsArena",
106+
"Farmstead_Night",
107+
"SaltyShores_Night",
108+
"NeonFields",
109+
"DFHStadium_Circuit",
110+
"DeadeyeCanyon",
111+
"StarbaseArc_Aftermath",
112+
"ForbiddenTemple_Day",
113+
"Wasteland_Night",
114+
]

tests/run_match.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717

1818
try:
1919
# wait for the match to end
20-
while match_manager.packet is None or match_manager.packet.game_info.game_state_type != flat.GameStateType.Ended:
20+
while (
21+
match_manager.packet is None
22+
or match_manager.packet.game_info.game_state_type
23+
!= flat.GameStateType.Ended
24+
):
2125
sleep(0.1)
2226
finally:
2327
match_manager.shut_down()

0 commit comments

Comments
 (0)