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: 3.1, by Krabs Krabs is offline
Developer Last Online: Jul 2020

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

Download - v3.1

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
cleargametypes - empties the list of enabled gametypes
addgametype - adds a gametype to the list of enabled gametypes (use numbers, not full names)

By default, the enabled gametypes are Match, CTF, and Team Match. To disable these, use cleargametypes and then add your own gametypes one by one.

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.

Example adedserv.cfg
For some reason, 'wait 1' is necessary here to make sure the gametypes commands go through. This should work for dedicated servers that add this script using command line parameters.
Code:
inttime 300
wait 1
cleargametypes
addgametype 8
addgametype 9
addgametype 10
addgametype 11
addgametype 12
addgametype 13

Download Now

File Type: lua VL_MapVote-v1.lua (18.8 KB, 60 views)
File Type: lua VL_MapVote-v2.lua (19.2 KB, 31 views)
File Type: lua VL_MapVote-v3.lua (19.7 KB, 44 views)
File Type: lua VL_MapVote-v3.1.lua (19.7 KB, 41 views)

Screenshots

Click image for larger version

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

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

Name:	srb20129.jpg
Views:	745
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
likes to assault raccoons
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 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 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 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 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 10:14 AM.


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