2
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
The creator of these plugins has not shown activity in a while. Posting in this board may not result in a fast reply or a reply at all. [ Read the full Support Disclaimer here ]
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: SuperAdmin plugin  (Read 24654 times)

Offline FinePoints

  • Jr. Member
  • **
  • Posts: 21
Re: SuperAdmin plugin
« Reply #15 on: April 19, 2009, 08:35:39 PM »
I gave it a few min for it to return but nothing.  The spams keep spammin but giving warnings or logging in nothing returns back

Offline FinePoints

  • Jr. Member
  • **
  • Posts: 21
Re: SuperAdmin plugin
« Reply #16 on: April 21, 2009, 12:00:52 AM »
I have noticed a few things most of the time B3 seems to do the dieing is when I attempt to delete a notice from a player.   B3 never returns and needs to be restarted.  Though it still spams its console messages.... Weird ::)

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: SuperAdmin plugin
« Reply #17 on: April 21, 2009, 07:31:59 AM »
Seems it hangs on deleting a notice.

Probably a small problem with the code.

Offline Mikobiko

  • Sr. Member
  • ****
  • Posts: 250
Re: SuperAdmin plugin
« Reply #18 on: April 22, 2009, 02:37:54 AM »
One thing I have noticed that it is not doing, is notices I add in echelon do not appear in game with this plugin. Only notices added in game.

Offline Ismael

  • Moderator
  • Full Member
  • *
  • Posts: 70
Re: SuperAdmin plugin
« Reply #19 on: April 23, 2009, 09:53:53 PM »
Please paste the log of B3 crashing (from the console you started it from). I've had no such failures. I can't fix what I can't see :(

I don't know how Echelon stores it's notices in the DB. I remember that Echelon creates some extra tables, maybe the notices are stored there? Any dev?

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: SuperAdmin plugin
« Reply #20 on: April 23, 2009, 09:59:23 PM »
no, it's basically a warning, but it's set to notice, not warning, tempban, or ban

Offline FinePoints

  • Jr. Member
  • **
  • Posts: 21
Re: SuperAdmin plugin
« Reply #21 on: April 24, 2009, 12:10:11 AM »
Ok this is what I saw when I looked at my log after doing the !deletenotice

There are no errors what so ever after that event all that does occure that I do notice is every event is being put in the queue but does not parse the events.

