thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Voting Plugin (by danger89)  (Read 37277 times)

Offline danger89

  • Full Member
  • ***
  • Posts: 129
    • JoinMyServer - Game Servers
Re: Voting Plugin (by danger89)
« Reply #15 on: February 05, 2011, 04:00:15 PM »
my b3.xml
I've also seen that the b3 database does not record the kicks made by this plugin in penalty column  :-\

In the config you are missing the priority of each plugin! Example:
Code: xml [Select]
<plugin name="admin" priority="1" config="@conf/plugin_admin.xml" /> 

Try to number it for each plugin, so 1 until 7.

I think the best thing you can do next is:
  • Download & install version 2.0
  • You set log level to 9 which is good for debugging.
  • Run B3 again with the new version. And upload the log file as attachment.
A vote kick is not more then a kick or tempban of the user, I use the build-in kick/tempban command from B3. I will try to fix this later.
JoinMyServer.com
Call of Duty 4 Game Servers

Offline LiKaNtRoP

  • Jr. Member
  • **
  • Posts: 47
Re: Voting Plugin (by danger89)
« Reply #16 on: February 05, 2011, 04:17:24 PM »
« Last Edit: February 05, 2011, 04:25:44 PM by LiKaNtRoP »

Offline danger89

  • Full Member
  • ***
  • Posts: 129
    • JoinMyServer - Game Servers
Re: Voting Plugin (by danger89)
« Reply #17 on: February 05, 2011, 04:37:51 PM »
JoinMyServer.com
Call of Duty 4 Game Servers

Offline LiKaNtRoP

  • Jr. Member
  • **
  • Posts: 47
Re: Voting Plugin (by danger89)
« Reply #18 on: February 05, 2011, 04:51:59 PM »
« Last Edit: February 05, 2011, 05:14:31 PM by LiKaNtRoP »

Offline danger89

  • Full Member
  • ***
  • Posts: 129
    • JoinMyServer - Game Servers
Re: Voting Plugin (by danger89)
« Reply #19 on: February 05, 2011, 05:42:52 PM »
You changed the maplist.txt right?

Init it almost the same as mine. This is ok:
Quote
110205 17:23:12   BOT       Starting Plugin voting
110205 17:23:12   DEBUG   AdminPlugin: Command "voteyes (vy)" registered with cmd_voteyes for level (1, 100)
110205 17:23:12   DEBUG   AdminPlugin: Command "voteno (vn)" registered with cmd_voteno for level (1, 100)
110205 17:23:12   DEBUG   AdminPlugin: Command "voteveto (vveto)" registered with cmd_veto for level (20, 100)
110205 17:23:12   DEBUG   AdminPlugin: Command "votekick (vk)" registered with cmd_votekick for level (20, 100)
110205 17:23:12   DEBUG   AdminPlugin: Command "votemap (vm)" registered with cmd_votemap for level (2, 100)
110205 17:23:12   DEBUG   AdminPlugin: Command "maplist (mapl)" registered with cmd_maplist for level (0, 100)
110205 17:23:12   DEBUG   AdminPlugin: Command "votegametype (vg)" registered with cmd_votegametype for level (2, 100)
110205 17:23:12   DEBUG   AdminPlugin: Command "gametypelist (gamel)" registered with cmd_gametypelist for level (0, 100)
110205 17:23:12   DEBUG   AdminPlugin: Command "votemaprotate (vr)" registered with cmd_votemaprotate for level (2, 100)
110205 17:23:12   DEBUG   AdminPlugin: Command "votemapgametype (vmg)" registered with cmd_votemapgametype for level (2, 100)

