Raised This Month: $51 Target: $400
 12% 

mapvote


Post New Thread Reply   
 
Thread Tools Display Modes
jasonfrog
Senior Member
Join Date: Mar 2008
Old 03-13-2009 , 23:15   Re: mapvote
Reply With Quote #451

fantastic plug-in. great to be able to tune it so finely.

i have one small request that i think would improve the timing of the appearance of the vote menu.

when a condition is reached to trigger a vote, such as sm_mapvote_startround or sm_mapvote_startwins or whatever, the vote menu appears immediately, just at the point where everyone is switching weapon to clean up in the humilation bonus time, and also when other screen notifications appear such as the win/round scorecard.

it would be great if it was possible to define a delay of however many seconds after a condition is reached.

e.g. X amount of seconds after the sm_mapvote_startwins has been reached a vote menu appears.

i believe this would of great benefit and reduce the amount of misvoting due to frantic key pressing in TF2.

i think also allow for better timing of appearance when there is less going on the screen.

anyway congrats on a top plugin!
jasonfrog is offline
Caught off Guard
Senior Member
Join Date: Jan 2008
Old 03-14-2009 , 17:17   Re: mapvote
Reply With Quote #452

Hi,

i did a new install of 1.2 earlier today on my insurgency server adding your map vote and it seemed to work. However later in the day when I went on the map voting menu wasnt coming up and the server was changing automatically. At one point I forced a map vote and that appeared and worked as it should do. There are no error logs but here is what I got from the SM logs:

Code:
L 03/14/2009 - 17:19:10: -------- Mapchange to ins_baghdad_argyll --------
L 03/14/2009 - 17:19:11: [MapVar.smx] Loading map configuration....
L 03/14/2009 - 17:39:57: [mapchooser.smx] Starting map vote because outside request
L 03/14/2009 - 17:39:57: [mapchooser.smx] Voting for next map has started.
L 03/14/2009 - 17:40:22: [mapchooser.smx] Voting for next map has finished. Nextmap: ins_buhriz_argyll.
L 03/14/2009 - 17:45:06: [SM] Changed map to "ins_buhriz_argyll"
L 03/14/2009 - 17:45:09: -------- Mapchange to ins_buhriz_argyll --------
L 03/14/2009 - 17:45:10: [MapVar.smx] Loading map configuration....
L 03/14/2009 - 17:59:42: -------- Mapchange to ins_buhriz --------
L 03/14/2009 - 18:01:53: [mapvote.smx]  - "Console<0><Console><Console>" started a mapvote.
L 03/14/2009 - 18:01:53: [mapchooser.smx] Starting map vote because outside request
L 03/14/2009 - 18:01:53: [mapchooser.smx] Voting for next map has started.
L 03/14/2009 - 18:02:18: [mapchooser.smx] Voting for next map has finished. Nextmap: ins_sinjar_argyll.
L 03/14/2009 - 18:03:53: [SM] Changed map to "ins_sinjar_argyll"
L 03/14/2009 - 18:04:01: -------- Mapchange to ins_sinjar_argyll --------
L 03/14/2009 - 18:04:02: [MapVar.smx] Loading map configuration....
L 03/14/2009 - 18:31:00: [mapchooser.smx] Starting map vote because outside request
L 03/14/2009 - 18:31:00: [mapchooser.smx] Voting for next map has started.
L 03/14/2009 - 18:31:26: [mapchooser.smx] Voting for next map has finished. Nextmap: ins_hillah_argyll.
L 03/14/2009 - 18:37:44: [SM] Changed map to "ins_hillah_argyll"
L 03/14/2009 - 18:37:51: -------- Mapchange to ins_hillah_argyll --------
L 03/14/2009 - 18:37:52: [MapVar.smx] Loading map configuration....
L 03/14/2009 - 18:48:58: [showrules.smx] Player disagreed to rules (kicked): Crysen | *
L 03/14/2009 - 19:04:51: [mapchooser.smx] Starting map vote because outside request
L 03/14/2009 - 19:04:51: [mapchooser.smx] Voting for next map has started.
L 03/14/2009 - 19:07:52: [SM] Changed map to "ins_haditha"
L 03/14/2009 - 19:07:56: -------- Mapchange to ins_haditha --------
what is going wrong?

thanks
Caught off Guard is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 03-18-2009 , 17:48   Re: mapvote
Reply With Quote #453

Code:
22:45:42 L 03/18/2009 - 22:37:41: [mapvote.smx] Successfully read in the new maps.
22:45:42 L 03/18/2009 - 22:37:41: [SM] Plugin encountered error 25: Call was aborted
22:45:42 L 03/18/2009 - 22:37:41: [SM] Native "SetFailState" reported: Both mapvote.smx and mapchooser.smx is enabled to create a end of map vote, please disable one of them.
22:45:42 L 03/18/2009 - 22:37:41: [SM] Displaying call stack trace for plugin "mapvote.smx":
22:45:42 L 03/18/2009 - 22:37:41: [SM]   [0]  Line 143, C:\Documents and Settings\Administratr\Skrivbord\pstudio-0.8.3\plugins\mapvote\common\mapvote\mapvote.sp::OnConfigsExecuted()
[SM] Native "SetFailState" reported: Both mapvote.smx and mapchooser.smx is enabled to create a end of map vote, please disable one of them... but if I disable mapchooser mapvote don't load. Any help? (SM 1.2)
__________________
Zuko is offline
Send a message via ICQ to Zuko
krzynek1
Member
Join Date: Jan 2009
Old 03-19-2009 , 03:06   Re: mapvote
Reply With Quote #454

