Let players, rather than a rotation, decide what plays next: games, maps or modes. Rock the vote, nominations, per-choice time limits, a ballot and the change at the end of it. It is the familiar rtv, nominate, mapchooser, timeleft, extend shape, with every part a setting, so a community changes a number instead of forking it.
This GameSpice addon is MIT, built with Claude Code, and tested headless by examples/vote_selftest.tscn. Map and mode votes in the games of Zee's Games run through it on live servers built from GameSpice addons. Bug reports go to the issue tracker.
- Get Godot 4.7.
- Either use GameSpice Bootstrap, which clones every project and links the addons, or copy
addons/gs_vote/and GameSpice Core'saddons/gs_core/into your project and enable gs-vote in Project > Project Settings > Plugins.
GameSpice Core is the only dependency. GameSpice Server and GameSpice Map are optional and are reached without being imported.
var votes := GSVoteDirector.new()
votes.rules = GSVoteRules.new()
votes.source = GSVoteGameSource.of(server.games) # or a map catalogue, or your own
votes.player_count_fn = func() -> int: return players.size()
add_child(votes)
votes.begin(&"lobby") # what is running now
# once per tick
votes.advance(delta)Everything else is configuration.
| Feature | Detail |
|---|---|
| Rock the vote | A fraction of players, a minimum player count, a delay at the start of each map, one vote per player, withdrawn when they disconnect. |
| Nominations | Per-player and total limits, seconding, admin bypass, and reserved ballot places so a few organised players cannot decide every map. |
| Time limits | Seconds, rounds, score, or all three, per choice, with warnings and extending. |
| End-of-map vote | One switch (end_vote). The ballot opens a set lead before the end, with an optional countdown. "Extend" adds time, rounds and score. |
| The ballot | Options filled several ways, with "extend", "don't change" and "no vote" switchable, placed first or last, optionally shuffled, custom maps marked. |
| Counting | Plurality, approval, instant runoff or majority runoff. Quorums, weighted ballots, tie-breaks. |
| Cooldowns | In plays or minutes, per choice, kept from excluding the whole pool. |
| Applying | Immediately, at round end or when the clock runs out, with a delay so players can read the result. |
| Cues | Countdown signals and sound cue ids. The host plays them. |
| Commands | nominate, rtv, votefor, timeleft, nextmap, revote, extend, endvote, setnextmap, nominate_addmap, forcertv, votereload and more, on a GameSpice Server console and in chat. Names are configurable; admin ones need the changemap flag. |
| Class | What it is |
|---|---|
GSVoteRules |
Every policy decision, as one GSConfig: defaults, then file, then GS_VOTE_*, then --vote-*. Enum settings are written by name (method: instant_runoff). |
GSVoteChoice |
One thing to vote for: id, name, player counts, its own time limit, cooldown and weight. |
GSVoteSource |
Where choices come from and what "play this" means. |
GSVoteDirector |
The Node that joins them, driven by advance(delta). |
GSVoteClock |
The limit, warnings, extends and rock-the-vote. |
GSVoteClockView |
The clock as a client shows it. |
GSVoteBallot |
The open ballot and the counting methods. |
GSVoteBallotView, GSVoteBallotFeed |
The ballot as a client draws it, and a feed that sends it only when it changed. GameSpice UI's GSBallotPanel draws it. |
GSVoteNominations |
What players have asked for, in order. |
GSVoteHistory |
What has been played and what is on cooldown. |
GSVoteResult |
What was decided, and how, including which tie-break. |
GSVoteGameSource.of(server.games) # gs-server's games
GSVoteMapSource.of(catalogue, session) # gs-map's maps
GSVoteListSource.of(my_choices) # anything else, with a CallableA list that changes while the server runs is better given as a function: source.entries_fn = func() -> Array: return my_catalogue() is read again when a map begins and before every ballot. It returns GSVoteChoices, [id, name] pairs or bare ids.
source.follow_content(GSContentIndex.shared(), PackedStringArray(["*"])) adds the maps a player subscribed to (solo only). A server whose maps.yml lists only some maps sets source.in_rotation_fn so an unlisted map is never on the ballot or nominated.
Per-choice settings live in the thing's own metadata:
# content/fc/game.yml
metadata:
vote:
time_limit_sec: 2400
weight: 2.0A source that cannot change anything is fine: the director runs the vote and emits change_due for the host to act on.
Written as yml, JSON, environment or command line. A selection:
trigger: time_limit # round_end, or manual
duration_sec: 1800
end_vote: true
vote_lead_sec: 120 # the ballot opens two minutes before the end
vote_warning_sec: 10
warn_at_sec: "300,60,30"
include_extend: true
extend_seconds: 900
max_extends: 2
rtv_fraction: 0.6
rtv_min_players: 1
rtv_delay_sec: 120
max_options: 6
nomination_slots: 4
fill: least_recently_played
method: instant_runoff
tie_break: nomination_order
quorum: 0.4
on_no_quorum: keep
cooldown: 5
apply: end_of_round
apply_delay_sec: 5An operator's file lives in cfg/addons/gs_vote/vote.yml, with cfg/server/addons/gs_vote/ layered over it. Defaults you can see in code: max_options 6, nomination_slots 4, max_extends 3. docs/parity.md maps the settings, commands and hooks of the long-standing community map-chooser plugins onto these.
A game that builds its rules in code can layer an operator's file over them:
var rules := my_default_rules()
var layered := rules.layer_over_defaults(
"user://cfg/my_game_vote.json",
GSVoteGameSource.running_game_metadata("map_vote"),
)A result that does not validate is refused whole, and the game keeps its own defaults.
Import the project once, then run examples/vote_selftest.tscn headless with Godot. It runs against a real GSGameManager and GSMapCatalogue when GameSpice Server and GameSpice Map are linked in. Further notes: docs/design.md, docs/history.md.
All of these games from Zee's Games vendor this addon:
- Fatal Contact
- Airdrift
- Playlot
- Hungario
- Buses From Hell
- Smash Copter
- Zombie Zone
- Hide n Seek
- Prop Hunt
- Murder Mystery
- Deathrun
- Wipeout
- Dangerous Delivery
- Look At Me
The whole collection is at zeesgames.com.
MIT licence, see LICENSE. The only closed part of the GameSpice platform is the web back end; you can use your own instead of GameSpice's.
