Raised This Month: $134 Target: $400
 33% 

Custom Votes v0.5.6 (1/07)


Post New Thread Reply   
 
Thread Tools Display Modes
chundo
Senior Member
Join Date: May 2008
Old 06-20-2008 , 04:24   Re: Custom Votes v0.4.1 (6/9)
Reply With Quote #61

New version attached - if some of you brave ones could help test it a little before I release the next version, I would appreciate it.

Fixes/features since 0.4:
  • sm_cvote is now an admin command. Users must now use !votemenu or vote chat triggers. Admins using chat triggers are treated the same as any other user; to launch a vote immediately they should use sm_cvote <votename> or the Voting Commands menu. Only votes that users can initiate directly (determined by "admin" vote parameter) will show up in !votemenu; votes requiring chat triggers don't appear there (yet).
  • Deprecated "triggers" value in config file, added "triggers" section (still backwards-compatible). See playervotes.vote.cfg for an example. Available trigger parameters:
  • "command" - the chat trigger keyword
  • "delay" - equivalent to previous "playerdelay" parameter, which has been deprecated.
  • "notice" - the chat message to display when a user types a trigger (only used if multiple requests are required to start a vote). "%u" is replaced with the player name. You can also use parameter and expression replacement. If omitted, will default to vote title (not desirable except for chat-type votes.)
  • "count" - the minimum number of players that need to request a vote before it is launched.
  • "percent" - the minimum percentage of players that need to request a vote before it is launched. If this number evaluates to be larger than "count", it is used instead.
  • Chat triggers ignore the "admin" vote parameter. It provides a group-consensus alternative to requiring an admin to launch it.
  • Added playervotes.vote.cfg to the default config directory, and moved basevotes/funvotes to "disabled" directory since most are duplicates of existing votes (the few new votes were moved into core.vote.cfg).
  • Two new parameter types: "yesno" and "onoff". See "votealltalk" in playervotes.vote.cfg for an example.
  • New vote type: "chat". If this vote type is used, you must define a "trigger" section, and users must vote by typing the trigger in chat. Once the trigger threshold is reached, the command is automatically executed. See playervotes.vote.cfg for examples.
  • Added "sm_cvote_reload" command to check for config changes and add any new votes. Also executed on map change.
  • Added "sm_cvote_resetonmapchange" CVAR which clears all pending votes on map change (as opposed to retaining the status of chat-votes like votekick, voteban, etc). Defaults to 0.
  • Fixed vote status panel (sm_cvote_showstatus = 1) blocking weapon changes until it disappeared.
  • If users close the vote status panel with "0", it will not reappear as new votes come in.
  • Allows votes targetting users that have already disconnected (useful for voteban/etc.) A vote targetting the user must have been started before they disconnect, however. Disconnected targets should show up at the end of the player menu with an asterisk (*) before their name.
In theory this version has all the changes needed to support votekick / voteban from PlayersVotes (thanks to help from The Resident), and all existing base/funvotes. It also can support votemap easily enough, with the exception that it wouldn't have an "extend map" option.

If this tests well enough on some live servers I'll roll a 0.5 for release in the next couple days.

EDIT: posted 0.5 to main post, removed attachment.
__________________

Last edited by chundo; 06-22-2008 at 18:26. Reason: Removed attachment, posted to main post.
chundo is offline
willy1234x1
Senior Member
Join Date: Jun 2008
Old 06-20-2008 , 04:53   Re: Custom Votes v0.4.1 (6/9)
Reply With Quote #62

Did my config work with this one? Or was I doing something wrong?
willy1234x1 is offline
chundo
Senior Member
Join Date: May 2008
Old 06-20-2008 , 04:57   Re: Custom Votes v0.4.1 (6/9)
Reply With Quote #63

I can only guess that you had a conflicting configuration file somewhere. The original burn vote configuration I released used a "groupplayer" parameter (like was displayed in your screenshot), while your config uses "player". It seems like its loading both, but the first is taking precedence.

In any case there were a lot of trigger inconsistencies that have been fixed. Try it out.
__________________
chundo is offline
willy1234x1
Senior Member
Join Date: Jun 2008
Old 06-20-2008 , 05:00   Re: Custom Votes v0.4.1 (6/9)
Reply With Quote #64

Sweet dude thanks for the update and on such a good day I'm learning how to make some plugins too now as well but right now I'm waiting for putty to finish updating my server
willy1234x1 is offline
willy1234x1
Senior Member
Join Date: Jun 2008
Old 06-20-2008 , 06:56   Re: Custom Votes v0.4.1 (6/9)
Reply With Quote #65

