|
1 | | -__version__ = "5.0.0-beta.17" |
2 | | - |
3 | | - |
4 | | -RESET_SEQ = "\033[0m" |
5 | | -COLOR_SEQ = "\033[32;%dm" |
6 | | -BOLD_SEQ = "\033[1m" |
7 | | - |
8 | | - |
9 | | -def _get_color(color: int) -> str: |
10 | | - return COLOR_SEQ % (30 + color) |
11 | | - |
12 | | - |
13 | | -BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = ( |
14 | | - _get_color(i) for i in range(8) |
15 | | -) |
16 | | - |
17 | | -RELEASE_NOTES = { |
18 | | - "5.0.0-beta.17": """ |
19 | | - - Update to the newest flatbuffers spec |
20 | | - """, |
21 | | - "5.0.0-beta.16": """ |
22 | | - - Read `RLBOT_SERVER_IP` environment variable and default to "127.0.0.1" |
23 | | - """, |
24 | | - "5.0.0-beta.15": """ |
25 | | - - Update to the newest flatbuffers spec |
26 | | - """, |
27 | | - "5.0.0-beta.14": """ |
28 | | - - Add warning to Renderer when trying to render without calling `begin_rendering` first |
29 | | - """, |
30 | | - "5.0.0-beta.13": """ |
31 | | - - Account for partial reads in `SocketRelay` |
32 | | - - Fix managers not ensuring they have received all prerequisite data before initializing |
33 | | - """, |
34 | | - "5.0.0-beta.12": """ |
35 | | - - Improved documentation of managers, renderer, and more. |
36 | | - - Renamed various fields, functions, and methods (minor breaking change). |
37 | | - - Refactored SocketRelay. |
38 | | - """, |
39 | | - "5.0.0-beta.11": """ |
40 | | - - Fixed extraction of Script index from MatchSettings. |
41 | | - - Changed Color to RGBA instead of ARGB. |
42 | | - """, |
43 | | - "5.0.0-beta.10": """ |
44 | | - Fix bug in hivemind & script start |
45 | | - """, |
46 | | - "5.0.0-beta.9": """ |
47 | | - Rename the `initialize_agent` method to `initialize` |
48 | | - Update to new sockets spec |
49 | | - """, |
50 | | - "5.0.0-beta.8": """ |
51 | | - Fix spelling errors in interface |
52 | | - """, |
53 | | - "5.0.0-beta.7": """ |
54 | | - Fix spelling error in spec |
55 | | - """, |
56 | | - "5.0.0-beta.6": """ |
57 | | - Update to new sockets spec |
58 | | - """, |
59 | | - "5.0.0-beta.5": """ |
60 | | - Better `handle_match_communication` API |
61 | | - """, |
62 | | - "5.0.0-beta.4": """ |
63 | | - Better state setting API |
64 | | - """, |
65 | | - "5.0.0-beta.3": """ |
66 | | - Ensure bots don't fall behind the most recent GameTickPacket, without threading |
67 | | - Add `team_color` static method to the rendering manager |
68 | | - """, |
69 | | - "5.0.0-beta.2": """ |
70 | | - Ensure bots don't fall behind the most recent GameTickPacket. |
71 | | - """, |
72 | | - "5.0.0-beta.1": """ |
73 | | - Initial iteration of the Python interface for RLBot. |
74 | | - """, |
75 | | -} |
76 | | - |
77 | | -RELEASE_BANNER = f""" |
78 | | -\x1b[32;1m |
79 | | - ______ _ ______ _ |
80 | | - 10100 | ___ \\ | | ___ \\ | | 00101 |
81 | | - 110011 | |_/ / | | |_/ / ___ | |_ 110011 |
82 | | - 00110110 | /| | | ___ \\/ _ \\| __| 01101100 |
83 | | - 010010 | |\\ \\| |____| |_/ / (_) | |_ 010010 |
84 | | - 10010 \\_| \\_\\_____/\\____/ \\___/ \\__| 01001 |
85 | | -{RESET_SEQ} |
86 | | -
|
87 | | -""" |
88 | | - |
89 | | - |
90 | | -def get_current_release_notes(): |
91 | | - if __version__ in RELEASE_NOTES: |
92 | | - return RELEASE_NOTES[__version__] |
93 | | - return "" |
94 | | - |
95 | | - |
96 | | -def get_help_text(): |
97 | | - return ( |
98 | | - f"{RED+BOLD_SEQ}Trouble?{RESET_SEQ} Ask on Discord at {CYAN}https://discord.gg/5cNbXgG{RESET_SEQ} " |
99 | | - f"or report an issue at {CYAN}https://github.com/RLBot/core/issues{RESET_SEQ}" |
100 | | - ) |
101 | | - |
102 | | - |
103 | | -def print_current_release_notes(): |
104 | | - print(RELEASE_BANNER) |
105 | | - print(f"Version {__version__}") |
106 | | - print(get_current_release_notes()) |
107 | | - print(get_help_text()) |
108 | | - print("") |
| 1 | +__version__ = "5.0.0-beta.18" |
0 commit comments