My log file:
Quote
110205 17:24:11   CONSOLE   21508:55 say;0882d82b1dd2ccbe9cdb03789e7b9add;1;[JMS]DangerousI;!votemap mp_killhouse
110205 17:24:11   VERBOSE   Queueing event Say !votemap mp_killhouse
110205 17:24:11   VERBOSE   Parsing Event: Say: AdminPlugin
110205 17:24:11   DEBUG   AdminPlugin: OnSay handle 5:"!votemap mp_killhouse"
110205 17:24:11   DEBUG   AdminPlugin: Handle command !votemap mp_killhouse
110205 17:24:11   VERBOSE   Added crontab <bound method VotingPlugin.update_vote of <b3.plugins.voting.VotingPlugin instance at 0x7f6a880aa5a8>> (140095526604624) - [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]s -1m -1h -1d -1M -1DOW
110205 17:24:11   VERBOSE   RCON sending (127.0.0.1:28961) say ^0(^1Admin^0)^7: Calling a vote to change map to ^3mp_killhouse
110205 17:24:12   VERBOSE   RCON sending (127.0.0.1:28961) say ^0(^1Admin^0)^7: Type ^1!vy ^7to vote ^1yes^7, ^2!vn ^7to vote ^2no
110205 17:24:15   VERBOSE   Added crontab <bound method VotingPlugin.update_vote of <b3.plugins.voting.VotingPlugin instance at 0x7f6a880aa5a8>> (140095526604496) - [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]s -1m -1h -1d -1M -1DOW
110205 17:24:15   VERBOSE   RCON sending (127.0.0.1:28961) say ^0(^1Admin^0)^7: [1/2] Voting to change map to ^3mp_killhouse
110205 17:24:15   VERBOSE   RCON sending (127.0.0.1:28961) say ^0(^1Admin^0)^7: Type ^1!vy ^7to vote ^1yes^7, ^2!vn ^7to vote ^2no
110205 17:24:16   VERBOSE   RCON sending (127.0.0.1:28961) say ^0(^1Admin^0)^7: ^1Yes: 1^7, ^2No: 0
110205 17:24:30   VERBOSE   Added crontab <bound method VotingPlugin.end_vote of <b3.plugins.voting.VotingPlugin instance at 0x7f6a880aa5a8>> (140095526604752) - [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]s -1m -1h -1d -1M -1DOW
110205 17:24:30   VERBOSE   RCON sending (127.0.0.1:28961) say ^0(^1Admin^0)^7: [2/2] Voting to change map to ^3mp_killhouse
110205 17:24:30   VERBOSE   RCON sending (127.0.0.1:28961) say ^0(^1Admin^0)^7: Type ^1!vy ^7to vote ^1yes^7, ^2!vn ^7to vote ^2no
110205 17:24:31   VERBOSE   RCON sending (127.0.0.1:28961) say ^0(^1Admin^0)^7: ^1Yes: 1^7, ^2No: 0
110205 17:24:36   CONSOLE   21509:20 say;0882d82b1dd2ccbe9cdb03789e7b9add;1;[JMS]DangerousI;This is a test message, still the current map..
110205 17:24:36   VERBOSE   Queueing event Say This is a test message, still the current map..
110205 17:24:36   VERBOSE   Parsing Event: Say: AdminPlugin
110205 17:24:36   DEBUG   AdminPlugin: OnSay handle 5:"This is a test message, still the current map.."
110205 17:24:45   VERBOSE   RCON sending (127.0.0.1:28961) say ^0(^1Admin^0)^7: Vote ended
110205 17:24:45   VERBOSE   RCON sending (127.0.0.1:28961) map mp_killhouse
110205 17:24:45   CONSOLE   21509:29 ShutdownGame:
110205 17:24:45   CONSOLE   21509:29 ------------------------------------------------------------
110205 17:24:46   WARNING   RCON: ERROR reading: No readable socket
110205 17:24:46   VERBOSE   RCON sending (127.0.0.1:28961) say ^0(^1Admin^0)^7: ^1Yes: 1^7, ^2No: 0
110205 17:24:46   CONSOLE   21509:29 ------------------------------------------------------------
110205 17:24:46   CONSOLE   21509:29 InitGame: \_Admin\Dangerous_I\_b3\B3 v1.3.3 [posix]\_Email\[email protected]\_Location\The Netherlands\_Supporter\Melroy\_Website\http://www.joinmyserver.com\g_compassShowEnemies\0\g_gametype\war\gamename\Call of Duty 4\mapname\mp_killhouse\protocol\6\shortversion\1.7\sv_allowAnonymous\0\sv_disableClientConsole\1\sv_floodprotect\1\sv_hostname\^2Private ^3HC - ^1Only Pro's\sv_maxclients\20\sv_maxPing\100\sv_maxRate\9000\sv_minPing\0\sv_privateClients\1\sv_punkbuster\0\sv_pure\1\sv_voice\0\ui_maxclients\20
110205 17:24:46   VERBOSE   ...self.console.game.gameType: war

I start my vote at:
110205 17:24:11

And the vote end -> changing map:
110205 17:24:45

This is 34 seconds and I watched on the clock it says 36 seconds from the time I started the vote to the end. This is long enough for let people vote yes or no. However now your log:

