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

MapChooser Extended 1.10.2 (Updated 2014-02-05)


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-15-2011 , 17:12   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #101

Quote:
Originally Posted by Into View Post
Well, as you can then vote that would begin after the first winning / losing a round? Now I can begin to get votes by the variable sm_mapvote_startround "3" but I have different cards for different number of rounds of voting, and sometimes does not appear.
There is no option to start a vote after the first round.

Hmm... that might be a good feature to add to the next version.

However, I've been pretty busy with the Builtin Votes extension and may not get around to it very soon.

As a workaround, sm_mapvote_startround "1" will start a vote just before the last round of a map.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Sinbad
Junior Member
Join Date: Aug 2010
Location: Russia-Ekaterinburg
Old 07-23-2011 , 02:54   MapChooser Extended
Reply With Quote #102

Hello, we`ve got "MapChooser" on our server. Voting for the map should begin when there is either 8 minutes left for the map or 1 round left.
sm_mapvote_startround 1.0 and sm_mapvote_start 10.0 - are the comands that deals with that. But plugin is not working correctly. For instance, when there is 3 of 4 rounds played, voting plugin triggers and chooses a map just in one second without showing any options. But when plugin is triggered by the timeleft - everything is ok.
What`s the problem?
Sinbad is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-23-2011 , 09:05   Re: MapChooser Extended
Reply With Quote #103

Quote:
Originally Posted by Sinbad View Post
Hello, we`ve got "MapChooser" on our server. Voting for the map should begin when there is either 8 minutes left for the map or 1 round left.
sm_mapvote_startround 1.0 and sm_mapvote_start 10.0 - are the comands that deals with that. But plugin is not working correctly. For instance, when there is 3 of 4 rounds played, voting plugin triggers and chooses a map just in one second without showing any options. But when plugin is triggered by the timeleft - everything is ok.
What`s the problem?
What game is this for?

Are there any error messages in the game console when this happens?

Needless to say, this is definitely unintended behavior, but just by looking at the code, it looks like it's passing through the InitiateVote method the same way for both round-based and timer-based votes.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
XxSpawn
Junior Member
Join Date: Jul 2011
Old 07-23-2011 , 17:55   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #104



//Back on topic

I have your plugin installed on our TF2 server, and seem to be running into a problem. The mapvote never initiates, I have it setup to run off of round time as opposed to actual rounds, when the 15 minute marker hits for time left nothing happens and the next round is just chosen randomly from what I can tell. I have the files installed in the following locations:

mapchooser_extended.smx: orangebox/tf/addons/sourcemod/plugins/
mapchooser_extended(folder): orangebox/tf/addons/sourcemod/configs/
mapchooser_extended.cfg: orangebox/tf/cfg/sourcemod/

Down below are the config settings, any help would be appreciated:

Code:
// This file was auto-generated by SourceMod (v1.3.8)
// ConVars for plugin "mapchooser_extended.smx"


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

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

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

// Block slots to prevent accidental votes.  Only applies when Voice Command style menus are in use.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_blockslots "1"

// Specifies if a 'Don't Change' option should be added to early votes
// -
// Default: "1"
// Minimum: "0.000000"
sm_mapvote_dontchange "0"

// 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 "5"

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

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

// Number of run off votes allowed each map.
// -
// Default: "1"
// Minimum: "0.000000"
sm_mapvote_maxrunoffs "1"

// Menu Style.  0 is the game's default, 1 is the older Valve style that requires you to press Escape to see the menu, 2 is the newer 1-9 button Voice Command style.  Style 2 is unavailable in some games.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_mapvote_menustyle "0"

// 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"

// Hold run off votes if winning choice has less than a certain percentage of votes
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_runoff "1"

// If winning choice has less than this percent of votes, hold a runoff
// -
// Default: "50"
// Minimum: "0.000000"
// Maximum: "100.000000"
sm_mapvote_runoffpercent "40"

// Warning time for runoff vote in seconds.
// -
// Default: "5.0"
// Minimum: "0.000000"
// Maximum: "30.000000"
sm_mapvote_runoffvotewarningtime "5.0"

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

