SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Releases > Lua

Reply
 
Thread Tools
MapVote v7.1: a Kart-style voting screen for netgames! Details »»
MapVote v7.1: a Kart-style voting screen for netgames!
Version: 7, by Krabs Krabs is offline
Developer Last Online: Sep 2020

Version: SRB2 Rating: (1 votes - 3.20 average)
Released: 05-21-2020 Last Update: 09-14-2020 Favourites: 2
Scripts Re-Useable Content

Download

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.






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.

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

Optional battlemod support: Add battlemod first before adding this script. At the moment, there is no support for other custom gametypes.

Thanks to JJK for adding the "weightedrandom" feature!

Download Now

File Type: lua VL_MapVote-v1.lua (18.8 KB, 73 views)
File Type: lua VL_MapVote-v2.lua (19.2 KB, 44 views)
File Type: lua VL_MapVote-v3.lua (19.7 KB, 61 views)
File Type: lua VL_MapVote-v3.1.lua (19.7 KB, 70 views)
File Type: lua L_MapVote-v4.lua (19.8 KB, 58 views)
File Type: lua L_MapVote-v5.lua (19.8 KB, 46 views)
File Type: lua L_MapVote-v6.lua (22.2 KB, 26 views)
File Type: lua L_Mapvote-v7.1.lua (23.2 KB, 22 views)

Screenshots

Click image for larger version

Name:	srb20447.gif
Views:	1380
Size:	108.2 KB
ID:	31785   Click image for larger version

Name:	srb20128.jpg
Views:	1374
Size:	93.1 KB
ID:	31805   Click image for larger version

Name:	srb20129.jpg
Views:	1364
Size:	99.8 KB
ID:	31806  

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 05-21-2020   #2
Inazuma
Go on, I dare you!
Judge
 
Inazuma's Avatar
Default

Extremely useful! I love this!!

Welcome to Releases!
Inazuma is offline   Reply With Quote
Old 05-21-2020   #3
sanek
Default

looks nice

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

this doesnt works
sanek is offline   Reply With Quote
Old 05-21-2020   #4
Krabs
 
Krabs's Avatar
Default

Quote:
Originally Posted by sanek View Post
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.

If there's another problem, please describe it.
__________________
Twitter
Krabs's 24/7 BattleMod: 8.9.30.119
Krabs is offline   Reply With Quote
Old 05-21-2020   #5
Cyron
Actually a Waddle Dee
 
Cyron's Avatar
Default

With this, battles gonna be real good
Cyron is offline   Reply With Quote
Old 05-21-2020   #6
Krabs
 
Krabs's Avatar
Default

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.
__________________
Twitter
Krabs's 24/7 BattleMod: 8.9.30.119
Krabs is offline   Reply With Quote
Old 05-22-2020   #7
Krabs
 
Krabs's Avatar
Default

Cleaned up the code, rewrote some stuff. It's basically identical, but v2 is out.
__________________
Twitter
Krabs's 24/7 BattleMod: 8.9.30.119
Krabs is offline   Reply With Quote
Old 05-23-2020   #8
Krabs
 
Krabs's Avatar
Default

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.
__________________
Twitter
Krabs's 24/7 BattleMod: 8.9.30.119
Krabs is offline   Reply With Quote
Old 07-29-2020   #9
Krabs
 
Krabs's Avatar
Default

v4 is out. Now supports new battle gametypes, and there's a new "gametypelist" command to change the gamemode list.
__________________
Twitter
Krabs's 24/7 BattleMod: 8.9.30.119
Krabs is offline   Reply With Quote
Old 4 Weeks Ago   #10
Krabs
 
Krabs's Avatar
Default

v5 is out. Now separates arena and survival maps properly for battlemod.
__________________
Twitter
Krabs's 24/7 BattleMod: 8.9.30.119
Krabs is offline   Reply With Quote
Old 1 Week Ago   #11
Krabs
 
Krabs's Avatar
Default

v6 is out - now you can whitelist or blacklist maps using the console commands mapwhitelist and mapblacklist
__________________
Twitter
Krabs's 24/7 BattleMod: 8.9.30.119
Krabs is offline   Reply With Quote
Old 4 Days Ago   #12
Krabs
 
Krabs's Avatar
Default

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.
__________________
Twitter
Krabs's 24/7 BattleMod: 8.9.30.119
Krabs is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:44 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.