Your vote started at:
110205 09:42:35

And the vote end->changing map:
110205 09:42:38

This is indeed just 3 seconds! It seems that the crontab I use, maybe not works properly or not at all works under Windows. At the other side it's also strange it's 34 seconds by me, it should be: 1 min. * 3 (times) = 3 minutes. I didn't write the OneTimeCronTab, B3 developers did..

Code:
Code: python [Select]
    _vote_times = 3
.....
        #first time..
        self.console.cron + b3.cron.OneTimeCronTab(self.update_vote,  "*/%s" %self._vote_interval_announcements)
    .......
            self._times -= 1 #every [i]update_vot[/i]e times - 1
            if self._times > 0: #if it still higher then 0
                self.console.cron + b3.cron.OneTimeCronTab(self.update_vote,  "*/%s" %self._vote_interval_announcements) #keep updating [i]update_vot[/i]
            else:
                #end vote
                self.console.cron + b3.cron.OneTimeCronTab(self.end_vote,  "*/1")
........
« Last Edit: February 05, 2011, 05:54:54 PM by danger89 »
JoinMyServer.com
Call of Duty 4 Game Servers

Offline LiKaNtRoP

  • Jr. Member
  • **
  • Posts: 47
Re: Voting Plugin (by danger89)
« Reply #20 on: February 05, 2011, 05:53:41 PM »
i changed the maplist.txt because my game is cod6 not cod4  :D

and here a votekick from yesterday (old plugin)  

