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

Custom Votes v0.5.6 (1/07)


Post New Thread Reply   
 
Thread Tools Display Modes
your mom
Senior Member
Join Date: Jul 2008
Old 04-09-2009 , 10:10   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #311

I need help. I have read every post, & have tried almost everything I can think of here. What I am wanting to do is have my server run just a regular map rotation from the mapcycle file, & use the sm_setnextmap for custom maps when a admin does a vote.

My question is:

How do I set it up completely to look at a custom map file for this i.e. mapcycle_custom.txt for the admin menu?
your mom is offline
jelatin
Junior Member
Join Date: Apr 2009
Old 04-10-2009 , 04:37   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #312

found it =x
__________________
jelatin is offline
ObiPCPP
Junior Member
Join Date: Apr 2009
Old 04-11-2009 , 20:52   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #313

I am trying to make the following votes triggered via chat but for some reason it is not working? I also want the votes able to be triggered as soon as two people are in the server apart from crits, which I want to require at least 6 people in the server before being able to be triggered. The below have been entered into my playervotes.cfg. any help is greatly appreciated.

Code:
"votealltalk"
    
{
        "title"        "Turn alltalk #1?"
"type"        "chat"
"command"    "sv_alltalk #1"
"trigger"
{
            "command"    "votealltalk"
"notice"    "%u wants to turn alltalk #1"
    "percent"    "60"
        }
"params"
        {
            "1"            "onoff"
        }}
    
    "crits"
{
 "title"        "Turn crits {!tf_weapon_criticals|onoff}?"
 "type"        "chat"
"command"    "tf_weapon_criticals {!tf_weapon_criticals}"
"trigger"
{
"command"    "votecrits"
"notice"    "%u wants to to initiate a crits vote"
"percent"    "60"
}}}

"votemap"
{
"title"        "Change map to #1?"
"type"        "chat"
"command"    "changelevel #1"
"trigger"
{
"command"    "votemap"
"notice"    "%u wants to change the map to #1"
"delay"        "300"
"percent"    "60"
"count"        "4"
}
        "params"
{
"1"        "mapcycle"
 }}}

"votearena"
{
"title"        "Change to Arena map #1?"
"type"        "chat"
"command"    "changelevel #1"
"trigger"
{
"command"    "votearena"
"notice"    "%u wants to change ro arena map #1"
"delay"        "300"
"percent"    "65"
"count"        "4"
}
"params"      
{    
"1"    "arena_lumberyard"
"2"    "arena_watchtower"
"3"    "arena_ravine"
"4"    "arena_well"
}}}

"setcustommap"
{
        "title"            "Set next map to a custom map?"
"type"            "confirm"
"command"        "sm_setnextmap #1"
"trigger"
        {
"command"    "votecustom"
"delay"        "300"
        }
    "params"
{
"1" "cp_freight"
"2" "no"
}
"notice"    "%u wants to to initiate a custom map vote. Custom maps do not auto download."
"percent"    "65"
}

Last edited by ObiPCPP; 04-11-2009 at 20:57.
ObiPCPP is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 04-11-2009 , 21:03   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #314

Because of your bad formatting, you couldn't see the 3 extra "}"s in there.

Try this:

Code:
"votealltalk"
{
    "title"        "Turn alltalk #1?"
    "type"        "chat"
    "command"    "sv_alltalk #1"
    "trigger"
    {
        "command"    "votealltalk"
        "notice"    "%u wants to turn alltalk #1"
        "percent"    "60"
    }
    "params"
    {
        "1"        "onoff"
    }
}

"crits"
{
    "title"        "Turn crits {!tf_weapon_criticals|onoff}?"
    "type"        "chat"
    "command"    "tf_weapon_criticals {!tf_weapon_criticals}"
    "trigger"
    {
        "command"    "votecrits"
        "notice"    "%u wants to to initiate a crits vote"
        "percent"    "60"
    }
}

"votemap"
{
    "title"        "Change map to #1?"
    "type"        "chat"
    "command"    "changelevel #1"
    "trigger"
    {
        "command"    "votemap"
        "notice"    "%u wants to change the map to #1"
        "delay"        "300"
        "percent"    "60"
        "count"        "4"
    }
    "params"
    {
        "1"    "mapcycle"
    }
}

"votearena"
{
    "title"        "Change to Arena map #1?"
    "type"        "chat"
    "command"    "changelevel #1"
    "trigger"
    {
        "command"    "votearena"
        "notice"    "%u wants to change ro arena map #1"
        "delay"        "300"
        "percent"    "65"
        "count"        "4"
    }
    "params"      
    {    
        "1"        "arena_lumberyard"
        "2"        "arena_watchtower"
        "3"        "arena_ravine"
        "4"        "arena_well"
    }
}

