AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   Mapchooser Extended! (https://forums.alliedmods.net/showthread.php?t=124280)

Zuko 04-14-2010 16:24

Mapchooser Extended!
 
3 Attachment(s)
Please use newer (and better) version developed by Powerlord
http://forums.alliedmods.net/showthread.php?t=156974



As many people are looking or asking about additional features (on IRC and forums) for MapChooser. I decided to share with you my modified version.
Below is a list of new features:

  • Sounds at the start and end of the vote
  • Players are warned before the vote (by countdown)
  • Plugin displays progress of vote
  • Custom maps are marked on the vote menu*
  • You can lock slots in vote menu
  • Additional vote when none map not reach the required number of votes
  • Percentage calculation when to start voting

Changelog:
  • Version 1.3 (14.04.2010)
    • First Public Release
  • Version 1.4 (07.03.2011) by Powerlord
    • Fixed bugs with vote countdown. The announcer may count a little fast from time to time, but she'll no longer skip or repeat numbers.
    • Changed how vote slot blocking works. Slots 1-3 are always blocked, maps start filling at position 4. This fixes issues with random map selection when no one votes with only 2-3 maps showing, including with runoff votes.
    • Fixed some issues with English translation file, particularly where % signs were not showing.
    • Updated colors.inc to 1.0.5, the latest version on Allied Modders. Now has support for new colors, such as olive.
    • Added HL2 sounds
  • Version 1.4.1 (25.03.2011) by Powerlord
    • Fixed some issues with KillTimer being called on invalid timer handles.
    • Included TF2 Sounds
    • Included example config files to use the other sound sets

Installation:
  • Unpack archive to game root directory eg. orangebox/tf
  • Plugin will automatically disable original MapChooser
  • If Upgrading, you only need the .smx file. The translation file is also recommended, but is not a required update.
Known bugs:
  • The sm_mapvote_version cvar is not automatically updated... but it's fairly redundant anyway.
  • The translations file requires you to enter %%%% to display a single percent. This is due to how colors.inc processes the messages.
Future plans: (by Powerlord)
  • Move official maps into a separate file so that the plugin doesn't have to be recompiled for every new map Valve adds.
  • Possibly make the number of maps in runoff vote its own cvar.
New ConVars:
  • sm_mapvote_runoff
    • Default: "1"
    • Hold run of votes if winning choice is less than a certain margin
  • sm_mapvote_runoffpercent
    • Default: "50"
    • If winning choice has less than this percent of votes, hold a runoff
  • sm_mapvote_blockslots
    • Default: "1"
    • Block slots to prevent stupid votes.
  • sm_mapvote_maxrunoffs
    • Default: "1"
    • Number of run off votes allowed each map.
  • sm_mapvote_start_percent_enable
    • Default: "0"
    • Enable or Disable percentage calculations when to start vote.
  • sm_mapvote_start_percent
    • Default: "35.0"
    • Specifies when to start the vote based on percents.
  • sm_mapvote_printvotes
    • Default: "0"
    • Should the option that a player vote on get printed (1 - yes print player votes, 0 - don't print).
  • sm_mapvote_showvotes
    • Default: "3"
    • "How many vote options the hint box should show. 0 will disable it.
  • sm_mapvote_enablesounds
    • Default: "1"
    • Enable sounds to be played during vote start and end
  • sm_mapvote_sound_votestart
    • Default: "sourcemod/mapchooser/startyourvoting.mp3"
    • Sound that is being played when a vote starts.
  • sm_mapvote_sound_voteend
    • Default: "sourcemod/mapchooser/endofvote.mp3"
    • Sound that is being played when a vote ends.
  • sm_mapvote_warningtime
    • Default: "15.0"
    • Warning time in seconds.
  • sm_mapvote_enablewarningcountersounds
    • Default: "1"
    • Enable sounds to be played during warning counter
  • sm_mapvote_runoffvotewarningtime
    • Default: "5.0"
    • Warning time for runoff vote in seconds.
  • sm_mapvote_sound_warning
    • Default: "vo/announcer_warning.wav"
    • Sound file for warning start.
  • sm_mapvote_warningsound_one
    • Default: "vo/announcer_ends_1sec.wav"
    • Sound file for warning counter: one.
  • sm_mapvote_warningsound_two
    • Default: "vo/announcer_ends_2sec.wav"
    • Sound file for warning counter: two.
  • sm_mapvote_warningsound_three
    • Default: "vo/announcer_ends_3sec.wav"
    • "Sound file for warning counter: three.
  • sm_mapvote_warningsound_four
    • Default: "vo/announcer_ends_4sec.wav"
    • Sound file for warning counter: four.
  • sm_mapvote_warningsound_five
    • Default: "vo/announcer_ends_5sec.wav"
    • Sound file for warning counter: five.
  • sm_mapvote_warningsound_six
    • Default: "vo/announcer_ends_6sec.wav"
    • Sound file for warning counter: six.
  • sm_mapvote_warningsound_seven
    • Default: "vo/announcer_ends_7sec.wav"
    • Sound file for warning counter: seven.
  • sm_mapvote_warningsound_eight
    • Default: "vo/announcer_ends_8sec.wav"
    • Sound file for warning counter: eight.
  • sm_mapvote_warningsound_nine
    • Default: "vo/announcer_ends_9sec.wav"
    • Sound file for warning counter: nine.
  • sm_mapvote_warningsound_ten
    • Default: "sourcemod/mapchooser/tf2/tf_10s.mp3"
    • Sound file for warning counter: ten.
  • sm_mapvote_warningsound_twenty
    • Default: "sourcemod/mapchooser/tf2/tf_20s.mp3"
    • Sound file for warning counter: twenty.
  • sm_mapvote_warningsound_thirty
    • Default: "sourcemod/mapchooser/tf2/tf_30s.mp3"
    • Sound file for warning counter: thirty.
  • sm_mapvote_warningsound_sixty
    • Default: "sourcemod/mapchooser/tf2/tf_60s.mp3"
    • Sound file for warning counter: sixty.
  • sm_mapvote_warningsound_runoffvotestart
    • Default: "vo/announcer_do_not_fail_this_time.wav"
    • Sound file for run off vote start.

Credits:
* - For Team Fortress 2, Counter-Strike: Source, Day of Defeat: Source and Half-Life 2: Deathmatch

gaissi 04-15-2010 01:09

Re: Mapchooser Extended!
 
Nice plugin...

I have one request:

Look at this old unapproved plugin:

http://forums.alliedmods.net/showthread.php?t=56714

Quote:

sm_mapchooser_file
  • Specify a map list to use for MapChooser. This is relative to the Sourcemod folder
  • Default is "configs/maps.ini" (That is, addons/sourcemod/configs/maps.ini)

This would be useful for these server which use several maplists... So you can set at the evening another maplist file as in the morning without a server restart....
In the moment you must go to the server change the path in the maplist.cfg and restart the server. That's not very comfortable.

I hope you understand now what i mean..^^

Greetings gaissi

Kudjo 04-15-2010 03:02

Re: Mapchooser Extended!
 
[0] Line 298, mapchooser_extended/VoteWarning.sp::WarningHintMsg()
L 04/15/2010 - 10:49:18: [SM] Native "KillTimer" reported: Invalid timer handle b500ad (error 1)
L 04/15/2010 - 10:49:18: [SM] Displaying call stack trace for plugin "mapchooser_extended.smx":
L 04/15/2010 - 10:49:18: [SM] [0] Line 298, mapchooser_extended/VoteWarning.sp::WarningHintMsg()
L 04/15/2010 - 10:49:19: [SM] Native "KillTimer" reported: Invalid timer handle b500ad (error 3)
L 04/15/2010 - 10:49:19: [SM] Displaying call stack trace for plugin "mapchooser_extended.smx":

Zuko 04-15-2010 05:29

Re: Mapchooser Extended!
 
gaissi: maybe one day ;]

Kudjo: I don't know how you did it, because I use this plugin without any errors for long time.

shustas 04-15-2010 09:39

Re: Mapchooser Extended!
 
Another attempt to make mapchooser act like mani? Hope its better than previous unapproved ones

Zuko 04-15-2010 11:50

Re: Mapchooser Extended!
 
Quote:

Originally Posted by shustas (Post 1151002)
Hope its better than previous unapproved ones

Try it! :grrr:

BTW. I don't know how it looks in Mani ;]

gaissi 04-15-2010 12:41

Re: Mapchooser Extended!
 
Another request:

Can you set a command that you can make a custom vote which the possibility to change the map at the end of round, at the end of map or immediately...

greetings

mats 04-18-2010 06:38

Re: Mapchooser Extended!
 
With this plugin installed rtv is not working? Can you make it work?

Sillium 04-19-2010 02:03

Re: Mapchooser Extended!
 
Is it possible to disable some or all sounds? Or can I just leave the sound cvars empty?

Zuko 04-19-2010 06:12

Re: Mapchooser Extended!
 
You can leave cvars empty.

Sillium 04-19-2010 06:48

Re: Mapchooser Extended!
 
Nice :-)