Quote
110204 13:15:16   DEBUG   AdminPlugin: OnSay handle 5:"!vk <UBC> Just WallHack"
110204 13:15:16   DEBUG   AdminPlugin: Handle command !vk <UBC> Just WallHack
110204 13:15:16   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: Calling a vote against ^3<UBC>   Just^7 because ^3Just WallHack
110204 13:15:16   VERBOSE   Added crontab <bound method VotingPlugin.update_vote of <voting.VotingPlugin instance at 0x00B5D8F0>> (12801040) - [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]s -1m -1h -1d -1M -1DOW
110204 13:15:16   CONSOLE   224:02 K;01100001380a9534;16;allies;[CoE*] StRuKtoR;01100001703f334c;8;axis;-=GTX=-Panzer;scar_xmags_mp;135;MOD_MELEE;torso_lower
110204 13:15:16   VERBOSE   Queueing event Client Kill (135.0, 'scar_xmags_mp', 'torso_lower', 'MOD_MELEE')
110204 13:15:16   VERBOSE   Parsing Event: Client Kill: StatsPlugin
110204 13:15:16   VERBOSE   stats vshift 0.237244897959
110204 13:15:16   VERBOSE   Added crontab <bound method VotingPlugin.update_vote of <voting.VotingPlugin instance at 0x00B5D8F0>> (12800688) - [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]s -1m -1h -1d -1M -1DOW
110204 13:15:16   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: Type ^1!vy ^7to vote ^1yes^7, ^2!vn ^7to vote ^2no
110204 13:15:17   VERBOSE   Added crontab <bound method VotingPlugin.update_vote of <voting.VotingPlugin instance at 0x00B5D8F0>> (12801296) - [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]s -1m -1h -1d -1M -1DOW
110204 13:15:17   CONSOLE   224:02 K;01100001703f334c;8;axis;-=GTX=-Panzer;01100001a2b53109;14;allies;-=GTX.NightMare;barrett_mp;138;MOD_MELEE;torso_upper
110204 13:15:17   VERBOSE   Queueing event Client Kill (138.0, 'barrett_mp', 'torso_upper', 'MOD_MELEE')
110204 13:15:17   VERBOSE   Parsing Event: Client Kill: StatsPlugin
110204 13:15:17   VERBOSE   stats vshift 0.949074074074
110204 13:15:17   CONSOLE   224:03 D;011000012c3ee43e;7;allies;Deivo;011000013013858b;5;axis;--P@L3---;ump45_silencer_mp;35;MOD_RIFLE_BULLET;left_leg_lower
110204 13:15:17   VERBOSE   Queueing event Client Damage (35.0, 'ump45_silencer_mp', 'left_leg_lower', 'MOD_RIFLE_BULLET')
110204 13:15:17   VERBOSE   Parsing Event: Client Damage: StatsPlugin
110204 13:15:17   CONSOLE   224:03 D;011000012c3ee43e;7;allies;Deivo;011000013013858b;5;axis;--P@L3---;ump45_silencer_mp;35;MOD_RIFLE_BULLET;left_leg_lower
110204 13:15:17   VERBOSE   Queueing event Client Damage (35.0, 'ump45_silencer_mp', 'left_leg_lower', 'MOD_RIFLE_BULLET')
110204 13:15:17   VERBOSE   Parsing Event: Client Damage: StatsPlugin
110204 13:15:17   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: [1/3] Voting against ^3<UBC>   Just^7 because ^3Just WallHack
110204 13:15:18   VERBOSE   Added crontab <bound method VotingPlugin.end_vote of <voting.VotingPlugin instance at 0x00B5D8F0>> (12801040) - [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]s -1m -1h -1d -1M -1DOW
110204 13:15:18   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: Type ^1!vy ^7to vote ^1yes^7, ^2!vn ^7to vote ^2no
110204 13:15:19   CONSOLE   224:04 K;011000012c3ee43e;7;allies;Deivo;011000013013858b;5;axis;--P@L3---;ump45_silencer_mp;35;MOD_RIFLE_BULLET;left_leg_upper
110204 13:15:19   VERBOSE   Queueing event Client Kill (35.0, 'ump45_silencer_mp', 'left_leg_upper', 'MOD_RIFLE_BULLET')
110204 13:15:19   VERBOSE   Parsing Event: Client Kill: StatsPlugin
110204 13:15:19   VERBOSE   stats vshift 0.298611111111
110204 13:15:19   VERBOSE   RCON sending (93.93.65.39:28971) clientkick 4
110204 13:15:20   CONSOLE   224:05 say;01100001deb771cf;4;<UBC>   Just;ahaha
110204 13:15:20   VERBOSE   Queueing event Say ahaha
110204 13:15:20   VERBOSE   Parsing Event: Say: AdminPlugin
110204 13:15:20   DEBUG   AdminPlugin: OnSay handle 5:"ahaha"
110204 13:15:20   CONSOLE   224:06 Q;01100001deb771cf;4;<UBC>   Just
110204 13:15:20   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: ^1Yes: 1^7, ^2No: 0
110204 13:15:20   ERROR   Error executing crontab <bound method VotingPlugin.end_vote of <voting.VotingPlugin instance at 0x00B5D8F0>>: expected string or buffer
[('b3\\cron.pyo', 270, 'run', None), ('b3\\cron.pyo', 64, 'run', None), ('C:\\UserFiles\\likantrop\\CoDMW2\\extplugins\\voting.py', 211, 'end_vote', None), ('C:\\UserFiles\\likantrop\\CoDMW2\\extplugins\\voting.py', 310, 'end_vote_yes', None), ('b3\\clients.pyo', 489, 'kick', None), ('b3\\clients.pyo', 768, 'save', None), ('b3\\storage.pyo', 531, 'setClientPenalty', None), ('re.pyo', 137, 'match', None)]
110204 13:15:21   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: [2/3] Voting against ^3<UBC>   Just^7 because ^3Just WallHack
110204 13:15:22   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: Type ^1!vy ^7to vote ^1yes^7, ^2!vn ^7to vote ^2no
110204 13:15:23   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: ^1Yes: 1^7, ^2No: 0
110204 13:15:23   CONSOLE   224:09 K;01100001380a9534;16;allies;[CoE*] StRuKtoR;011000017ba11280;12;axis;JBJ7;remotemissile_projectile_mp;329;MOD_PROJECTILE_SPLASH;none
110204 13:15:23   VERBOSE   Queueing event Client Kill (329.0, 'remotemissile_projectile_mp', 'none', 'MOD_PROJECTILE_SPLASH')
110204 13:15:23   VERBOSE   Parsing Event: Client Kill: StatsPlugin
110204 13:15:23   VERBOSE   stats vshift 0.24011299435
110204 13:15:23   CONSOLE   224:09 say;011000012c3ee43e;7;Deivo;!vy
110204 13:15:23   VERBOSE   Queueing event Say !vy
110204 13:15:23   VERBOSE   Parsing Event: Say: AdminPlugin
110204 13:15:23   DEBUG   AdminPlugin: OnSay handle 5:"!vy"
110204 13:15:23   DEBUG   AdminPlugin: Handle command !vy
110204 13:15:24   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: [3/3] Voting against ^3<UBC>   Just^7 because ^3Just WallHack
110204 13:15:25   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: Type ^1!vy ^7to vote ^1yes^7, ^2!vn ^7to vote ^2no
110204 13:15:26   CONSOLE   224:11 say;01100001a2b53109;14;-=GTX.NightMare;!vy
110204 13:15:26   VERBOSE   Queueing event Say !vy
110204 13:15:26   VERBOSE   Parsing Event: Say: AdminPlugin
110204 13:15:26   DEBUG   AdminPlugin: OnSay handle 5:"!vy"
110204 13:15:26   DEBUG   AdminPlugin: Handle command !vy
110204 13:15:26   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: ^1Yes: 1^7, ^2No: 0
110204 13:15:27   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: Vote ended
110204 13:15:28   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: ^1Yes: 1^7, ^2No: 0
110204 13:15:28   CONSOLE   224:13 D;011000016a801b2a;3;axis;Dasten;;-1;world;;none;22;MOD_FALLING;none
110204 13:15:28   VERBOSE   Queueing event Client Damage (22.0, 'none', 'none', 'MOD_FALLING')
110204 13:15:28   VERBOSE   Parsing Event: Client Damage: StatsPlugin
110204 13:15:29   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: ^1KICKING ^3<UBC>   Just^7
110204 13:15:29   CONSOLE   224:14 Weapon;01100001380a9534;16;[CoE*] StRuKtoR;cheytac_mp
110204 13:15:29   CONSOLE   224:15 say;011000017ff15761;9;Javier-ESP;listo
110204 13:15:29   VERBOSE   Queueing event Say listo
110204 13:15:29   VERBOSE   Parsing Event: Say: AdminPlugin
110204 13:15:29   DEBUG   AdminPlugin: OnSay handle 5:"listo"
110204 13:15:30   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: <UBC>   Just^7^7 was kicked Voted out
110204 13:15:31   VERBOSE   RCON sending (93.93.65.39:28971) status