set this to 0 in cfg/sourcemod/mapchooser.cfg

sm_mapvote_endvote

mapchooser and mapvote must be loaded

Last edited by krzynek1; 03-19-2009 at 03:08.
krzynek1 is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 03-19-2009 , 08:38   Re: mapvote
Reply With Quote #455

thx for reply, I will try this.
__________________
Zuko is offline
Send a message via ICQ to Zuko
justin2net
Zero Posts
Join Date: Mar 2009
Old 03-23-2009 , 00:18   Re: mapvote
Reply With Quote #456

I was having problems with mapchooser/mapvote doing end game votes. The players would select, for example, dustbowl, but the next map in rotation was avanti_b1...the server would switch to avanti_b1 instead of what the players voted, which was dustbowl.

I thought it was a conflict with the mapcycle text files...so I went into server.cfg and changed mapcyclefile mapcycle.txt" to "mapcyclefile mapcycledummy.txt", a file that does not exist.
Then I went to maplists.cfg and changed default - "mapcyclefile" to "mapcycle.txt"

It seems to be working now..BUT I get this error message:

Quote:
[SM] The plugin list has been refreshed and reloaded.
L 03/22/2009 - 21:177: [mapchooser.smx] Unable to create a valid map list.
L 03/22/2009 - 21:177: [mapvote.smx] Successfully read in the new maps.
how do I fix this? What problems could this cause (I tried very quickly, and I did not see any error...)

I'm very new at setting up servers...what is the correct way to "disable" rotation and enable end game voting at the end of each game?

mapvote.cfg
Quote:
// This file was auto-generated by SourceMod (v1.1.0)
// ConVars for plugin "mapvote.smx"


// Specifies if mapvote should run an end of map vote
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_enable "1"

// Map file to read and use.
// If you want diffrent files for diffrent occasion then remove this line
// and add this line but modified into the right config.
// -
// Default: "configs/mapvote.ini"
sm_mapvote_file "configs/mapvote.ini"

// Should it try to fill slots even if map does not fullfill all the requirements.
// 1 = maps without requirment can be added
// 0 = drop slots when maps do not fullfill conditions
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_forceslots "1"

// Should the votes be displayed in random order/scramble the order.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_randomorder "0"
mapchooser.cfg

Quote:
// This file was auto-generated by SourceMod (v1.0.3)
// ConVars for plugin "mapchooser.smx"


// Specifies how many more frags are allowed when map is extended.
// -
// Default: "10"
// Minimum: "5.000000"
sm_extendmap_fragstep "10"

// Specifies how many more rounds each extension makes
// -
// Default: "5"
// Minimum: "5.000000"
sm_extendmap_roundstep "5"

// Specifies how much many more minutes each extension makes
// -
// Default: "15"
// Minimum: "5.000000"
sm_extendmap_timestep "10"

// Enable sounds to be played during vote start and end (assuming correct pure mode and the resp. sound variable is diffrent from "")
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.100000"
sm_mapvote_enablesounds "1"

// Specifies if MapChooser should run an end of map vote
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_endvote "0"

// Specifies how many past maps to exclude from the vote.
// -
// Default: "5"
// Minimum: "0.000000"
sm_mapvote_exclude "0"

// Number of extensions allowed each map.
// -
// Default: "0"
// Minimum: "0.000000"
sm_mapvote_extend "1"

// Specifies how many maps to include in the vote.
// -
// Default: "5"
// Minimum: "2.000000"
// Maximum: "6.000000"
///NOTSURE///sm_mapvote_include "6"

// Specifies whether or not MapChooser should pick a map if no votes are received.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_novote "1"

// Should the option that a player vote on get printed (1 - yes print player votes, 0 - don't print).
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_printvotes "1"

// How many vote options the hint box should show. 0 will disable it
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "5.000000"
sm_mapvote_showvotes "5"

// Sound that is being played when a vote ends. (relative to $basedir/sound/)
// -
// Default: "sourcemod/mapchooser/voteend.mp3"
sm_mapvote_sound_voteend "sourcemod/voteend.wav"

// Sound that is being played when a vote starts. (relative to $basedir/sound/)
// -
// Default: "sourcemod/mapchooser/votestart.mp3"
sm_mapvote_sound_votestart "sourcemod/votestart.wav"

// Specifies when to start the vote based on time remaining.
// -
// Default: "3.0"
// Minimum: "1.000000"
sm_mapvote_start "3.0"

// Specifies when to start the vote base on frags remaining.
// -
// Default: "5.0"
// Minimum: "1.000000"
sm_mapvote_startfrags "5.0"

