Author Topic: Music Voting (V. 4.1 | 9-28-12) - Allow players to vote on music to music!  (Read 4358 times)

Music Voting 4.1

Snapshots
Changes
Commands
Credits
Download




Snapshots


When you spawn, this message shows up.


I set up a music brick by looking at my music brick and typing /setVMBrick.


I type /voteMusic so I can vote on my music.


I press SEND and this message pops up, telling me I have succesfully started
a vote for my song.


I type /VM yes to vote for the song being voted on.


Sucess! the music brick is now set to the song I voted for!



Changes

V. 1 - 9-24-12
    -Published to forums

V. 2 - 9-25-12
    -Fixed a bug where people could change the music by pushing the music GUI after typing /voteMusic from their console (sets wrench data to nothing and changes wrenchbrick to nothing when the "You have waited too long" message appears.) and when they press SEND in music gui.

V. 3 - 9-26-12
    -Fixed a bug where $lastSong tried to define itself with %musicData when it didn't exist yet.
    -When the parent is called (If not voting for the music to be played), it now checks to see if it is a music brick before setting the $lastSong
to the %musicData variable.
    -Added a vote timeout, you can adjust it in the RTB prefs.

V. 4 - 9-28-12
    - Added a check to make sure if a vote is enabled if for an apparent reason someone typed /voteMusic while another player was starting a vote, allowing them both to make 2 votes, before pressing SEND.

V. 4.1 - 9-28-12
    - Fixed an exploit where you could bypass the actual voting process (thanks mold)



Commands

/VMHelp - List music voter commands.

/voteMusic - Opens up music GUI so you can pick a song to vote on.
   - Also has an RTB pref to let you change if everyone, admins, or superadmins can only use.

/VM Yes | /VM No - Vote on the music being voted on.

/VM stopvote - Admin only, stop a vote from finishing.

/setVMBrick - Admin only, Sets the music brick you are looking at to the music brick to be voted on.

RTB Prefs
---------
Enabled (checkbox) - Enable or disable music voting.

Restrictions (Who can vote. List: Everyone, admins, superadmins) - Should everyone, admins, or superadmins be able to vote?



Credits

Coder: Wrapperup
Music Pack: Kalphiter



Download
Music Voter v 4.1 download is below, RTB link hopefully comming soon too.
http://www.mediafire.com/?qaezf9t00356ffe (V. 4.1)
http://forum.returntoblockland.com/dlm/viewFile.php?id=4601 (Still waiting for approval, will update to v. 4.1 when approved(if ever).)
« Last Edit: September 28, 2012, 05:27:10 PM by Wrapperup »

You should make it so that the Music gui pops up for everyone and then they all make their selection. The most selected song wins.

You should make it so that the Music gui pops up for everyone and then they all make their selection. The most selected song wins.
that would interrupt the gameplay.

It should be optional then. Or maybe at the end of a round.

Some servers have alot of music, it would be messy as if there isnt alot of players, the music they want would be picked once and very rarely twice, but it is a good idea, as long as the server doesnt have so much music. It could be optional in RTB pref's and per player.
« Last Edit: September 25, 2012, 07:08:05 AM by Wrapperup »


Updated to version 2,

-Fixed a bug where people could change the music by pushing the music GUI after typing /voteMusic from their console sets wrench data to nothing and changes wrenchbrick to nothing when the "You have waited too long" message appears and when they press SEND in the Music GUI.

enjoy.

double post accident, stupid stuffty slow internet.

I feel like this can be really glitchy. I'll take a look in the .cs later.

Nah, looks pretty decent to me. Nice.
« Last Edit: September 26, 2012, 03:53:25 PM by nerraD »


Do you need to add this for such a tiny post?

Can't I be fancy..? :c

V. 3 is finished, yay!

    -Fixed a bug where $lastSong tried to define itself with %musicData when it didn't exist yet.

    -When the parent is called (If not voting for the music to be played), it now checks to see if it is a music brick before setting the $lastSong
to the %musicData variable.

    -Added a vote timeout, you can adjust it in the RTB prefs.

once again, enjoy.


Awesome! Hope pecan uses it.

V 4 is released, hooray!

- Added a check to make sure if a vote is enabled if for an apparent reason someone typed /voteMusic while another player was starting a vote, allowing them both to make 2 votes, before pressing SEND.