Raised This Month: $ Target: $400
 0% 

Custom Votes v0.5.6 (1/07)


Post New Thread Reply   
 
Thread Tools Display Modes
Guardia Republicano
Member
Join Date: Dec 2006
Location: Buenos Aires, Argentina
Old 08-14-2008 , 08:59   Re: Custom Votes v0.5.4 (7/31)
Reply With Quote #171

Quote:
Originally Posted by chundo View Post
1. I've answered posts about custom mapcycles from others. And your last message was the first you posted on this.
2. This issue will take testing and bugfixing time I don't have at the moment.

If you want to write a patch to fix it, I'll happily include it. Otherwise, be patient until I have time for it.
1. I could not find a post where you said that a patch is needed to fix custom mapcycles.
It was my first post because I just find the answer: "read documentation at first post" about custom mapcycles.
I did not know if I was making a mistake or there was a bug.

2. Ok, that is I wanted to know. There is an issue and you are aware of that.

Of course I can wait now you are aware of the issue and you gave an answer about that.

Thanks.

Last edited by Guardia Republicano; 08-14-2008 at 09:02.
Guardia Republicano is offline
Badi
Junior Member
Join Date: Aug 2008
Old 08-14-2008 , 13:24   Re: Custom Votes v0.5.4 (7/31)
Reply With Quote #172

Found a workaround for this Problem:

The section in maplists.cfg MUST be named "sm_cvote"! Example:

Code:
    /* For the custom vote plugin */
    "sm_cvote"
    {
        "file"            "addons/sourcemod/configs/cvmaps.txt"
    }
Looks like its hardcoded in the plugin (i think):

Code:
ReadMapList(g_mapList, g_mapSerial, "sm_cvote", MAPLIST_FLAG_CLEARARRAY);
Badi

Last edited by Badi; 08-14-2008 at 13:27.
Badi is offline
Crap
Senior Member
Join Date: Aug 2008
Old 08-14-2008 , 17:35   Re: Custom Votes v0.5.4 (7/31)
Reply With Quote #173

Quote:
Originally Posted by Badi View Post
Found a workaround for this Problem:

The section in maplists.cfg MUST be named "sm_cvote"! Example:

Code:
    /* For the custom vote plugin */
    "sm_cvote"
    {
        "file"            "addons/sourcemod/configs/cvmaps.txt"
    }
Looks like its hardcoded in the plugin (i think):

Code:
ReadMapList(g_mapList, g_mapSerial, "sm_cvote", MAPLIST_FLAG_CLEARARRAY);
Badi
That limits you to only being able to define one file which the plugin will read from doesn't it?

If you want to do multiple votes reading from separate files, it's still impossible with the current plugin right?
Crap is offline
Guardia Republicano
Member
Join Date: Dec 2006
Location: Buenos Aires, Argentina
Old 08-14-2008 , 18:35   Re: Custom Votes v0.5.4 (7/31)
Reply With Quote #174

Quote:
Originally Posted by Badi View Post
Found a workaround for this Problem:

The section in maplists.cfg MUST be named "sm_cvote"! Example:

Code:
    /* For the custom vote plugin */
    "sm_cvote"
    {
        "file"            "addons/sourcemod/configs/cvmaps.txt"
    }
Looks like its hardcoded in the plugin (i think):

Code:
ReadMapList(g_mapList, g_mapSerial, "sm_cvote", MAPLIST_FLAG_CLEARARRAY);
Badi
You are right!
It was not working because of the hardcode.
Have I tried your solution and it is working now.

Thanks a lot.
Guardia Republicano is offline
chundo
Senior Member
Join Date: May 2008
Old 08-14-2008 , 18:57   Re: Custom Votes v0.5.4 (7/31)
Reply With Quote #175

Interesting - that must be a sourcemod enforced thing. Try "sm_cvote cvote_<votename>" then and see if it works.
__________________
chundo is offline
Badi
Junior Member
Join Date: Aug 2008
Old 08-15-2008 , 05:26   Re: Custom Votes v0.5.4 (7/31)
Reply With Quote #176