090423 14:49:01   DEBUG   AdminPlugin: Handle command !deletenotice duk 1
090423 14:49:01   VERBOSE   SuperadminPlugin: borrando
090423 14:49:02   VERBOSE   RCON sending (69.65.39.9:28960) tell 0 ^0(^2b3^0)^7: ^3[pm]^7 ^7Notice marked inactive
090423 14:49:04   CONSOLE   6639:00 say;dd8a3a3291a7a5ae2ee274981ee122b9;0;[ETS]FinePoints;!login fine
090423 14:49:04   VERBOSE   Queueing event Say !login fine
090423 14:49:05   CONSOLE   6639:01 J;086b85e3e1d80e2522927895a34b0132;10;Honkyball
090423 14:49:05   DEBUG   Getting the (PunkBuster) Playerlist
090423 14:49:05   VERBOSE   RCON sending (69.65.39.9:28960) PB_SV_PList
090423 14:49:05   VERBOSE   RCON: More data to read in socket
090423 14:49:05   VERBOSE   RCON: More data to read in socket
090423 14:49:06   VERBOSE   connectClient() = {0: {'slot': '1', 'status': 'OK', 'name': '[ETS]FinePoints', 'power': '1', 'ss': '0', 'ip': '69.66.174.206', 'auth': '3.1', 'pbid': 'dd8a3a3291a7a5ae2ee274981ee122b9', 'guid': 'dd8a3a3291a7a5ae2ee274981ee122b9', 'os': 'W', 'port': '28960'}, 1: {'slot': '2', 'status': 'OK', 'name': '[ETS]FuzzyDimes', 'power': '1', 'ss': '0', 'ip': '72.192.58.143', 'auth': '3.1', 'pbid': '8c60f25b5fce77ef08bcc85860ff1a2f', 'guid': '8c60f25b5fce77ef08bcc85860ff1a2f', 'os': 'W', 'port': '28960'}, 2: {'slot': '3', 'status': 'OK', 'name': '[ETS] Joe', 'power': '1', 'ss': '0', 'ip': '128.61.42.117', 'auth': '3.0', 'pbid': '47928a63dad836b8a3c44f148cc76a6e', 'guid': '47928a63dad836b8a3c44f148cc76a6e', 'os': 'W', 'port': '28960'}, 3: {'slot': '4', 'status': 'OK', 'name': 'Dr. Strangelove', 'power': '1', 'ss': '0', 'ip': '99.237.26.230', 'auth': '3.1', 'pbid': '9aa6e15abb0e68b4d6ab1751b3abb334', 'guid': '9aa6e15abb0e68b4d6ab1751b3abb334', 'os': 'W', 'port': '62938'}, 4: {'slot': '5', 'status': 'OK', 'name': 'HELLION', 'power': '1', 'ss': '0', 'ip': '71.207.160.242', 'auth': '3.0', 'pbid': 'b7342baea4638e1268cbd89e44591cfe', 'guid': 'b7342baea4638e1268cbd89e44591cfe', 'os': 'W', 'port': '28960'}, 5: {'slot': '6', 'status': 'OK', 'name': '[ETS]^1 D^7U^4K', 'power': '1', 'ss': '0', 'ip': '98.197.177.137', 'auth': '3.5', 'pbid': '41f4e8795d154506b0ac24fd63a7aa8f', 'guid': '41f4e8795d154506b0ac24fd63a7aa8f', 'os': 'W', 'port': '28960'}, 6: {'slot': '7', 'status': 'OK', 'name': 'GsG-3', 'power': '1', 'ss': '0', 'ip': '71.231.131.35', 'auth': '3.0', 'pbid': '0432bbaf5fc04b82bda3efabb8d3fa0b', 'guid': '0432bbaf5fc04b82bda3efabb8d3fa0b', 'os': 'W', 'port': '28960'}, 7: {'slot': '8', 'status': 'OK', 'name': '^7[^1E^7T^4S^7]', 'power': '1', 'ss': '0', 'ip': '82.73.153.236', 'auth': '3.0', 'pbid': '70a8729a5bf58b7aa3c809e59de8caec', 'guid': '70a8729a5bf58b7aa3c809e59de8caec', 'os': 'W', 'port': '2821'}, 8: {'slot': '9', 'status': 'OK', 'name': 'Bananas', 'power': '1', 'ss': '0', 'ip': '77.250.86.14', 'auth': '3.0', 'pbid': '639483d23f5cd13e2f950cb505cb4762', 'guid': '639483d23f5cd13e2f950cb505cb4762', 'os': 'W', 'port': '28960'}, 9: {'slot': '10', 'status': 'OK', 'name': '[ETS]2SiX4', 'power': '1', 'ss': '0', 'ip': '79.64.133.205', 'auth': '3.1', 'pbid': 'a659fba0ce94d72fd9b17e84abf0ae8f', 'guid': 'a659fba0ce94d72fd9b17e84abf0ae8f', 'os': 'W', 'port': '28960'}, 10: {'slot': '11', 'status': 'INIT', 'name': 'Honkyball', 'power': '1', 'ss': '3', 'ip': '76.108.111.42', 'auth': '0.0', 'pbid': '08b85e3e1d80e2522927895a34b0132', 'guid': '08b85e3e1d80e2522927895a34b0132', 'os': ' ', 'port': '28960'}, 12: {'slot': '13', 'status': 'OK', 'name': 'mimimi', 'power': '1', 'ss': '0', 'ip': '78.51.32.14', 'auth': '3.1', 'pbid': 'a035533a3bdb38d8826ed354405029cb', 'guid': 'a035533a3bdb38d8826ed354405029cb', 'os': 'W', 'port': '1024'}, 13: {'slot': '14', 'status': 'OK', 'name': 'Ju5tin', 'power': '1', 'ss': '0', 'ip': '172.130.97.201', 'auth': '3.1', 'pbid': '84a122c368c388e1c868e967ab1a6d31', 'guid': '84a122c368c388e1c868e967ab1a6d31', 'os': 'W', 'port': '28960'}, 14: {'slot': '15', 'status': 'OK', 'name': 'BERSERKER', 'power': '1', 'ss': '0', 'ip': '71.59.250.119', 'auth': '3.0', 'pbid': 'd0988fb20983cea39e70c8174c62eb54', 'guid': 'd0988fb20983cea39e70c8174c62eb54', 'os': 'M', 'port': '36273'}, 15: {'slot': '16', 'status': 'OK', 'name': '[ETS]KSHIGHLNDR', 'power': '1', 'ss': '0', 'ip': '68.103.126.116', 'auth': '3.0', 'pbid': 'af3f71c93533a8952b88367c5e9dc6d5', 'guid': 'af3f71c93533a8952b88367c5e9dc6d5', 'os': 'W', 'port': '1126'}, 19: {'slot': '20', 'status': 'OK', 'name': '[HSP]Merrell', 'power': '1', 'ss': '0', 'ip': '207.255.76.92', 'auth': '3.1', 'pbid': 'de832a0cb967de9bc3f9b8520bd203c2', 'guid': 'de832a0cb967de9bc3f9b8520bd203c2', 'os': 'W', 'port': '28960'}, 22: {'slot': '23', 'status': 'OK', 'name': 'Stockholm69', 'power': '1', 'ss': '0', 'ip': '85.24.170.231', 'auth': '3.1', 'pbid': '57e83d88cf9c0cee09744c7ec7ad209d', 'guid': '57e83d88cf9c0cee09744c7ec7ad209d', 'os': 'W', 'port': '28960'}}
090423 14:49:06   DEBUG   Client found in status/playerList
090423 14:49:06   DEBUG   guid: 086b85e3e1d80e2522927895a34b0132 (32), ip: 76.108.111.42
090423 14:49:06   VERBOSE   0 cid changed from None to 10
090423 14:49:06   DEBUG   Client Connected: [10] Honkyball - 086b85e3e1d80e2522927895a34b0132 ({})
090423 14:49:06   DEBUG   Storage: getClient <b3.clients.Client object at 0x02291C10>
090423 14:49:06   BOT       Client found in storage 3237, welcome back Honkyball
090423 14:49:06   DEBUG   Storage: setClient <b3.clients.Client object at 0x02291C10>
090423 14:49:06   DEBUG   Storage: setClient data {'time_add': 1207769186, 'time_edit': 1240523346, 'name': 'Honkyball', 'group_bits': 1, 'ip': '76.108.111.42', 'auto_login': 1, 'greeting': '', 'pbid': '086b85e3e1d80e2522927895a34b0132', 'connections': 609, 'mask_level': 0, 'guid': '086b85e3e1d80e2522927895a34b0132', 'id': 3237}
090423 14:49:06   DEBUG   Client Authorized: [10] Honkyball - 086b85e3e1d80e2522927895a34b0132
090423 14:49:06   VERBOSE   Queueing event Client Authenticated <b3.clients.Client object at 0x02291C10>
090423 14:49:07   CONSOLE   6639:03 D;70a8729a5bf58b7aa3c809e59de8caec;7;axis;[ETS] Cuchulin;57e83d88cf9c0cee09744c7ec7ad209d;22;allies;Stockholm69;claymore_mp;17;MOD_GRENADE_SPLASH;none
090423 14:49:07   CONSOLE   6639:03 K;a035533a3bdb38d8826ed354405029cb;12;;mimimi;57e83d88cf9c0cee09744c7ec7ad209d;22;;Stockholm69;claymore_mp;66;MOD_GRENADE_SPLASH;none
090423 14:49:07   VERBOSE   Queueing event Client Kill (66.0, 'claymore_mp', 'none', 'MOD_GRENADE_SPLASH')
090423 14:49:09   CONSOLE   6639:05 K;8c60f25b5fce77ef08bcc85860ff1a2f;1;;[ETS]FuzzyDimes;af3f71c93533a8952b88367c5e9dc6d5;15;;[ETS]KSHIGHLNDR;mp44_mp;40;MOD_RIFLE_BULLET;left_leg_lower
090423 14:49:10   CONSOLE   6639:06 K;57e83d88cf9c0cee09744c7ec7ad209d;22;;Stockholm69;70a8729a5bf58b7aa3c809e59de8caec;7;;[ETS] Cuchulin;uzi_silencer_mp;41;MOD_HEAD_SHOT;head
090423 14:49:10   VERBOSE   Queueing event Client Kill (41.0, 'uzi_silencer_mp', 'head', 'MOD_HEAD_SHOT')
090423 14:49:10   CONSOLE   6639:07 K;70a8729a5bf58b7aa3c809e59de8caec;7;;[ETS] Cuchulin;a659fba0ce94d72fd9b17e84abf0ae8f;9;;[ETS]2SiX4;colt45_silencer_mp;20;MOD_PISTOL_BULLET;torso_lower
090423 14:49:12   CONSOLE   6639:08 say;dd8a3a3291a7a5ae2ee274981ee122b9;0;[ETS]FinePoints;!restart
090423 14:49:12   VERBOSE   Queueing event Say !restart
090423 14:49:17   CONSOLE   6639:13 say;af3f71c93533a8952b88367c5e9dc6d5;15;[ETS]KSHIGHLNDR;oh oh
090423 14:49:17   VERBOSE   Queueing event Say oh oh
090423 14:49:22   CONSOLE   6639:18 say;af3f71c93533a8952b88367c5e9dc6d5;15;[ETS]KSHIGHLNDR;sorry
090423 14:49:22   VERBOSE   Queueing event Say sorry
090423 14:49:25   CONSOLE   6639:21 say;a659fba0ce94d72fd9b17e84abf0ae8f;9;[ETS]2SiX4;lol
090423 14:49:25   VERBOSE   Queueing event Say lol
090423 14:49:28   CONSOLE   6639:24 say;a035533a3bdb38d8826ed354405029cb;12;mimimi;i should stop that senseless rushin..xD
090423 14:49:28   VERBOSE   Queueing event Say i should stop that senseless rushin..xD
090423 14:49:32   CONSOLE   6639:28 K;dd8a3a3291a7a5ae2ee274981ee122b9;0;;[ETS]FinePoints;dd8a3a3291a7a5ae2ee274981ee122b9;-1;;[ETS]FinePoints;none;100000;MOD_SUICIDE;none
090423 14:49:32   VERBOSE   line did not match format: K;dd8a3a3291a7a5ae2ee274981ee122b9;0;;[ETS]FinePoints;dd8a3a3291a7a5ae2ee274981ee122b9;-1;;[ETS]FinePoints;none;100000;MOD_SUICIDE;none
090423 14:49:32   CONSOLE   6639:28 K;41f4e8795d154506b0ac24fd63a7aa8f;5;;[ETS] DUK;d0988fb20983cea39e70c8174c62eb54;14;;BERSERKER;g3_gl_mp;56;MOD_RIFLE_BULLET;right_arm_upper
090423 14:49:32   VERBOSE   Queueing event Client Kill (56.0, 'g3_gl_mp', 'right_arm_upper', 'MOD_RIFLE_BULLET')
090423 14:49:36   CONSOLE   6639:32 Q;b7342baea4638e1268cbd89e44591cfe;4;HELLION
090423 14:49:39   CONSOLE   6639:35 D;9aa6e15abb0e68b4d6ab1751b3abb334;3;axis;Dr. Strangelove;de832a0cb967de9bc3f9b8520bd203c2;19;allies;[HSP]Merrell;uzi_reflex_mp;28;MOD_PISTOL_BULLET;torso_lower
090423 14:49:40   CONSOLE   6639:36 K;af3f71c93533a8952b88367c5e9dc6d5;15;;[ETS]KSHIGHLNDR;0432bbaf5fc04b82bda3efabb8d3fa0b;6;;GsG-3;g3_silencer_mp;40;MOD_RIFLE_BULLET;torso_lower
090423 14:49:40   VERBOSE   Queueing event Client Kill (40.0, 'g3_silencer_mp', 'torso_lower', 'MOD_RIFLE_BULLET')
090423 14:49:40   CONSOLE   6639:36 K;9aa6e15abb0e68b4d6ab1751b3abb334;3;;Dr. Strangelove;de832a0cb967de9bc3f9b8520bd203c2;19;;[HSP]Merrell;uzi_reflex_mp;28;MOD_PISTOL_BULLET;left_leg_upper
090423 14:49:40   VERBOSE   Queueing event Client Kill (28.0, 'uzi_reflex_mp', 'left_leg_upper', 'MOD_PISTOL_BULLET')
090423 14:49:46   CONSOLE   6639:42 D;84a122c368c388e1c868e967ab1a6d31;13;axis;Ju5tin;de832a0cb967de9bc3f9b8520bd203c2;19;allies;[HSP]Merrell;uzi_reflex_mp;7;MOD_PISTOL_BULLET;torso_lower
090423 14:49:46   CONSOLE   6639:42 K;84a122c368c388e1c868e967ab1a6d31;13;;Ju5tin;de832a0cb967de9bc3f9b8520bd203c2;19;;[HSP]Merrell;uzi_reflex_mp;28;MOD_PISTOL_BULLET;left_arm_lower
090423 14:49:46   VERBOSE   Queueing event Client Kill (28.0, 'uzi_reflex_mp', 'left_arm_lower', 'MOD_PISTOL_BULLET')
090423 14:49:49   CONSOLE   6639:45 D;47928a63dad836b8a3c44f148cc76a6e;2;allies;[ETS] Joe;;-1;world;;none;4;MOD_FALLING;none
090423 14:49:51   CONSOLE   6639:47 Q;84a122c368c388e1c868e967ab1a6d31;13;Ju5tin
090423 14:49:51   CONSOLE   6639:47 sayteam;70a8729a5bf58b7aa3c809e59de8caec;7;[ETS] Cuchulin;would be nice mimi - somehow you always end up being in my way
090423 14:49:51   VERBOSE   Queueing event Team Say would be nice mimi - somehow you always end up being in my way
090423 14:49:52   CONSOLE   6639:48 D;47928a63dad836b8a3c44f148cc76a6e;2;allies;[ETS] Joe;;-1;world;;none;8;MOD_FALLING;none
090423 14:49:55   CONSOLE   6639:51 D;a659fba0ce94d72fd9b17e84abf0ae8f;9;allies;[ETS]2SiX4;;-1;world;;none;9;MOD_FALLING;none
090423 14:49:56   CONSOLE   6639:52 sayteam;70a8729a5bf58b7aa3c809e59de8caec;7;[ETS] Cuchulin;:P
090423 14:49:56   VERBOSE   Queueing event Team Say :P
090423 14:50:00   VERBOSE   RCON sending (69.65.39.9:28960) say ^0(^2b3^0)^7: ^3Rule#03:^1(Bunny)^3Do not jump to avoid enemy fire or use the 'jump shooting' tactic.
090423 14:50:01   VERBOSE   RCON sending (69.65.39.9:28960) status
090423 14:50:01   VERBOSE   RCON: More data to read in socket
090423 14:50:07   CONSOLE   6640:03 K;0432bbaf5fc04b82bda3efabb8d3fa0b;6;;GsG-3;47928a63dad836b8a3c44f148cc76a6e;2;;[ETS] Joe;usp_mp;40;MOD_PISTOL_BULLET;torso_upper
090423 14:50:07   VERBOSE   Queueing event Client Kill (40.0, 'usp_mp', 'torso_upper', 'MOD_PISTOL_BULLET')
090423 14:50:09   ERROR   **** Event queue was full (15)



Offline Ismael

  • Moderator
  • Full Member
  • *
  • Posts: 70
Re: SuperAdmin plugin
« Reply #22 on: May 24, 2009, 06:20:09 AM »
Sorry, got no idea what's wrong. Does any other dev have any ideas?

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: SuperAdmin plugin
« Reply #23 on: May 24, 2009, 11:07:17 AM »
First of all on line 209:
Code: python [Select]
		if cursor.rowcount > to_delete:
client.message('^7Number too high!')
return False

you probably want:
Code: python [Select]
if cursor.rowcount < to_delete:


But that's not the main thing. Looking at the buildup of your code I see that you are in a select-query-loop while your executing an update query. I'd suggest using a different code flow:

Code: python [Select]
  def cmd_delnotice(self, data, client, cmd=None):
    """\
    [name] [number] - mark notice [number] as inactive in DB
    """
   
    m = self._adminPlugin.parseUserCmd(data)
    if not m[0]:
      client.message('^7Invalid parameters')
      return False
    if not m[1]:
      client.message('^7Invalid parameters')
      return False   
   
    cid = m[0]
    sclient = self._adminPlugin.findClientPrompt(cid, client)
   
    _selectQuery = 'SELECT p.id FROM penalties p WHERE type = "Notice" AND inactive = 0 AND p.client_id = %s' %(sclient.id)
    cursor = self.console.storage.query(_selectQuery)

    to_delete = int(m[1])
   
    if cursor.rowcount < to_delete:
      client.message('^7Number too high!')
      cursor.close()
      return False
   
    if cursor.rowcount > 0:
      i = 1
      _needUpdate = False
      while not cursor.EOF or i > to_delete:
        r = cursor.getRow()
        if i == to_delete:
          # we found the notice, let's build the updateQuery
          self.verbose("borrando")
          _needUpdate = True
          _updateQuery = 'UPDATE penalties SET inactive=1 WHERE id = %s' %(r['id'])
          # We found the correct notice, break out of the loop
          break
        cursor.moveNext()
        i += 1
    cursor.close()

    if _needUpdate:
      c = self.console.storage.query(_updateQuery)
      c.close()
      cmd.sayLoudOrPM(client,  "^7Notice marked inactive")


Note 1: tabs are transformed to spaces, this may mess up your indentation when copying your code - I use spaces only for indentation!

Note 2: I've changed <name> <number> - mark notice <number> as inactive in DB to [name] [number] - mark notice [number] as inactive in DB only so the code highlighter of the page won't go berserk... You should change it back.

Note 3: This code is not tested, I'm trying to get you moving in a correct direction with your code, since we have no proper way to test updatequeries for errors, it comes down to avoid nesting queries so you can see where it stops.

Note 4: You might also want to consider using new threads for stressing or time-consuming actions, so the rest of the bot will not have to wait for them to finish. When you do that, make sure you test it thoroughly, for you will not be able to see when a thread does not finish, and you'll end up with endless counts of python threads in a worst case scenario. Your server will not like that!

Offline Ismael

  • Moderator
  • Full Member
  • *
  • Posts: 70
Re: SuperAdmin plugin
« Reply #24 on: May 29, 2009, 10:39:14 PM »
New release.

Added Listids: shows IDS from every player online. Useful for hunting cheaters.

Made changes suggested by xlr8or. Hope they fix the bugs with the notices. Please try and tell us!

xlr8or: I'll think about the threads. Thank you.

Offline FinePoints

  • Jr. Member
  • **
  • Posts: 21
Re: SuperAdmin plugin
« Reply #25 on: May 30, 2009, 12:27:04 AM »
I get these errors now in my logs


Code: [Select]
090529 15:19:10	DEBUG	AdminPlugin: OnSay handle 5:"!deletenotice"
090529 15:19:10 DEBUG AdminPlugin: Handle command !deletenotice
090529 15:19:10 VERBOSE RCON sending (69.65.39.9:28960) tell 1 ^0(^2b3^0)^7: ^3[pm]^7 ^7There was an error processing your command
090529 15:19:10 ERROR handler AdminPlugin could not handle event Say: TypeError: 'NoneType' object is unsubscriptable [('C:\\Servers\\ETS\\ETSB341\\b3\\parser.py', 521, 'handleEvents', 'hfunc.parseEvent(event)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugin.py', 129, 'parseEvent', 'self.onEvent(event)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugin.py', 147, 'onEvent', 'self.handle(event)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugins\\admin.py', 120, 'handle', 'self.OnSay(event)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugins\\admin.py', 252, 'OnSay', 'results = command.execute(data, event.client)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugins\\admin.py', 2058, 'execute', 'self.func(data, client, copy.copy(self))'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugins\\superadmin.py', 201, 'cmd_delnotice', 'if not m[0]:')]

Code: [Select]
090529 15:19:43	ERROR	handler SuperadminPlugin could not handle event Client Authenticated: NameError: global name 'cursor' is not defined [('C:\\Servers\\ETS\\ETSB341\\b3\\parser.py', 521, 'handleEvents', 'hfunc.parseEvent(event)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugin.py', 129, 'parseEvent', 'self.onEvent(event)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugins\\superadmin.py', 97, 'onEvent', 'self.tell_notices(event.client)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugins\\superadmin.py', 180, 'tell_notices', 'cursor.close()')]

Also now when I use !deletenotice I get error processing command


!listids works 100%!
« Last Edit: May 30, 2009, 12:31:34 AM by FinePoints »

Offline Ismael

  • Moderator
  • Full Member
  • *
  • Posts: 70
Re: SuperAdmin plugin
« Reply #26 on: May 30, 2009, 03:20:44 AM »
Fixed both of them.

Bear in mind that !deletenotices alone doesn't do anything. You have to give it 2 parameters, the player and the notice number.

Offline FinePoints

  • Jr. Member
  • **
  • Posts: 21
Re: SuperAdmin plugin
« Reply #27 on: May 30, 2009, 05:14:24 AM »
There still some issues with it


Code: [Select]
090529 20:10:58	DEBUG	AdminPlugin: OnSay handle 5:"!deletenotice your 1"
090529 20:10:58 DEBUG AdminPlugin: Handle command !deletenotice your 1
090529 20:10:58 VERBOSE RCON sending (69.65.39.9:28960) tell 0 ^0(^2b3^0)^7: ^3[pm]^7 ^7There was an error processing your command
090529 20:10:58 ERROR handler AdminPlugin could not handle event Say: NameError: global name '_needUpdate' is not defined [('C:\\Servers\\ETS\\ETSB341\\b3\\parser.py', 521, 'handleEvents', 'hfunc.parseEvent(event)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugin.py', 129, 'parseEvent', 'self.onEvent(event)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugin.py', 147, 'onEvent', 'self.handle(event)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugins\\admin.py', 120, 'handle', 'self.OnSay(event)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugins\\admin.py', 252, 'OnSay', 'results = command.execute(data, event.client)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugins\\admin.py', 2058, 'execute', 'self.func(data, client, copy.copy(self))'), ('C:\\Servers\\ETS\\ETSB341\\b3\\plugins\\superadmin.py', 233, 'cmd_delnotice', 'if _needUpdate:')]

Code: [Select]
090529 20:11:45	VERBOSE	RCON sending (69.65.39.9:28960) PB_SV_PList
090529 20:11:46 ERROR could not parse line global name 'functions' is not defined: [('C:\\Servers\\ETS\\ETSB341\\b3\\parser.py', 457, 'run', 'self.parseLine(line)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\parsers\\q3a.py', 136, 'parseLine', 'event = func(action, data, match)'), ('C:\\Servers\\ETS\\ETSB341\\b3\\parsers\\cod.py', 260, 'OnExitlevel', 'self.clients.sync()'), ('C:\\Servers\\ETS\\ETSB341\\b3\\clients.py', 1060, 'sync', 'mlist = self.console.sync()'), ('C:\\Servers\\ETS\\ETSB341\\b3\\parsers\\cod4.py', 156, 'sync', "if functions.fuzzyGuidMatch(client.guid, c['guid']):")]
« Last Edit: May 30, 2009, 05:18:22 AM by FinePoints »

Offline Ismael

  • Moderator
  • Full Member
  • *
  • Posts: 70
Re: SuperAdmin plugin
« Reply #28 on: May 30, 2009, 05:31:48 AM »
Woops!  :-[ :-[
Should have tried the code. Minor typo.

Fixed now. Thanks!

The second error you posted, I have no idea what's that one.

Offline FinePoints

  • Jr. Member
  • **
  • Posts: 21
Re: SuperAdmin plugin
« Reply #29 on: May 30, 2009, 09:48:31 AM »
Working 100% as I see right now!  Good work!

 


Rate this page +1 at Google Search

anything