// Specifies when to start the vote based on percents.
// -
// Default: "35.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
sm_mapvote_start_percent "0"

// Enable or Disable percentage calculations when to start vote.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_start_percent_enable "0"

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

// Specifies when to start the vote based on rounds remaining. Use 0 on TF2 to start vote during bonus round time
// -
// Default: "2.0"
// Minimum: "0.000000"
sm_mapvote_startround "0"

// MapChooser Extended Version
// -
// Default: "1.6.3"
sm_mapvote_version "1.6.3"

// Specifies how long the mapvote should be available for.
// -
// Default: "20"
// Minimum: "5.000000"
sm_mapvote_voteduration "30"

// Warning time in seconds.
// -
// Default: "15.0"
// Minimum: "0.000000"
// Maximum: "60.000000"
sm_mapvote_warningtime "0"

// Location for the warning timer text. 0 is HintBox, 1 is Center text, 2 is Chat.  Defaults to HintBox.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_mapvote_warningtimerlocation "0"
XxSpawn is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-23-2011 , 18:17   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #105

Quote:
Originally Posted by XxSpawn View Post


//Back on topic

I have your plugin installed on our TF2 server, and seem to be running into a problem. The mapvote never initiates, I have it setup to run off of round time as opposed to actual rounds, when the 15 minute marker hits for time left nothing happens and the next round is just chosen randomly from what I can tell. I have the files installed in the following locations:

mapchooser_extended.smx: orangebox/tf/addons/sourcemod/plugins/
mapchooser_extended(folder): orangebox/tf/addons/sourcemod/configs/
mapchooser_extended.cfg: orangebox/tf/cfg/sourcemod/

Down below are the config settings, any help would be appreciated:

Code:
// Specifies if MapChooser should run an end of map vote
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_endvote "0"
This setting needs to be changed for it to run a vote automatically.
Code:
sm_mapvote_endvote "1"
If it's 0, Mapchooser is basically just there for its child plugins to operate (like rockthevote).
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
XxSpawn
Junior Member
Join Date: Jul 2011
Old 07-23-2011 , 20:32   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #106

Awesome, that worked beautifully. =D

If I can ask, are you going to implement the option to be able to start a round vote after the first round? Reason I ask is cause we want to setup our server to run on rounds instead of timelimits. But currently your mapchooser only allows a vote at the end of a complete round if there is no timelimit set. Since we have a losing team VIP scoreboard we can have only one or the other since they both show up in the same spot. So the option to have a map vote start after x amount of rounds would be superior. =D
XxSpawn is offline
Sinbad
Junior Member
Join Date: Aug 2010
Location: Russia-Ekaterinburg
Old 07-24-2011 , 06:29   Re: MapChooser Extended
Reply With Quote #107

Quote:
Originally Posted by Powerlord View Post
What game is this for?

Are there any error messages in the game console when this happens?

Needless to say, this is definitely unintended behavior, but just by looking at the code, it looks like it's passing through the InitiateVote method the same way for both round-based and timer-based votes.
TF2.
Previously, everything worked fine.
But the next time the plugin stopped working properly.

cfg:
Code:
// 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: "1.000000"
sm_extendmap_roundstep "5"

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

// Block slots to prevent accidental votes.  Only applies when Voice Command style menus are in use.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_blockslots "1"

// Specifies if a 'Don't Change' option should be added to early votes
// -
// Default: "1"
// Minimum: "0.000000"
sm_mapvote_dontchange "1"

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

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

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

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

// Number of run off votes allowed each map.
// -
// Default: "1"
// Minimum: "0.000000"
sm_mapvote_maxrunoffs "1"

// Menu Style.  0 is the game's default, 1 is the older Valve style that requires you to press Escape to see the menu, 2 is the newer 1-9 button Voice Command style.  Style 2 is unavailable in some games.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_mapvote_menustyle "0"

// 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"

// Hold run off votes if winning choice has less than a certain percentage of votes
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_runoff "1"

// If winning choice has less than this percent of votes, hold a runoff
// -
// Default: "50"
// Minimum: "0.000000"
// Maximum: "100.000000"
sm_mapvote_runoffpercent "50"

