This content may be freely modified and/or maintained by anyone.

Krabs

he/him
Sonic Team Junior
Similar to Kart, this addon adds a map voting screen to netgames! It even handles things like ties between maps with the same amount of votes, and it allows for server owners to customize the list of gametypes.

Full description and usage guide
 
Last edited:
looks nice

---------- Post added at 05:39 PM ---------- Previous post was at 05:15 PM ----------

this doesnt works

You must set "inttime 300" in the console, or the voting period will be cut off.
Inaccurate as of later versions

If there's another problem, please describe it.
 
Last edited:
Just a fair warning: I have (only once) experienced a desynch issue where one player could not vote and the options to vote for were not the same as the server's. I'm working on a code cleanup for v2 as well as additional features, but for now v1 seems to work most of the time.
 
Cleaned up the code, rewrote some stuff. It's basically identical, but v2 is out.
 
v3 is out. Fixed a bug where maps were not properly being randomized, and added in a new debug command that can be used to view which maps are left in the "pool" of randomized maps.
 
v4 is out. Now supports new battle gametypes, and there's a new "gametypelist" command to change the gamemode list.
 
v6 is out - now you can whitelist or blacklist maps using the console commands mapwhitelist and mapblacklist
 
v7 is out, adding the weightedrandom feature (thanks to JJK)

activate it to make the voting outcome more random, giving higher random chance to the maps with more votes but still having the possibility for any of the 3 maps to be chosen.
 
v8 is out, (sort of) adding ERT support, OLDC mode, and some other tweaks I've probably forgotten about.
 
Similar to Kart, this script lets you vote for maps in netgames - it even handles things like ties between maps with the same amount of votes, and it allows for server owners to customize the list of gametypes. Custom maps are supported, and BattleMod is supported. This supports every vanilla gametype (even coop, for some reason) as well as every BattleMod gametype. Press jump or ringsling to select a map, and press spin to cancel.

IMPORTANT: The intermission timer setting (console command: inttime) must be a high enough number to contain the whole voting process. I recommend inttime 300.

IMPORTANT: Due to a bug in srb2 related to joins during intermissions, some players may be unable to vote or may see inaccurate voting options. This can be solved by using my other script, Intermission Lock.


attachment.php

attachment.php

attachment.php


Console commands:
vote_time - the duration of the voting period
score_time - the duration of the scoreboard period
gametypelist - set the list of gametypes using their ID numbers (ex: gametypelist 2 3 4 5 6 7)
mapwhitelist - set the list of allowed maps, if you would rather not just use every map. (ex: mapwhitelist f0 f1 f2)
mapblacklist - set the list of disallowed maps, if you would rather not just use every map. (ex: mapblacklist m5)
weightedrandom - enabling this will change the voting result to be somewhat random, with higher probability for maps with more votes. Use it to make unpopular maps win once in a while.
oldcmode - Loops through OLDC battlemod maps, skipping the vote screen entirely.

By default, the enabled gametypes are all vanilla gametypes except coop. To use your own list, use the gametypelist command.

Optional battlemod & Eggrobo Tag support: Add battlemod first before adding this script. At the moment, there is no support for other custom gametypes. ERT must be added after battlemod, until I find a more elegant solution.

Thanks to JJK for adding the "weightedrandom" feature!
bfd.jpg
 
I like to set the Int time to something that lasts longer than the whole vote process, but short enough where the map will change if the script ever bugs out. I personally use 35 seconds.
 
I found that spectators are able to vote for the next map, which may or may not be a good thing for certain hosts.
If there were some features I would personally like, the ability to display up to 9 maps would be nice, and the option for less frequently shown maps to appear in the vote selection would be nice (weightedrandom but for unlucky maps).
As of now this addon is much nicer than the vanilla random switch, and it makes online play so much nicer!
 
I'm curious, does the addon load the possible maps it can use once itself is loaded, or does it wait for all extra maps and SOC files to load first? I want to know this in case it's better to load MapVote last.
 

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top