Works like a charm, I tested out my votemute works beautifully as do voteburn/slay but I don't have those two enabled ingame I'm getting feedback from my community to see if they like them they're easier to abuse I guess. I planned them to be one for asshats that don't get it and the other for campers(you need a fire you don't want hypothermia ) Great job Chundo.
willy1234x1 is offline
chundo
Senior Member
Join Date: May 2008
Old 06-22-2008 , 18:27   Re: Custom Votes v0.5 (6/22)
Reply With Quote #66

0.5 released in main post.
__________________
chundo is offline
Jamster
Veteran Member
Join Date: Jun 2008
Old 06-22-2008 , 20:18   Re: Custom Votes v0.5 (6/22)
Reply With Quote #67

Thanks. Though it seems none of my votes work any more. ;_;
You can actually initiate the vote fine and people can vote fine but it WON'T change the cvar.
Maybe my config is setup wrong, I GATHER I got it right.

Here's the error log:
Code:
L 06/22/2008 - 16:59:57: SourceMod error session started
L 06/22/2008 - 16:59:57: Info (map "cp_well") (file "errors_20080622.log")
L 06/22/2008 - 16:59:57: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 06/22/2008 - 16:59:57: [SM] Native "VFormat" reported: Language phrase "Option Won The Vote" not found
L 06/22/2008 - 16:59:57: [SM] Debug mode is not enabled for "customvotes.smx"
L 06/22/2008 - 16:59:57: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 35 on
L 06/22/2008 - 17:03:18: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 06/22/2008 - 17:03:18: [SM] Native "VFormat" reported: Language phrase "Option Won The Vote" not found
L 06/22/2008 - 17:03:18: [SM] Debug mode is not enabled for "customvotes.smx"
L 06/22/2008 - 17:03:18: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 35 on
L 06/22/2008 - 17:14:03: Error log file session closed.
L 06/22/2008 - 17:14:04: SourceMod error session started
L 06/22/2008 - 17:14:04: Info (map "cp_dustbowl") (file "errors_20080622.log")
L 06/22/2008 - 17:14:04: [SM] Native "RemoveFromArray" reported: Invalid index 1 (count: 0)
L 06/22/2008 - 17:14:04: [SM] Debug mode is not enabled for "customvotes.smx"
L 06/22/2008 - 17:14:04: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 35 on
L 06/22/2008 - 17:59:14: Error log file session closed.
L 06/22/2008 - 17:59:15: SourceMod error session started
L 06/22/2008 - 17:59:15: Info (map "pl_goldrush") (file "errors_20080622.log")
L 06/22/2008 - 17:59:15: [SM] Native "RemoveFromArray" reported: Invalid index 1 (count: 0)
L 06/22/2008 - 17:59:15: [SM] Debug mode is not enabled for "customvotes.smx"
L 06/22/2008 - 17:59:15: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 35 on
and my config is attched.

Thanks.

I am on Windows, TF2, SM 1.0.x svn latest.
Attached Files
File Type: cfg main.vote.cfg (1.1 KB, 169 views)
Jamster is offline
chundo
Senior Member
Join Date: May 2008
Old 06-22-2008 , 22:51   Re: Custom Votes v0.5 (6/22)
Reply With Quote #68

I forgot to update the translation file. The missing phrase is displayed just before the vote command is executed, so that error is blocking any action from being taken after a vote.

The "RemoveFromArray" error - I'm guessing this happens immediately on map change? I updated the plugin to fix what I think the problem was - but can you enable debug mode on the plugin so I can verify the line number I think it's happening on?

Please reinstall again from the main post, as I've updated the .sp and the translation file. You'll also have to reload sourcemod, since it caches the translation files and doesn't reload them even if you reload the Custom Votes plugin.
__________________

Last edited by chundo; 06-22-2008 at 22:54.
chundo is offline
willy1234x1
Senior Member
Join Date: Jun 2008
Old 06-22-2008 , 23:53   Re: Custom Votes v0.5 (6/22)
Reply With Quote #69

Hey umm might want to add a download link to the new version.
willy1234x1 is offline
chundo
Senior Member
Join Date: May 2008
Old 06-23-2008 , 00:34   Re: Custom Votes v0.5 (6/22)
Reply With Quote #70

Guess the uploads didn't get saved. Should be back again.
__________________

Last edited by chundo; 06-23-2008 at 00:41.
chundo 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 06:21.


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