// Warning time for runoff vote in seconds.
// -
// Default: "5.0"
// Minimum: "0.000000"
// Maximum: "30.000000"
sm_mapvote_runoffvotewarningtime "5.0"

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

// Specifies when to start the vote based on percents.
// -
// Default: "35.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
sm_mapvote_start_percent "35.0"

// Enable or Disable percentage calculations when to start vote.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_start_percent_enable "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. Use 0 on TF2 to start vote during bonus round time
// -
// Default: "2.0"
// Minimum: "0.000000"
sm_mapvote_startround "2.0"

// MapChooser Extended Version
// -
// Default: "1.6.3"
sm_mapvote_version "1.6.3"

// Specifies how long the mapvote should be available for.
// -
// Default: "20"
// Minimum: "5.000000"
sm_mapvote_voteduration "20"

// Warning time in seconds.
// -
// Default: "15.0"
// Minimum: "0.000000"
// Maximum: "60.000000"
sm_mapvote_warningtime "15.0"

// Location for the warning timer text. 0 is HintBox, 1 is Center text, 2 is Chat.  Defaults to HintBox.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_mapvote_warningtimerlocation "0"
Sinbad is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-24-2011 , 22:22   Re: MapChooser Extended
Reply With Quote #108

Quote:
Originally Posted by Sinbad View Post
TF2.
Previously, everything worked fine.
But the next time the plugin stopped working properly.

cfg:
Code:
// 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: "1.000000"
sm_extendmap_roundstep "5"

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

// Block slots to prevent accidental votes.  Only applies when Voice Command style menus are in use.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_blockslots "1"

// Specifies if a 'Don't Change' option should be added to early votes
// -
// Default: "1"
// Minimum: "0.000000"
sm_mapvote_dontchange "1"

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

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

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

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

// Number of run off votes allowed each map.
// -
// Default: "1"
// Minimum: "0.000000"
sm_mapvote_maxrunoffs "1"

// Menu Style.  0 is the game's default, 1 is the older Valve style that requires you to press Escape to see the menu, 2 is the newer 1-9 button Voice Command style.  Style 2 is unavailable in some games.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_mapvote_menustyle "0"

// 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"

// Hold run off votes if winning choice has less than a certain percentage of votes
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_runoff "1"

// If winning choice has less than this percent of votes, hold a runoff
// -
// Default: "50"
// Minimum: "0.000000"
// Maximum: "100.000000"
sm_mapvote_runoffpercent "50"

// Warning time for runoff vote in seconds.
// -
// Default: "5.0"
// Minimum: "0.000000"
// Maximum: "30.000000"
sm_mapvote_runoffvotewarningtime "5.0"

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

// Specifies when to start the vote based on percents.
// -
// Default: "35.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
sm_mapvote_start_percent "35.0"

// Enable or Disable percentage calculations when to start vote.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_mapvote_start_percent_enable "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. Use 0 on TF2 to start vote during bonus round time
// -
// Default: "2.0"
// Minimum: "0.000000"
sm_mapvote_startround "2.0"

// MapChooser Extended Version
// -
// Default: "1.6.3"
sm_mapvote_version "1.6.3"

// Specifies how long the mapvote should be available for.
// -
// Default: "20"
// Minimum: "5.000000"
sm_mapvote_voteduration "20"

// Warning time in seconds.
// -
// Default: "15.0"
// Minimum: "0.000000"
// Maximum: "60.000000"
sm_mapvote_warningtime "15.0"

// Location for the warning timer text. 0 is HintBox, 1 is Center text, 2 is Chat.  Defaults to HintBox.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_mapvote_warningtimerlocation "0"
I can't seem to duplicate this on my test server. I tested this by playing 3 consecutive maps with mp_maxrounds 3, and each time the vote came up after the first round ended as expected.

Does this only happen sometimes? Does it only happen in instances where the previous map had a runoff vote?

Also, what other plugins are running? You can get a list using sm plugins list in the server console.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-24-2011 , 22:28   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #109

