Raised This Month: $32 Target: $400
 8% 

Custom Votes v0.5.6 (1/07)


Post New Thread Reply   
 
Thread Tools Display Modes
flubber
Senior Member
Join Date: Oct 2007
Old 06-24-2008 , 10:12   Re: Custom Votes v0.5 (6/22)
Reply With Quote #81

I got a problem with the votescramble include in the zipp file. I'd just modified it to test with 1 vote needed since i'm alone on the server. The vote is working great but the command never launches.
Code:
    "scrambleteams"
    {
        "title"        "Scramble teams?"
        "type"        "confirm"
        "percent"    "50"
        "votes"        "1"
        "command"    "mp_scrambleteams 1"
        "trigger"
        {
            "command"    "votescramble"
            "notice"    "%u wants to scramble teams."
            "percent"    "50"
            "count"        "1"
        }
    }
flubber is offline
chundo
Senior Member
Join Date: May 2008
Old 06-24-2008 , 10:14   Re: Custom Votes v0.5 (6/22)
Reply With Quote #82

Need to see logs.
__________________
chundo is offline
flubber
Senior Member
Join Date: Oct 2007
Old 06-24-2008 , 10:15   Re: Custom Votes v0.5 (6/22)
Reply With Quote #83

Nothing special in the log :
Code:
L 06/24/2008 - 16:13:19: [psychostats_threaded_uni.smx] Psychostats calculate stats by worldid
L 06/24/2008 - 16:13:35: [customvotes.smx] [CSSCPC]Flubber<2><STEAM_0:1:5xxxxx4><> initiated a scrambleteams vote
L 06/24/2008 - 16:13:35: [customvotes.smx] "Yes" (1) won with 100% of the vote (1 votes)
Nothing in error log
flubber is offline
chundo
Senior Member
Join Date: May 2008
Old 06-24-2008 , 10:39   Re: Custom Votes v0.5.1 (6/24)
Reply With Quote #84

