SRB2 Message Board  

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

Reply
 
Thread Tools
MapVote: a Kart-style voting screen for netgames! Details »»
MapVote: a Kart-style voting screen for netgames!
Version: 4, by Krabs Krabs is offline
Developer Last Online: Aug 2020

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

Download - v4

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)

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 and any custom maps first before adding this script. At the moment, there is only support for the custom gametypes from battlemod.

Download Now

File Type: lua VL_MapVote-v1.lua (18.8 KB, 64 views)
File Type: lua VL_MapVote-v2.lua (19.2 KB, 34 views)
File Type: lua VL_MapVote-v3.lua (19.7 KB, 50 views)
File Type: lua VL_MapVote-v3.1.lua (19.7 KB, 62 views)
File Type: lua L_MapVote-v4.lua (19.8 KB, 47 views)

Screenshots

Click image for larger version

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

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

Name:	srb20129.jpg
Views:	1007
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
Let's see you handle this!
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 1 Week Ago   #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
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 12:56 AM.


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