From b643f76c2fd024cde500ac181c1a6cf8941262f5 Mon Sep 17 00:00:00 2001 From: xThrasherrr Date: Mon, 5 Oct 2026 14:40:20 -0600 Subject: [PATCH 1/3] Let server hosts choose the map pool and rotate through it --- Server/README.txt | 12 ++++++ Server/Test/server_config_tests.cpp | 34 +++++++++++++++- Server/main.cpp | 9 ++++- Server/server_config.cpp | 40 +++++++++++++++++++ Server/server_config.h | 5 +++ Server/server_host.cpp | 62 ++++++++++++++++++++++++++--- Server/server_host.h | 8 +++- Server/server_votes.cpp | 50 ++++++++++++++++++++++- 8 files changed, 210 insertions(+), 10 deletions(-) diff --git a/Server/README.txt b/Server/README.txt index 4c198d7..8d5bd47 100644 --- a/Server/README.txt +++ b/Server/README.txt @@ -42,6 +42,14 @@ name Shown in the browser (1-64 characters). map The map everyone skates, named like the game's load command: "San Vansterdam", "Isle of Grom", "Super Ultra Mega Resort", "Stadium 1", or a custom map such as "bbcity" (see Custom maps). +map_pool The maps players may vote for and the rotation goes through, + in order, e.g. ["San Vansterdam", "Isle of Grom", "bbcity"]. + Empty (the default) allows every map the server knows. + Admins can still change to any map. +map_rotation_minutes Minutes on each map before the server moves to the next + one in map_pool (default 0: off). Players get a minute's + warning; the clock waits while nobody is on, and starts + over whenever the map changes (by a vote or an admin too). max_players 1-249. password Empty for anyone; otherwise players type it to join. welcome A chat line sent to each player as they join. @@ -53,6 +61,7 @@ global_bans Turn away players the ReSkate team has banned from multiplaye "bans" apply either way. votes Player votes, each off until turned on: "map": {"enabled": true, "percent": 60} /vote map + (a map in map_pool) "kick": {"enabled": true, "percent": 60} /vote kick "time_of_day": {"enabled": true, "percent": 50} /vote tod