Quote:
Originally Posted by XxSpawn View Post
Awesome, that worked beautifully. =D

If I can ask, are you going to implement the option to be able to start a round vote after the first round? Reason I ask is cause we want to setup our server to run on rounds instead of timelimits. But currently your mapchooser only allows a vote at the end of a complete round if there is no timelimit set. Since we have a losing team VIP scoreboard we can have only one or the other since they both show up in the same spot. So the option to have a map vote start after x amount of rounds would be superior. =D
Mapchooser will use timelimit or round limit as appropriate, but the current version counts from the end. So, if you put
Code:
sm_mapvote_startround "2.0"
it will start a vote 2 rounds before mp_maxrounds.

Obviously, if mp_maxrounds is 2, you should set sm_mapvote_startround "1.0"

The rounds counting from the start has been suggested before... but I'm currently spending my development time on the extension mentioned in my signature, which has taken months longer to code than I expected it to.

Oh, one last thing, the author of the losing team VIP scoreboard intentionally added a bit to block the scoreboard from showing if a vote is ongoing at my request... so that it doesn't make the vote menu close.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Sinbad
Junior Member
Join Date: Aug 2010
Location: Russia-Ekaterinburg
Old 07-25-2011 , 12:58   Re: MapChooser Extended
Reply With Quote #110

Quote:
Originally Posted by Powerlord View Post

Also, what other plugins are running? You can get a list using sm plugins list in the server console.
This plug-in error occurs every time when only one round before the end of the map.
If, however, is 10 minutes before the end of the map, everything works as it should.
Quote:
[SM] Listing 31 plugins:
01 "Anti-Flood" (1.3.7-dev) by AlliedModders LLC
02 "Very Basic High Ping Kicker" (1.3) by msleeper
03 "[TF2] gScramble Team Manager" (3.0.6) by Goerge
04 "Admin File Reader" (1.3.7-dev) by AlliedModders LLC
05 "Trade Chat" (1.2.1) by Luki
06 "TF2 Critvote" (1.0.0) by R-Hehl
07 "Basic Votes" (1.3.7-dev) by AlliedModders LLC
08 "MapChooser" (1.3.9-dev) by AlliedModders LLC
09 "Basic Info Triggers" (1.3.7-dev) by AlliedModders LLC
10 "Anti-Micspam" (0.5) by FLOOR_MASTER and Bor3dGaming.com
11 "Basic Chat" (1.3.7-dev) by AlliedModders LLC
12 "SuperLogs: TF2" (2.0.26) by Thomas "CmptrWz" Berezansky & psychonic
13 "AFK Manager" (3.2.9) by Rothgar
14 "Basic Commands" (1.3.7-dev) by AlliedModders LLC
15 "Players Votes" (1.5.0) by The Resident, pZv!
16 "Prop Bonus Round" (1.3) by retsam
17 "Nextmap" (1.3.7-dev) by AlliedModders LLC
18 "HLstatsX CE Ingame Plugin" (1.6.13) by psychonic
19 "Admin Help" (1.3.7-dev) by AlliedModders LLC
20 "SourceBans" (1.4.7) by InterWave Studios Development Team
21 "TF Max Players" (4. by Nican132,cadavor,JameLess,Thraka
22 "Client Preferences" (1.3.7-dev) by AlliedModders LLC
23 "Intel Timer" (1.1) by EnigmatiK
24 "Spray Tracer" (5. by Nican132, CptMoore, Lebson506th
25 "Basic Comm Control" (1.3.7-dev) by AlliedModders LLC
26 "Sound Commands" (1.3.7-dev) by AlliedModders LLC
27 "Win panel for losing team" (1.2) by Reflex
28 "Advertisements" (0.5.5) by Tsunami
29 "Player Commands" (1.3.7-dev) by AlliedModders LLC
30 "Admin Menu" (1.3.7-dev) by AlliedModders LLC
31 "Admin List" (1.2) by Fredd

Last edited by Sinbad; 07-25-2011 at 13:02.
Sinbad is offline
Reply


Thread Tools
Display Modes

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 13:18.


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