And I second the RTV-Request ;-)

FrozenHaxor 04-20-2010 09:43

Re: Mapchooser Extended!
 
Quote:

Originally Posted by Sillium (Post 1154795)
And I second the RTV-Request ;-)

Same ;]

xiloid 04-21-2010 07:39

Re: Mapchooser Extended!
 
Damn i need RTV too :)

Zydu 04-22-2010 10:19

Re: Mapchooser Extended!
 
RTV is a must! Nominate too ;)

Lazarus 04-22-2010 11:53

Re: Mapchooser Extended!
 
I have a perfect idea wich could be implemented in your plugin.
It's an option to choose maps to endmpa vote from 2 maplists.
Once from maplist1.txt, once from maplist2.txt. If people currently playing map from maplist1.txt hen in vote should be maps from maplist2.txt.
Example:
maplist1= standard maps
maplist2= custom maps
people are playing de_dust2, on mapend there is a vote only for custom maps.
people choose= de_rats. They are playing it and on map end there is a vote only for standard maps.

What do you think about it?
I tried to do that but I dont have such skill to do that.

Zydu 04-23-2010 05:18

Re: Mapchooser Extended!
 
Are you planning to add map grouping from this plugin?

Zuko 04-23-2010 07:34

Re: Mapchooser Extended!
 
