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

Custom Votes v0.5.6 (1/07)


Post New Thread Reply   
 
Thread Tools Display Modes
blitzzz
Member
Join Date: Mar 2010
Old 08-18-2010 , 10:18   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #621

Quote:
Originally Posted by jameless View Post
@blitzzz: I apologize for assuming you were running TF2. Matchmod is designed for TF2. Well if you can get your cevo.cfg to run from the vote then I would edit that and add mp_restartgame 10 to the bottom of it. I am not positive if that command works the same in L4D2 but in TF2 it restarts the map keeping the settings without kicking anyone to the loading screen. The 10 says wait 10 seconds to restart the map so you can adjust that according to your server's preference.
Hi jameless, do you mean add the mp_restartgame 10 at the very end in the cevo.cfg file? or add it in the playervotes.cfg like the one below?

"votemap"
{
"title" "Cevo"
"type" "confirm"
"command" "exec cevo.cfg, "
mp_restartgame 10 (is this correct?)


}
blitzzz is offline
nadrojcote
Senior Member
Join Date: Oct 2009
Old 08-18-2010 , 10:52   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #622

I am getting errors in my logs to do with customvotes, I see that two people have asked about this in the past on this thread and never really received an answer.

here is the error I am getting

Quote:
L 08/18/2010 - 07:07:02: SourceMod error session started
L 08/18/2010 - 07:07:02: Info (map "gg_absinthe_shotty") (file "errors_20100818.log")
L 08/18/2010 - 07:07:02: [SM] Plugin encountered error 15: Array index is out of bounds
L 08/18/2010 - 07:07:02: [SM] Displaying call stack trace for plugin "customvotes.smx":
L 08/18/2010 - 07:07:02: [SM] [0] Line 650, /home/jeremy/dev/personal/sourcemod-plugins/customvotes/scripting/customvotes.sp::Event_PlayerChat()
L 08/18/2010 - 07:07:09: Error log file session closed.
and here is the event that it is referring to

Quote:
public Action:Event_PlayerChat(Handle:event, const String:eventname[], bool:dontBroadcast) {
new String:saytext[191];
new String:votetrigger[32];
new String:vparams[10][64];
new pidx = 0;
new vidx = 0;

new client = GetClientOfUserId(GetEventInt(event, "userid"));
GetEventString(event, "text", saytext, sizeof(saytext));
new idx = BreakString(saytext, votetrigger, sizeof(votetrigger));

if (strlen(votetrigger) > 0) {
if ((vidx = InArray(votetrigger, g_voteTriggers, GetArraySize(g_voteArray))) > -1) {
if (idx > -1)
while((idx = BreakString(saytext[idx], vparams[pidx++], 64)) > -1 && pidx <= 10) { }
SetCmdReplySource(SM_REPLY_TO_CHAT);
CVote_DoVote(client, g_voteNames[vidx], vparams, pidx, true);
}
}
}
and this is like 650 that it is referring to

Quote:
while((idx = BreakString(saytext[idx], vparams[pidx++], 64)) > -1 && pidx <= 10) { }

Just found this in my logs too

Quote:
L 08/17/2010 - 210:40: SourceMod error session started
L 08/17/2010 - 210:40: Info (map "gg_lego_arena_x") (file "errors_20100817.log")
L 08/17/2010 - 210:40: [SM] Native "CloseHandle" reported: Handle 8590957 is invalid (error 3)
L 08/17/2010 - 210:40: [SM] Displaying call stack trace for plugin "customvotes.smx":
L 08/17/2010 - 210:40: [SM] [0] Line 1103, /home/jeremy/dev/personal/sourcemod-plugins/customvotes/scripting/customvotes.sp::CVote_ConfirmMenuHandler()
L 08/17/2010 - 210:43: Error log file session closed.
any help is appreciated

Last edited by nadrojcote; 08-18-2010 at 11:58.
nadrojcote is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 08-18-2010 , 12:37   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #623

@blitzzz: At the end of the cevo.cfg file.