Quote:
Originally Posted by chundo View Post
Interesting - that must be a sourcemod enforced thing. Try "sm_cvote cvote_<votename>" then and see if it works.
Had no luck with this at an first attempt...
Badi is offline
Badi
Junior Member
Join Date: Aug 2008
Old 08-15-2008 , 05:31   Re: Custom Votes v0.5.4 (7/31)
Reply With Quote #177

Quote:
Originally Posted by Crap View Post
That limits you to only being able to define one file which the plugin will read from doesn't it?

If you want to do multiple votes reading from separate files, it's still impossible with the current plugin right?
Yes i think so.
Badi is offline
Nomarky
SourceMod Donor
Join Date: Sep 2007
Old 08-17-2008 , 18:24   Re: Custom Votes v0.5.4 (7/31)
Reply With Quote #178

Hi

I'm trying to add a gravity vote to the votemenu, using this code:
Code:
"gravity"
 {
     "title"        "Gravity Vote"
     "type"         "list"
     "cmd"          "sv_gravity #1"
     "options"
     {
         "200"      "200"
         "250"      "250"
         "375"      "375"
         "600"      "600"
         "800"         "800"
     }
 }
The vote shows up fine, but only seems to need 1 vote to change the grav: [customvotes.smx] "250" (250) won with 100% of the vote (1 votes). There were 4 players on the server at the time of this vote. sm_cvote_minpercent is set to 60. If sm_cvote_minvotes is set to 0, does this mean a vote is won by only one vote, regardless of how many players are on the server? I like to keep minimum number of votes to 1 at most so lone players can still votemap.

Or am I missing something?
Nomarky is offline
Isias
Senior Member
Join Date: Apr 2006
Old 08-18-2008 , 08:23   Re: Custom Votes v0.5.4 (7/31)
Reply With Quote #179

German Translation added - see attachment
Attached Files
File Type: txt customvotes.phrases.txt (2.4 KB, 260 views)
Isias is offline
omgiafs
Junior Member
Join Date: Jul 2008
Location: Russia
Old 08-22-2008 , 10:15   Re: Custom Votes v0.5.4 (7/31)
Reply With Quote #180

Little question - how to make a delay after end of vote ?

Because after successful votemap winning map immediately changes, so users can't see nothing about the voting results. How make delay after end of vote, like PlayersVotes do ?

playervotes.cfg
Code:
"Votes"
{
	"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"	"55"
			"count"		"0"
		}
		"params"
		{
			"1"		"mapcycle"
		}
	}
	"extend"
	{
		"title"			"Extend current map 20 minutes?"
		"type"			"confirm"
		"trigger"
		{
			"command"	"voteextend"
			"delay"		"120"
		}
		"command"		"sm_extend 20"
	}
	"votekick"
	{
		"title"		"Kick #1?"
		"type"		"chat"
		"command"	"sm_kick #1 \"Kicked by vote.\""
		"trigger"
		{
			"command"	"votekick"
			"notice"	"%u voted to kick #1"
			"percent"	"60"
			"count"		"3"
		}
		"params"
		{
			"1"			"player"
		}
	}
	"votemute"
	{
		"title"		"Mute #1?"
		"type"		"chat"
		"command"	"sm_mute #1"
		"trigger"
		{
			"command"	"votemute"
			"notice"	"%u voted to mute #1"
			"percent"	"30"
			"count"		"3"
		}
		"params"
		{
			"1"			"player"
		}
	}
	"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"
		}
	}
}
plugin.customvotes.cfg
Code:
sm_cvote_showstatus "3"
sm_cvote_triggers "1" 
sm_cvote_triggerdelay "10" 
sm_cvote_mapdelay "10"
sm_cvote_minpercent "60"
sm_cvote_minvotes "1"
sm_cvote_resetonmapchange "0"

Last edited by omgiafs; 08-22-2008 at 10:22.
omgiafs is offline
Send a message via ICQ to omgiafs Send a message via Skype™ to omgiafs
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 22:04.


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