Quote:

Originally Posted by Zydu (Post 1157942)
Are you planning to add map grouping from this plugin?

no

Zydu 04-23-2010 12:25

Re: Mapchooser Extended!
 
Quote:

Originally Posted by Zuko (Post 1158028)
no

No to lipa stary :P

This could be realy useful especialy when this old mapvote plugin is no supported any more, and a lot of people would like to be able to create a vote with ex. 4 slots of random custom maps from maplist1 and 2 slots for random custom maps from maplist2.

It could be also connected with Lazarus idea.

tejeskifly 04-23-2010 16:10

Re: Mapchooser Extended!
 
pls make rtv and nominate :)

Lazarus 04-24-2010 06:24

Re: Mapchooser Extended!
 
On sm. version 1.3.1 rtv and nominate works perfect for me.

This plugin have very big potential. It could be a base to rebuild sm vote system, wich is poor in my opinion.

daleGEND 04-24-2010 12:34

Re: Mapchooser Extended!
 
Good plugin, few bugs though:

1. The % sign shows twice
2. If the map name is long it gets cut off
3. Hint box spazzes out while voting is taking place
4. At the end it calculates the number of votes wrong, for instance (77 of 9 votes received) seems odd.
5. RTV does not work right
6. The mapchooser seems to pop-up too soon...

tejeskifly 04-24-2010 15:53

Re: Mapchooser Extended!
 
hmm i upgrade to sm 1.3 and rtv work fine :)

can you do to en of the round change the map? (simple mapvote, what i make from admin menu) Do not immediately.

i know my english is bad :D

xiloid 04-27-2010 00:58

Re: Mapchooser Extended!
 
Quote:

Originally Posted by tejeskifly (Post 1159489)
hmm i upgrade to sm 1.3 and rtv work fine :)

OMG! How you do that???
Server console:
Code:

L 04/27/2010 - 07:47:56: [mapchooser_extended.smx] plugins/mapchooser.smx was unloaded and moved to plugins/disabled/mapchooser.smx
[SM] Plugin MapChooser unloaded successfully.
Adding master server 216.207.205.98:27011
Adding master server 216.207.205.99:27011
Connection to Steam servers successful.
  VAC secure mode is activated.