@nadrojcote: I am not the developer of this plugin. I just help people with issues that I've experienced and have solved in the past. I also help with creating individual votes as I've created quite a few myself. As for the errors, which version of the plugin are you using? The one from the OP?
jameless is offline
Jokerz99
Senior Member
Join Date: Apr 2008
Old 08-18-2010 , 13:33   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #624

Question can I use the below to make it so it picks from 3 different map files, 1 file is just pl maps the 2nd is all cp maps and the 3 file is all ctf maps?

Also can i make it so slot "1" is not used to prevent ppl that just button mash to cast a vote? I can use slots 2,3,4,5,6,7,8,9?

Quote:
Originally Posted by jameless View Post
This works for that. I have tested it myself.

Code:
"setnextmapmulti"
    {
        "title"            "Which map should be next?"
        "type"           "list"
        "cmd"            "sm_setnextmap @4"
	"admin"	   "sm_setnextmap"
        "params"
        {
            "1"           "mapcycle"
            "2"           "mapcycle"
            "3"           "mapcycle"
        }
        "options"
        {
            "#1"          "#1"
            "#2"          "#2"
            "#3"          "#3"
        }
    }
__________________
Jokerz99 is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 08-18-2010 , 14:02   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #625

@Jokerz99: It may be possible to change the mapcycle file to look at a different file but I don't know because I've never tried. If I find the time I will test and let you know. As for turning of mashing 1 I haven't found a way to do it with this plugin. The developer kind of left it in the wind so if someone wants to pick it back up and edit it to allow it that would be awesome!
jameless is offline
nadrojcote
Senior Member
Join Date: Oct 2009
Old 08-18-2010 , 14:45   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #626

Quote:
Originally Posted by jameless View Post
@blitzzz: At the end of the cevo.cfg file.

@nadrojcote: I am not the developer of this plugin. I just help people with issues that I've experienced and have solved in the past. I also help with creating individual votes as I've created quite a few myself. As for the errors, which version of the plugin are you using? The one from the OP?
yup im using the ops version, i didnt know there was a different version.
nadrojcote is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 08-18-2010 , 15:53   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #627

Ah ok. If I had access to the OP I would change it to warn about the votemenu bugs. It creates errors and a really nasty bug that allows a player to use it to automatically win any vote they start. This can result in a lot of bans if you have a player that decides he wants to try and ruin your server by votebanning everyone. I included a quote that I mentioned to someone else that fixed this bug by removing the votemenu.

Quote:
Originally Posted by jameless View Post
That was a bug with the votemenu that Wazz fixed in this post.
jameless is offline
nadrojcote
Senior Member
Join Date: Oct 2009
Old 08-19-2010 , 14:36   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #628

thanks but now i am getting the same error with a different path

Quote:
L 08/19/2010 - 10:268: SourceMod error session started
L 08/19/2010 - 10:268: Info (map "gg_lego_cornerz") (file "errors_20100819.log")
L 08/19/2010 - 10:268: [SM] Plugin encountered error 15: Array index is out of bounds
L 08/19/2010 - 10:268: [SM] Displaying call stack trace for plugin "customvotes.smx":
L 08/19/2010 - 10:268: [SM] [0] Line 638, /home/groups/alliedmodders/forums/files/5/0/7/2/6/55810.attach::Event_PlayerChat()
L 08/19/2010 - 10:28:53: Error log file session closed.
nadrojcote is offline
jameless
Veteran Member
Join Date: Jan 2010
Old 08-19-2010 , 15:36   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #629

Can you post what votes you are using? Also a list of plugins could help.
jameless is offline
Great Biggie
Member
Join Date: Aug 2009
Old 08-19-2010 , 16:57   Re: Custom Votes v0.5.6 (1/07)
Reply With Quote #630

Anyone know where I would get the latest working version of this plugin as the owner is not updating the main post

I realize I could search though 63 pages of this post but a quick reference would be appreciated
Great Biggie 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 12:24.


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