That was a truly stupid error. It was looking for "commmand" (with 3 m's). Updated main post with new version.
__________________
chundo is offline
flubber
Senior Member
Join Date: Oct 2007
Old 06-24-2008 , 21:46   Re: Custom Votes v0.5.1 (6/24)
Reply With Quote #85

Got two other problems (i've post my cfg, maybe i made a mistake while creating it):
- First people who are not admin or in the reserved slot list (adminsimple.cfg (i've even test with no flag just the name in the list : "STEAM_0:1:2xxxxxx" "" /username) can't launch votekick voteban or votedrug, but they can launch every other vote.
- Secondly for my alltalk vote, i probably made a mistake, because i don't have a second vote after 4people enter votealltalk it's immediatly activated.
Code:
"Votes"
{
    "voteban"
    {
        "title"        "Ban #1 for 30 minutes?"
        "type"        "chat"
        "command"    "sm_ban #1 30 \"Banned by vote.\""
        "percent"    "51"
        "trigger"
        {
            "command"    "voteban"
            "notice"    "%u voted to ban #1"
            "percent"    "70"
            "count"        "4"
        }
        "params"
        {
            "1"            "player"
        }
    }
    "votekick"
    {
        "title"        "Kick #1?"
        "type"        "chat"
        "command"    "sm_kick #1 \"Kicked by vote.\""
        "percent"    "60"
        "trigger"
        {
            "command"    "votekick"
            "notice"    "%u voted to kick #1"
            "percent"    "51"
            "count"        "4"
        }
        "params"
        {
            "1"            "player"
        }
    }
    "votealltalk"
    {
        "title"        "Turn alltalk #1?"
        "type"        "chat"
        "command"    "sv_alltalk #1"
        "percent"    "51"
        "trigger"
        {
            "command"    "votealltalk"
            "notice"    "%u wants to turn alltalk #1"
            "percent"    "51"
        }
        "params"
        {
            "1"            "onoff"
        }
    }
    "votemap"
    {
        "title"        "Change map to #1?"
        "type"        "chat"
        "command"    "changelevel #1"
        "percent"    "51"
        "trigger"
        {
            "command"    "votemap"
            "notice"    "%u wants to change the map to #1"
            "delay"        "300"
            "percent"    "51"
            "count"        "4"
        }
        "params"
        {
            "1"        "mapcycle"
        }
    }
    "votedrug"
    {
        "title"        "Drug #1?"
        "type"        "chat"
        "command"    "sm_drug #1 \"Drugged by vote.\""
        "percent"    "51"
        "trigger"
        {
            "command"    "votedrug"
            "notice"    "%u voted to drug #1"
            "percent"    "51"
            "count"        "4"
        }
        "params"
        {
            "1"            "player"
        }
    }
    "scrambleteams"
    {
        "title"        "Scramble teams?"
        "type"        "confirm"
        "percent"    "51"
        "votes"        "4"
        "command"    "mp_scrambleteams 1"
        "trigger"
        {
            "command"    "votescramble"
            "notice"    "%u wants to scramble teams."
            "percent"    "51"
            "count"        "4"
        }
    }
    "votesetnext"
    {
        "title"        "Change nextmap to #1?"
        "type"        "chat"
        "command"    "sm_setnextmap #1"
        "percent"    "51"
        "trigger"
        {
            "command"    "votenextmap"
            "notice"    "%u wants to change the nextmap to #1"
            "percent"    "51"
            "count"        "4"
        }
        "params"
        {
            "1"        "mapcycle"
        }
    }
    "gonext"
    {
        "title"        "Go to the next map?"
        "type"        "confirm"
        "percent"    "51"
        "votes"        "4"
        "command"    "sm_change2nextmap"
        "trigger"
        {
            "command"    "gonext"
            "notice"    "%u wants to change to the next map."
            "percent"    "51"
            "count"        "4"
        }
    }
}
flubber is offline
chundo
Senior Member
Join Date: May 2008
Old 06-24-2008 , 22:58   Re: Custom Votes v0.5.1 (6/24)
Reply With Quote #86

1) I'll test your config - I did most of my testing as an admin, so it may be a bug that didn't show up on my server. Do players get a server response in chat? Is there anything in your logs?
2) "chat" type votes don't trigger a menu vote after they reach the trigger threshold, they just execute the command - if you want it to work the way you're talking about, change the vote type to "confirm". Is it 4 votes no matter how many people are online though? 'Cause that shouldn't be happening with your config, it should be 51% of online players.

Also, I'm guessing from your config that you're editing the playervotes.vote.cfg file. It might be better to add custom votes to a different config file, so it doesn't get overwritten when you upgrade.
__________________

Last edited by chundo; 06-24-2008 at 23:36.
chundo is offline
crazychicken
Senior Member
Join Date: Mar 2008
Old 06-25-2008 , 01:59   Re: Custom Votes v0.5.1 (6/24)
Reply With Quote #87

k so ive got most of it working but one problem i have is the vote that comes up is just a yes or no then 1 or 2 to choose. there is no description as to what the vote is about

Code:
"Votes"
{


    "Jetpacks"

    {
        "title"        "Turn jetpacks #1?"
        "type"        "chat"
        "command"    "sm_jetpack #1"
        "trigger"
        {
            "command"    "votejetpacks"
            "notice"    "%u wants to turn jetpacks #1"
            "percent"    "70"
        }
        "params"
        {
            "1"            "onoff"
        }
    }
}
__________________

Last edited by crazychicken; 06-25-2008 at 02:02.
crazychicken is offline
willy1234x1
Senior Member
Join Date: Jun 2008
Old 06-25-2008 , 03:14   Re: Custom Votes v0.5.1 (6/24)
Reply With Quote #88

Does it ask turn on jetpacks? It should with the way you configured it.
willy1234x1 is offline
flubber
Senior Member
Join Date: Oct 2007
Old 06-25-2008 , 06:28   Re: Custom Votes v0.5.1 (6/24)
Reply With Quote #89

Quote:
Originally Posted by chundo View Post
1) I'll test your config - I did most of my testing as an admin, so it may be a bug that didn't show up on my server. Do players get a server response in chat? Is there anything in your logs?
2) "chat" type votes don't trigger a menu vote after they reach the trigger threshold, they just execute the command - if you want it to work the way you're talking about, change the vote type to "confirm". Is it 4 votes no matter how many people are online though? 'Cause that shouldn't be happening with your config, it should be 51% of online players.

Also, I'm guessing from your config that you're editing the playervotes.vote.cfg file. It might be better to add custom votes to a different config file, so it doesn't get overwritten when you upgrade.
1 - i've just tested after removeing me from every admin list i got :"No players can be targeted" even with someone who is not into any admin list (when there's admin they just don't appear)
2 - ok

I created a cpc.user.vote.cfg.
flubber is offline
chundo
Senior Member
Join Date: May 2008
Old 06-25-2008 , 10:30   Re: Custom Votes v0.5.1 (6/24)
Reply With Quote #90

OH - yeah, that's intended. Users can't target themselves or anyone above their immunity level for player parameters. This is because most votes targeting users are to punish them; if you could target anyone, a bunch of random asshats could fill the server and kick/ban an admin.

Non-admins should be able to target each other though, right?

I could add a separate param type that ignores player immunity if it's needed for votes.

Also, if you change your alltalk vote to "confirm", you'll probably also want to remove the parameter and just make it a toggle vote. See funvotes.vote.cfg in configs/customvotes/disabled for an example.
__________________

Last edited by chundo; 06-25-2008 at 10:34.
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 12:46.


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