***next im print to console:***
sm plugins list
***list of loaded plugns there***
Load Errors:
Rock The Vote: Depends on plugin: mapchooser.smx

So as you can see, rockthevote.smx cant be loaded, because mapchooser_extended.smx unload standart mapchooser.smx to "disable" folder. How do you load RTV its a big question :o

Zuko 04-27-2010 07:47

Re: Mapchooser Extended!
 
RTV and Nominations works for me
eg. (from test server)

Code:

sm plugins list
[SM] Listing 21 plugins:

  02 "Nextmap" (1.3.2-dev) by AlliedModders LLC
  03 "Extended Mapvote" (1.3) by Zuko, SM Community and AlliedModders LLC

  08 "Rock The Vote" (1.3.2-dev) by AlliedModders LLC

  18 "Map Nominations" (1.3.2-dev) by AlliedModders LLC


tejeskifly 04-27-2010 08:01

Re: Mapchooser Extended!
 
Quote:

Originally Posted by xiloid (Post 1161926)
OMG! How you do that???
Server console:
Code:

L 04/27/2010 - 07:47:56: [mapchooser_extended.smx] plugins/mapchooser.smx was unloaded and moved to plugins/disabled/mapchooser.smx
[SM] Plugin MapChooser unloaded successfully.
Adding master server 216.207.205.98:27011
Adding master server 216.207.205.99:27011
Connection to Steam servers successful.
  VAC secure mode is activated.
***next im print to console:***
sm plugins list
***list of loaded plugns there***
Load Errors:
Rock The Vote: Depends on plugin: mapchooser.smx

So as you can see, rockthevote.smx cant be loaded, because mapchooser_extended.smx unload standart mapchooser.smx to "disable" folder. How do you load RTV its a big question :o

i don't know, try copy the mapchhoser.smx, nominate.smx, and rockthevote.smx, in plugins folder. If you use sm 1.2, download, the sm 1.3 and copy the smx from 1.3, in your plugins folder. You can see, its work. 84.2.39.209:27045

xiloid 04-28-2010 01:11

Re: Mapchooser Extended!
 
OMG, i miss updates of MM and SM :D
Everything works fine! Thanks guys!!

xiloid 04-29-2010 01:09

Re: Mapchooser Extended!
 
Hello to all!
One simple question.
Im update Sm and MM yesterday, and add RTV plug-in to the other servers plug-ins. When players RockTheVote some map, map change, but not the map of players choose, just randomly to other map. Even if I change the map manually, there is a chance that the map changes to other one, randomly map... Any ideas?

Zuko 04-29-2010 04:59

Re: Mapchooser Extended!
 
ok, I must test this

tejeskifly 04-30-2010 21:16

Re: Mapchooser Extended!
 
Quote:

Originally Posted by xiloid (Post 1164100)
Hello to all!
One simple question.
Im update Sm and MM yesterday, and add RTV plug-in to the other servers plug-ins. When players RockTheVote some map, map change, but not the map of players choose, just randomly to other map. Even if I change the map manually, there is a chance that the map changes to other one, randomly map... Any ideas?

try disable randomcycle

Gonz 05-01-2010 00:35

Re: Mapchooser Extended!
 
Nice plugin!!

could you set nextmap in your script with ma_setnextmap too?

Then we could use this plugin on our server, because we have mani running for some things.

Or can someone tell me where i have to add ma_setnextmap in the script?

Thanks

Zydu 05-01-2010 15:39

Re: Mapchooser Extended!
 
Quote:

Originally Posted by Gonz (Post 1166288)
Nice plugin!!

could you set nextmap in your script with ma_setnextmap too?

Then we could use this plugin on our server, because we have mani running for some things.

Or can someone tell me where i have to add ma_setnextmap in the script?

Thanks

Use sm_setnextmap.

Gonz 05-01-2010 16:14

Re: Mapchooser Extended!
 
As i said before, we have mani running also on our server.

with sm_setnextmap mani will not reconize which map has won the vote an change to wrong map.

If the plugin could set ma_setnextmap it would work with mani and sourcemod running on our server,

but the question is: how to scrpit this?