anyway, apart of the vote time problem, why only one vote is enought for kick someone?

thx for your time  ;D
« Last Edit: February 05, 2011, 05:56:31 PM by LiKaNtRoP »

Offline danger89

  • Full Member
  • ***
  • Posts: 129
    • JoinMyServer - Game Servers
Re: Voting Plugin (by danger89)
« Reply #21 on: February 05, 2011, 06:21:30 PM »
I think I kinda found the problem about the min. votes. I will as soon as possible upload version 2.1. I can tell you still will not fix the fast crontab problem.

EDIT:
Version 2.1 is out

You need to update the .py as well as the .xml config file.
« Last Edit: February 05, 2011, 06:30:35 PM by danger89 »
JoinMyServer.com
Call of Duty 4 Game Servers

Offline LiKaNtRoP

  • Jr. Member
  • **
  • Posts: 47
Re: Voting Plugin (by danger89)
« Reply #22 on: February 05, 2011, 06:48:44 PM »
I think I kinda found the problem about the min. votes. I will as soon as possible upload version 2.1. I can tell you still will not fix the fast crontab problem.

EDIT:
Version 2.1 is out

You need to update the .py as well as the .xml config file.


mmm maybe changing this value to a high valor could help?

<set name="vote_interval_announcements">1</set> <!-- time in minutes between each announcement -->  

now is 3 times and 3 seconds of  voting duration (is like a 1 second variable instead of 1 minute) maybe if i change it to 60 i will get 3 minutes  ??? i will test it tonight

« Last Edit: February 05, 2011, 06:51:06 PM by LiKaNtRoP »

Offline danger89

  • Full Member
  • ***
  • Posts: 129
    • JoinMyServer - Game Servers
Re: Voting Plugin (by danger89)
« Reply #23 on: February 05, 2011, 07:21:17 PM »

mmm maybe changing this value to a high valor could help?

<set name="vote_interval_announcements">1</set> <!-- time in minutes between each announcement -->  

now is 3 times and 3 seconds of  voting duration (is like a 1 second variable instead of 1 minute) maybe if i change it to 60 i will get 3 minutes  ??? i will test it tonight

You can try it.
JoinMyServer.com
Call of Duty 4 Game Servers

Offline LiKaNtRoP

  • Jr. Member
  • **
  • Posts: 47
Re: Voting Plugin (by danger89)
« Reply #24 on: February 05, 2011, 07:46:41 PM »
ok tested 2.1 with this values:

 <set name="vote_times">2</set>
- <!--  number of times it shows an announcement
  -->
  <set name="vote_interval_announcements">60</set>