// Specifies when to start the vote based on rounds remaining.
// -
// Default: "2.0"
// Minimum: "1.000000"
sm_mapvote_startround "0"

// Specifies how long the mapvote should be available for.
// -
// Default: "20"
// Minimum: "5.000000"
// Maximum: "25.000000"
sm_mapvote_voteduration "20"
mapvote.ini
Quote:
"Standard Maps"
{
"slots" "6"

"cp_dustbowl" {}
"cp_gravelpit" {}
"ctf_2fort" {}
"pl_badwater" {}
"pl_goldrush" {}
"cp_egypt_final" {}
}

"TFC Classic Maps"
{
"slots" "7"

"ctf_2fort_classic_v2" {}
"rock2_b1" {}
"ctf_badlands_classic_b3e" {}
"avanti_b1" {}
"ctf_crossover_b3" {}
"ctf_well_classic_b2" {}
"cp_warpath2" {}
}

"TF2 Custom Maps"
{
"slots" "12"

"cp_beetle_b1" {}
"cp_museum_b2" {}
"cp_oilfield_v2" {}
"ctf_convoy_v2" {}
"ctf_happyfarm" {}
"pc_sawmill_b6" {}
"pl_cranetop_b8" {}
"pl_frontier_b2" {}
"pl_halfacre_rc2" {}
"pl_hoodoo" {}
"pl_swift_final" {}
"pl_waste_b4" {}
}
If you are wondering why I am using this advanced mapvote plugin for voting...it is because I want to show all the maps, not just six.

Last edited by justin2net; 03-23-2009 at 00:22.
justin2net is offline
georgy
Member
Join Date: Dec 2008
Old 03-25-2009 , 16:34   Re: mapvote
Reply With Quote #457

zerak, thank for DisplayVote.sp and completion of a code mapchooser.sp, I used the most part from a code created by you. But as to a sound I have solved this problem easier, used standard sounds mani_admin as at the majority of users they already are. In section of processing rtv I have removed a part of a code, prevented to deduce result of voting. If you not against it is possible to try to decide a problem of creation and check of a code in common though I only and begin acquaintance with скриптами sourcenod, it is interesting to me...

sound filesI have organized loading as follows:
Quote:

//added
#include <sdktools>
..........
..........

public OnStartMap()
{
AddFileToDownloadstable("sound/admin_plugin/startyourvoting.mp3");//added
AddFileToDownloadstable("sound/admin_plugin/endofvote.mp3");//added

PrecacheSound("admin_plugin/startyourvoting.mp3");//added
PrecacheSound("admin_plugin/endofvote.mp3");//added
}
..........
..........
..........
your code-->-->
..........
EmitSoundToAll("admin_plugin/endofvote.mp3");//added
My file mapchuser with addition of your skript for use in standart sourcemod environment:
Attached Files
File Type: sp Get Plugin or Get Source (mapchooser.sp - 519 views - 35.4 KB)
__________________
In Game Shacal_rus

Last edited by georgy; 03-26-2009 at 17:14.
georgy is offline
madmonkey
Junior Member
Join Date: Nov 2008
Old 04-04-2009 , 12:18   Re: mapvote
Reply With Quote #458

Is it possible to make an easy option like follows :
We want, if the server is empty, the mapvote chose only maps from the slot 1 for the nextmap ?

because :
The problem is, if the server is empty, and no one votes a map, than comes gungame maps or custom maps....and then the chance is very low, that people connect to the server.

our config :
Slot 1 = standard
Slot 2 = standard
Slot 3 = custom
Slot 4 = extended standard
Slot 5 = GunGame
__________________

Last edited by madmonkey; 04-05-2009 at 04:31.
madmonkey is offline
krzynek1
Member
Join Date: Jan 2009
Old 04-15-2009 , 07:33   Re: mapvote
Reply With Quote #459

hi zerak, i have request for you, could you make client chat trigger something like !revote (this trigger must redisplay votemnu if voting is still on progres), couse its not a rare case when one popup menu turn off another (in my case killstats turn off votemenu)

i just want to everybody on my server have ability to vote even if votemenu disapear

can you make it ? please
krzynek1 is offline
mycologist
SourceMod Donor
Join Date: Sep 2008
Location: Sep 2008
Old 04-15-2009 , 19:40   Re: mapvote
Reply With Quote #460

Hey zerak, great plugin, our community uses it for all of our servers and could not live without it. I would go as far as recommending this for intrigration into the base SourceMod. The only suggestion, although minor, would be a feature to use "sm_mapvote_exclude" on a per map basis. So that we could have some maps wait longer to show up in votes after they are played. Example:

Code:
"Stock Maps"
{
    "slots"        "3"

    "cp_badlands"
    {
        "min"        "0"
        "exclude"        "5"
    }

    "cp_dustbowl"
    {
        "min"        "0"
        "exclude"        "5"
    }

    "cp_egypt_final"
    {
        "min"        "8"
        "exclude"        "10"
    }
}
This isn't really a pressing issue or anything, just the only feature I could think of that would be useful. Thanks again!
__________________

mycologist is offline
Reply



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 -4. The time now is 06:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode