Skip to content

Commit 2fce125

Browse files
committed
Remove version info
1 parent b5f2f4e commit 2fce125

File tree

2 files changed

+2
-113
lines changed

2 files changed

+2
-113
lines changed

rlbot/managers/match.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import psutil
77

8-
from rlbot import flat, version
8+
from rlbot import flat
99
from rlbot.interface import RLBOT_SERVER_IP, RLBOT_SERVER_PORT, SocketRelay
1010
from rlbot.utils import fill_desired_game_state, gateway
1111
from rlbot.utils.logging import DEFAULT_LOGGER
@@ -152,17 +152,13 @@ def __init__(
152152
self,
153153
main_executable_path: Optional[Path] = None,
154154
main_executable_name: str = MAIN_EXECUTABLE_NAME,
155-
print_version_info: bool = True,
156155
):
157156
self.main_executable_path = main_executable_path
158157
self.main_executable_name = main_executable_name
159158

160159
self.rlbot_interface: SocketRelay = SocketRelay("")
161160
self.rlbot_interface.packet_handlers.append(self._packet_reporter)
162161

163-
if print_version_info:
164-
version.print_current_release_notes()
165-
166162
def ensure_server_started(self):
167163
"""
168164
Ensures that RLBotServer is running, starting it if it is not.

rlbot/version.py

Lines changed: 1 addition & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1 @@
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

Comments
 (0)