- <!--  time in minutes between each announcement
  -->
  <set name="vote_interval_failed">90</set>

and here the results: i have to attack the log because The message exceeds the maximum allowed length (20000 characters).

but basically

110205 12:28:04   VERBOSE   Queueing event Say !votegametype koth
110205 12:28:04   VERBOSE   Parsing Event: Say: AdminPlugin
110205 12:28:04   DEBUG   AdminPlugin: OnSay handle 5:"!votegametype koth"
110205 12:28:04   DEBUG   AdminPlugin: Handle command !votegametype koth
110205 12:28:04   VERBOSE   RCON sending (93.93.65.39:28971) say ^0(^2b3^0)^7: Calling a vote to change gametype to ^3koth

110205 12:30:06   CONSOLE   94:46 K;01100001cca6c1e7;7;axis;GranTorino;01100001fca97b24;5;allies;n4n0;pavelow_minigun_mp;35;MOD_RIFLE_BULLET;neck
110205 12:30:06   VERBOSE   Queueing event Client Kill (35.0, 'pavelow_minigun_mp', 'neck', 'MOD_RIFLE_BULLET')
110205 12:30:06   VERBOSE   Parsing Event: Client Kill: StatsPlugin
110205 12:30:06   VERBOSE   stats vshift 0.0636363636364
110205 12:30:06   VERBOSE   RCON sending (93.93.65.39:28971) tell 17 ^0(^2b3^0)^7: ^3[pm]^7 ^7Vote failed. Too less people voted ^2yes

 ;D ;D ;D



[attachment deleted by maintenance]
« Last Edit: February 05, 2011, 07:50:15 PM by LiKaNtRoP »

Offline gabarram

  • Sr. Member
  • ****
  • Posts: 186
Re: Voting Plugin (by danger89)
« Reply #25 on: February 06, 2011, 01:51:06 AM »
Yes! It finally worked!

Thank you for the plugin, I love it^^

Offline gabarram

  • Sr. Member
  • ****
  • Posts: 186
Re: Voting Plugin (by danger89)
« Reply #26 on: February 06, 2011, 04:04:26 AM »
I have a question: when I call a vote to change gametype (!votegametype <gametype> ), it happens that despite no-one else votes yes or no, it changes the gametype to the one I proposed .

 How can I fix that?




Offline gabarram

  • Sr. Member
  • ****
  • Posts: 186
Re: Voting Plugin (by danger89)
« Reply #27 on: February 06, 2011, 02:22:45 PM »
I have a question: when I call a vote to change gametype (!votegametype <gametype> ), it happens that despite no-one else votes yes or no, it changes the gametype to the one I proposed .

 How can I fix that?




I downloaded your 2.1 version and it included the fix. Thank you^^

Offline Platanos

  • Sr. Member
  • ****
  • Posts: 296
    • The Last Unit
Re: Voting Plugin (by danger89)
« Reply #28 on: February 09, 2011, 08:28:43 AM »
Works great thx, but the Voteintervall are Seconds no Minutes  ;)

Offline danger89

  • Full Member
  • ***
  • Posts: 129
    • JoinMyServer - Game Servers
Re: Voting Plugin (by danger89)
« Reply #29 on: February 26, 2011, 11:38:13 PM »
Works great thx, but the Voteintervall are Seconds no Minutes  ;)

You're welcome :D I found also some minor bug, I will release  the next version soon!

About the vote intervals: some people say (Courgette) that it is in minutes, here running Linux 64bit it seems it is also in minutes. However I also no stories about that it goes too fast, so it seems to be in seconds.
I'm kinda confused, because I use OneTimeCronTab() from B3, this function should work exactly same on every PC or OS/Distro?

More about it, below:

Quote
Title: Re: Votekick
Post by: Ismael on May 30, 2009, 08:37:59 AM
Ok. I removed the !promote command. Use !makereg to make registered users :)

I added a delay between failed votes, though it isn't working exactly as I expected. If I ask for it to clear a user in 3 minutes, it does so in a time like 10, 20, 30... and not in between. I'm using OneTimeCronTab(command, 0, "*/somenumber"). Is this the Right Way?
Quote
Title: Re: Votekick
Post by: Courgette on May 30, 2009, 08:58:05 AM
for cron related commands, "*/x" means "every x minutes".
So that might not be what you want for a OneTimeCronTab.
Hope that helps
Source
JoinMyServer.com
Call of Duty 4 Game Servers

 


Rate this page +1 at Google Search