"setcustommap"
{
    "title"        "Set next map to a custom map?"
    "type"        "confirm"
    "command"    "sm_setnextmap #1"
    "trigger"
    {
        "command"    "votecustom"
        "delay"        "300"
    }
    "params"
    {
        "1"        "cp_freight"
        "2"        "no"
    }
    "notice"    "%u wants to to initiate a custom map vote. Custom maps do not auto download."
    "percent"    "65"
}
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
ObiPCPP
Junior Member
Join Date: Apr 2009
Old 04-12-2009 , 00:35   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #315

Still not working

I basically want the vote to launch for any command once there are at least 2 players in the server with no admin requirement.

thank you for your help though
ObiPCPP is offline
chundo
Senior Member
Join Date: May 2008
Old 04-12-2009 , 19:26   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #316

Remove the "percent" line, or set it to 0 (removing will fallback to the default - whatever sm_cvote_minpercent is set to.)
__________________
chundo is offline
chundo
Senior Member
Join Date: May 2008
Old 04-12-2009 , 19:28   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #317

Quote:
Originally Posted by your mom View Post
I need help. I have read every post, & have tried almost everything I can think of here. What I am wanting to do is have my server run just a regular map rotation from the mapcycle file, & use the sm_setnextmap for custom maps when a admin does a vote.

My question is:

How do I set it up completely to look at a custom map file for this i.e. mapcycle_custom.txt for the admin menu?
Create a new mapcycle entry in config/maplist.cfg, and name it "sm_cvote <votename>" as described in the original post.
__________________
chundo is offline
ObiPCPP
Junior Member
Join Date: Apr 2009
Old 04-12-2009 , 20:28   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #318

*EDITTTTTTTTT*

I have fixed this by making it a "list".

However I was thinking, is it possible to make this plugin present one menu, where you can pick "CP_" "Arena_" "PL_" "custom" and then pick a map you want to vote for? Would be a lot cleaner.


Working now Except these two, which from what I understand should be bringing up a menu with options 1,2,3,4 etc as what is available for selection? Or do I need another map cycle file for them (as right now they are triggering a vote for what is located within the map cycle file, sorry about this I know next to nothing about coding and a lot about accounting/tax )?:


Code:
"changelevelcustom"  
{
"title"        "Change to custom map #1?"
"type"        "confirm"
"command"    "changelevel #1"
"trigger"
{
"command"   "votecustom"
"notice"    "%u wants to change to custom map #1. Custom maps DO NOT automatically download! Make sure you have the map!"
"delay"      "30"
"percent"    "60"
}
"params"      
{
"1"    "cp_freight"
"2"    "don't change"    
}
"percent"    "60"    
}


"changelevelarena"  
{
"title"        "Change to Arena map #1?"
"type"        "confirm"
"command"    "changelevel #1"
"trigger"
{
"command"   "votearena"
"notice"    "%u wants to change to Arena map #1"
"delay"      "300"
"percent"    "60"
}
"params"      
{      
"1"    "arena_lumberyard"
"2"    "arena_watchtower"
"3"    "arena_ravine"
"4"    "arena_well"    
}
"percent"    "60"
}

Last edited by ObiPCPP; 04-12-2009 at 22:19.
ObiPCPP is offline
chundo
Senior Member
Join Date: May 2008
Old 04-13-2009 , 01:07   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #319

EDIT: pretty sure I misunderstood the post.

"params" just tells the TYPE of parameter to expect - you can't specify valid values in the configuration. You'll need to have param 1 be "mapcycle" in both examples, and configure the appropriate mapcycle in maplist.cfg for each vote.
__________________

Last edited by chundo; 04-13-2009 at 01:11.
chundo is offline
Tripayou
Junior Member
Join Date: Nov 2008
Location: France
Old 04-14-2009 , 06:43   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #320

Quote:
mapcycle - Parameter is a map from the mapcycle. Custom mapcycles can be used by adding a section to maplist.cfg called "sm_cvote <votename>".
Hi,
I'd like votes to look for maplist.txt in server root. I made that but it doesn't work, it still look in mapcycle.txt:

my ***.vote.cfg :
Quote:
"votenextmap1"
{
"title" "La prochaine map sera #1?"
"type" "confirm"
"command" "sm_cvar sm_nextmap #1"
"admin" "sm_admin"
"trigger"
{
"command" "votenextmap"
"delay" "300"
}
"params"
{
"1" "mapcycle"
}
}
"votenextmap5"
{
"title" "Votez pour la map suivante!"
"type" "list"
"admin" "sm_admin"
"cmd" "sm_cvar sm_nextmap #6"
"options"
{
"@1" "@1"
"@2" "@2"
"@3" "@3"
"@4" "@4"
"@5" "@5"
}
"params"
{
"1" "mapcycle"
"2" "mapcycle"
"3" "mapcycle"
"4" "mapcycle"
"5" "mapcycle"
}
}
}
my maplsts.cfg :
Quote:
/* Customvotes plugin */
"sm_cvote <votenextmap1>"
{
"file" "maplist.txt"
}
"sm_cvote <votenextmap5>"
{
"file" "maplist.txt"
}
Thanks or help and sorryfor my awfull english...
Tripayou 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 20:57.


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