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

Custom Votes Redux (v1.7 - 4/13/14)


Post New Thread Reply   
 
Thread Tools Display Modes
enderandrew
Senior Member
Join Date: Jun 2020
Old 08-02-2020 , 16:19   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #301

Quote:
Originally Posted by doroemon View Post
PHP Code:
L 08/02/2020 21:15:30: [SMException reported: Array index out-of-bounds (index -1limit 32)
L 08/02/2020 21:15:30: [SMBlamingcustomvotes-nativevotes.smx
L 08
/02/2020 21:15:30: [SMCall stack trace:
L 08/02/2020 21:15:30: [SM]   [1Line 2014C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\customvotes-nativevotes.sp::GetVotesForOption
L 08
/02/2020 21:15:30: [SM]   [2Line 1905C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\customvotes-nativevotes.sp::CheckVotesForOption
L 08
/02/2020 21:15:30: [SM]   [3Line 1325C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\customvotes-nativevotes.sp::VoteHandler_List
L 08
/02/2020 21:15:30: [SM]   [5Call_Finish
L 08
/02/2020 21:15:30: [SM]   [6Line 833C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\nativevotes.sp::DoAction
L 08
/02/2020 21:15:30: [SM]   [7Line 871C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\nativevotes.sp::OnVoteResults
L 08
/02/2020 21:15:30: [SM]   [8Line 1123C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\nativevotes.sp::EndVoting
L 08
/02/2020 21:15:30: [SM]   [9Line 1063C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\nativevotes.sp::DecrementPlayerCount
L 08
/02/2020 21:15:30: [SM]   [10Line 817C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\nativevotes.sp::OnClientEnd
L 08
/02/2020 21:15:30: [SM]   [11Line 694C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\nativevotes.sp::Command_Vote
L 08
/02/2020 21:15:30: [SM]   [13FakeClientCommand
L 08
/02/2020 21:15:30: [SM]   [14Line 957nativevotes/game.sp::Game_VoteYes
L 08
/02/2020 21:15:30: [SM]   [15Line 1285C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\nativevotes.sp::StartVoting
L 08
/02/2020 21:15:30: [SM]   [16Line 1174C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\nativevotes.sp::StartVote
L 08
/02/2020 21:15:30: [SM]   [17Line 1631C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\nativevotes.sp::Native_Display
L 08
/02/2020 21:15:30: [SM]   [19NativeVotes_Display
L 08
/02/2020 21:15:30: [SM]   [20Line 958C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\include\nativevotes.inc::NativeVotes_DisplayToAll
L 08
/02/2020 21:15:30: [SM]   [21Line 1270C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\customvotes-nativevotes.sp::Vote_List
L 08
/02/2020 21:15:30: [SM]   [22Line 1165C:\Users\dora\Desktop\srcds manager\ServerFile\TF2SlenderServer\tf\addons\sourcemod\scripting\customvotes-nativevotes.sp::MenuHandler_ListVote 
I hadn't tested it. I'm running the redux version myself. I just updated it to new syntax and made sure it would compile with no warnings. There may be bugs to fix.

But at a glance I'm wondering if the index -1 out of bounds is coming from a client number of -1 being passed. It might be possible to fix this just by only calling it when client is >= 0 or maybe even >= 1. Isn't client 0 the console?
enderandrew is offline
doroemon
Senior Member
Join Date: Dec 2009
Location: TF2 AFK Server
Old 08-05-2020 , 23:43   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #302

Quote:
Originally Posted by enderandrew View Post
I hadn't tested it. I'm running the redux version myself. I just updated it to new syntax and made sure it would compile with no warnings. There may be bugs to fix.

But at a glance I'm wondering if the index -1 out of bounds is coming from a client number of -1 being passed. It might be possible to fix this just by only calling it when client is >= 0 or maybe even >= 1. Isn't client 0 the console?
Sorry I didn't know about programming...
but I start vote from tf2 Client not Server console,
And my server have BOT on it
__________________
I'm just a guy who's a server operator for fun.
https://steamcommunity.com/groups/cfmsg
doroemon is offline
ph
AlliedModders Donor
Join Date: Mar 2006
Old 10-08-2020 , 18:23   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #303

Quote:
Originally Posted by enderandrew View Post
I hadn't tested it. I'm running the redux version myself. I just updated it to new syntax and made sure it would compile with no warnings. There may be bugs to fix.

But at a glance I'm wondering if the index -1 out of bounds is coming from a client number of -1 being passed. It might be possible to fix this just by only calling it when client is >= 0 or maybe even >= 1. Isn't client 0 the console?



Has this been fixed ?
__________________

Last edited by ph; 10-08-2020 at 18:24.
ph is offline
SpiritBob
Member
Join Date: Jul 2011
Old 08-31-2022 , 15:50   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #304

Code:
L 08/31/2022 - 19:35:21: [SM] Exception reported: Array index out-of-bounds (index -1, limit 32)
L 08/31/2022 - 19:35:21: [SM] Blaming: customvotes-nativevotes.smx
L 08/31/2022 - 19:35:21: [SM] Call stack trace:
L 08/31/2022 - 19:35:21: [SM]   [1] Line 2014, customvotes-nativevotes.sp::GetVotesForOption
L 08/31/2022 - 19:35:21: [SM]   [2] Line 1905, customvotes-nativevotes.sp::CheckVotesForOption
L 08/31/2022 - 19:35:21: [SM]   [3] Line 1325, customvotes-nativevotes.sp::VoteHandler_List
L 08/31/2022 - 19:35:21: [SM]   [5] Call_Finish
L 08/31/2022 - 19:35:21: [SM]   [6] Line 531, D:\tf2server\plugins\nativevotes release\addons\sourcemod\scripting\nativevotes.sp::DoAction
L 08/31/2022 - 19:35:21: [SM]   [7] Line 568, D:\tf2server\plugins\nativevotes release\addons\sourcemod\scripting\nativevotes.sp::OnVoteResults
L 08/31/2022 - 19:35:21: [SM]   [8] Line 817, D:\tf2server\plugins\nativevotes release\addons\sourcemod\scripting\nativevotes.sp::EndVoting
L 08/31/2022 - 19:35:21: [SM]   [9] Line 756, D:\tf2server\plugins\nativevotes release\addons\sourcemod\scripting\nativevotes.sp::DecrementPlayerCount
L 08/31/2022 - 19:35:21: [SM]   [10] Line 472, D:\tf2server\plugins\nativevotes release\addons\sourcemod\scripting\nativevotes.sp::OnVoteSelect
L 08/31/2022 - 19:35:21: [SM]   [11] Line 404, D:\tf2server\plugins\nativevotes release\addons\sourcemod\scripting\nativevotes.sp::Command_Vote
L 08/31/2022 - 19:35:21: [SM]   [13] FakeClientCommand
L 08/31/2022 - 19:35:21: [SM]   [14] Line 619, D:\tf2server\plugins\nativevotes release\addons\sourcemod\scripting\nativevotes/game.sp::Game_VoteYes
L 08/31/2022 - 19:35:21: [SM]   [15] Line 979, D:\tf2server\plugins\nativevotes release\addons\sourcemod\scripting\nativevotes.sp::StartVoting
L 08/31/2022 - 19:35:21: [SM]   [16] Line 868, D:\tf2server\plugins\nativevotes release\addons\sourcemod\scripting\nativevotes.sp::StartVote
L 08/31/2022 - 19:35:21: [SM]   [17] Line 1261, D:\tf2server\plugins\nativevotes release\addons\sourcemod\scripting\nativevotes.sp::Native_Display
L 08/31/2022 - 19:35:21: [SM]   [19] NativeVotes_Display
L 08/31/2022 - 19:35:21: [SM]   [20] Line 958, C:\tf2_server\tf\addons\sourcemod\scripting\include\nativevotes.inc::NativeVotes_DisplayToAll
L 08/31/2022 - 19:35:21: [SM]   [21] Line 1270, customvotes-nativevotes.sp::Vote_List
L 08/31/2022 - 19:35:21: [SM]   [22] Line 1165, customvotes-nativevotes.sp::MenuHandler_ListVote
Additionally, Yes is No and No is Yes when using a simple vote type.

Last edited by SpiritBob; 08-31-2022 at 16:17.
SpiritBob is offline
replay_84
Senior Member
Join Date: Jun 2021
Old 12-06-2022 , 14:34   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #305

Maybe someone can help me and tell whats going on with this plugin. I have 2 servers, both running with custom votes redux. After years of using it, suddenly when voting happens a hint messages pops up with actual info about votes.. Something like "Yes / No (3/10)" This was only on one server tho and I really have no idea what I changed to enable this feature (?) The message however disappeared again for no reason. I think I updated sourcemod, but not sure.

Any ideas how to get it back?

Last edited by replay_84; 12-06-2022 at 14:35.
replay_84 is offline
firefist235
Junior Member
Join Date: Jan 2020
Old 05-20-2023 , 14:42   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #306

Is it possible to trigger a vote when a certain command is entered in the chat?
Many people join my server and try !rtv but nothing happens. I already made a voting option for mapchange, but most people don't mind to open the votemenu.
So is this possible?

thx
__________________
firefist235 is offline
Dubswitcher
Junior Member
Join Date: Jun 2020
Old 07-10-2023 , 19:43   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #307

With it being 2023, way after this plugin is made, I get the feeling I won't see a response - but is there a way to lock this behind admin usage? Or does an override flag need to be coded in?
Dubswitcher is offline
inactivoo
New Member
Join Date: Nov 2023
Old 11-17-2023 , 08:15   Re: Custom Votes Redux (v1.7 - 4/13/14)
Reply With Quote #308

can someone help me with this plugin to do like an vote for all users to do sv_restart -1 and sv_restart 0.10?
Since im doing it for an votestartmatch for the game IOSoccer so all players can start an match without an admin in game.
inactivoo 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 07:03.


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