Dont tell me: dont use mani

Zuko 05-02-2010 04:32

Re: Mapchooser Extended!
 
Gonz, edit line 156 in mapchooser_extended.sp (or add new below)

PHP Code:

RegAdminCmd("ma_setnextmap"Command_SetNextmapADMFLAG_CHANGEMAP"ma_setnextmap <map>"); 

and probably you should disable this command in mani

lexantis 05-02-2010 05:47

Re: Mapchooser Extended!
 
Does this plugin work with L4D2 too? Thx

Zuko 05-02-2010 05:51

Re: Mapchooser Extended!
 
probably yes, but why?

tejeskifly 05-02-2010 10:35

Re: Mapchooser Extended!
 
hmm, sometimes,after if i make map vote, and the server change map, on the next map, in a first round, server change map in other random map, but i don't know why.

console:
Code:

L 05/02/2010 - 16:28:06: [SM] Changed map to "awp_rooftops_css"
L 05/02/2010 - 16:28:06: [VIP] LevelShutdown() called
L 05/02/2010 - 16:28:06: [mapchooser_extended.smx] Starting map vote because outside request
L 05/02/2010 - 16:28:06: [mapchooser_extended.smx] Voting for next map has started.
L 05/02/2010 - 16:28:06: [META] Loaded 0 plugins (2 already loaded)
L 05/02/2010 - 16:28:06: [VIP] LevelShutdown() called
L 05/02/2010 - 16:28:06: [META] Loaded 0 plugins (2 already loaded)
L 05/02/2010 - 16:28:06: [mapchooser_extended.smx] No votes received, randomly selected as_italy as nextmap.


Gonz 05-03-2010 14:21

Re: Mapchooser Extended!
 
Quote:

Originally Posted by Zuko (Post 1167525)
Gonz, edit line 156 in mapchooser_extended.sp (or add new below)

PHP Code:

RegAdminCmd("ma_setnextmap"Command_SetNextmapADMFLAG_CHANGEMAP"ma_setnextmap <map>"); 

and probably you should disable this command in mani

Thanks Zuko but thats not working, because SM is responding to ma_setnextmap, so mani is still not recognizing nextmap, silly

why does sm respond to a ma command?!?

Greetz
Gonz

xiloid 05-05-2010 00:49

Re: Mapchooser Extended!
 
Quote:

Originally Posted by tejeskifly (Post 1166182)
try disable randomcycle

I see you have same problem? :| Randomcycle not guilty.

Cep}|{ 05-06-2010 09:12

Re: Mapchooser Extended!
 
WTF ?
Quote:

L 05/06/2010 - 13:11:17: [SM] Displaying call stack trace for plugin "mapchooser_extended.smx":
L 05/06/2010 - 13:11:17: [SM] [0] Line 298, mapchooser_extended/VoteWarning.sp::WarningHintMsg()
L 05/06/2010 - 13:11:18: [SM] Native "KillTimer" reported: Invalid timer handle cbd605a4 (error 3)
L 05/06/2010 - 13:11:18: [SM] Displaying call stack trace for plugin "mapchooser_extended.smx":
L 05/06/2010 - 13:11:18: [SM] [0] Line 298, mapchooser_extended/VoteWarning.sp::WarningHintMsg()
L 05/06/2010 - 13:11:19: [SM] Native "KillTimer" reported: Invalid timer handle cbd605a4 (error 3)
L 05/06/2010 - 13:11:19: [SM] Displaying call stack trace for plugin "mapchooser_extended.smx":
L 05/06/2010 - 13:11:19: [SM] [0] Line 298, mapchooser_extended/VoteWarning.sp::WarningHintMsg()
L 05/06/2010 - 13:11:20: [SM] Native "KillTimer" reported: Invalid timer handle cbd605a4 (error 3)
L 05/06/2010 - 13:11:20: [SM] Displaying call stack trace for plugin "mapchooser_extended.smx":
L 05/06/2010 - 13:11:20: [SM] [0] Line 298, mapchooser_extended/VoteWarning.sp::WarningHintMsg()

Molli 05-12-2010 12:22

Re: Mapchooser Extended!
 
Is this plugin stable?


All times are GMT -4. The time now is 22:56.

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