Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!

Author Topic: Update on Insurgency Problems  (Read 1319 times)

Offline zdanman

  • Full Member
  • ***
  • Posts: 68
Update on Insurgency Problems
« on: March 15, 2015, 04:05:18 AM »
Updated to build 350 and still not getting disconnect or kick events fired...

b3.log
Code: [Select]
150314 22:00:41	DEBUG	u'AdminPlugin: OnSay handle 9:"!kb paul"'
150314 22:00:41 DEBUG u'AdminPlugin: handle command !kb paul'
150314 22:00:41 DEBUG 'BotcontrolPlugin: BotControlEvent: KickBot command called'
150314 22:00:41 VERBOSE u'BotcontrolPlugin: Searching for bot under name:paul;'
150314 22:00:41 VERBOSE u'BotcontrolPlugin: Bot found (Client<@0:BOT4|:"Paul":4>);  Kicking...'
150314 22:00:41 INFO u'RCON SEND: sm_psay #STEAM_1:0:11514781 "[CiD]: Kicking bot (Paul)..."'
150314 22:00:41 INFO u'RCON RECEIVED: (Private to [CiD] DanBalls) Console: [CiD]: Kicking bot (Paul)...\nL 03/14/2015 - 22:00:41: [basechat.smx] "Console<0><Console><Console>" triggered sm_psay to "[CiD] DanBalls<2><STEAM_1:0:11514781><>" (text [CiD]: Kicking bot (Paul)...)\nL 03/14/2015 - 22:00:41: rcon from "23.81.154.166:64943": command "sm_psay #STEAM_1:0:11514781 "[CiD]: Kicking bot (Paul)...""\n'
150314 22:00:41 INFO u'RCON SEND: sm_kick #4'
150314 22:00:41 INFO u'RCON RECEIVED: [SM] Kicked Paul\nL 03/14/2015 - 22:00:41: [basecommands.smx] "Console<0><Console><Console>" kicked "Paul<4><BOT><>" (reason "")\nL 03/14/2015 - 22:00:41: "Paul<4><BOT><#Team_Security>" disconnected (reason "Kicked by Console : Kicked by administrator")\nL 03/14/2015 - 22:00:41: rcon from "23.81.154.166:64943": command "sm_kick #4"\n'
150314 22:00:41 VERBOS2 'Say event handled by AdminPlugin in 30.742 ms'
150314 22:00:41 VERBOSE 'Parsing event: Say: CensorPlugin'
150314 22:00:41 VERBOS2 'Say event handled by CensorPlugin in 0.736 ms'
150314 22:00:41 VERBOSE 'Parsing event: Say: SpamcontrolPlugin'
150314 22:00:41 VERBOS2 'Say event handled by SpamcontrolPlugin in 0.789 ms'
150314 22:00:55 CONSOLE 'L 03/14/2015 - 22:00:54: "Jonny<9><BOT><#Team_Insurgent>" killed "Jeremy<7><BOT><#Team_Security>" with "fal<26>" at (1350.378174, 798.618958, 40.298668)'
150314 22:00:55 VERBOS2 "calling on_kill{'a_team': u'#Team_Insurgent', 'a_name': u'Jonny', 'v_team': u'#Team_Security', 'a_cid': u'9', 'weapon': u'fal<26>', 'v_guid': u'BOT', 'v_name': u'Jeremy', 'properties': u' at (1350.378174, 798.618958, 40.298668)', 'v_cid': u'7', 'a_guid': u'BOT'}"
150314 22:00:55 VERBOS2 u'BOT guid is BOT9'

Also, the xlrstats is still not fixed.
I have to change line 766 of xlrstats/__init__.py from

Code: [Select]
        assert name is not None

to

Code: [Select]
        if name is None:
            return MapStats()

in order to get xlrstats to work, otherwise it will get an assertion and fail because map is sometimes None.

Please fix.

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2611
Re: Update on Insurgency Problems
« Reply #1 on: March 15, 2015, 04:28:27 AM »
It looks like you will have to raise those events yourself, since it seems like the server doesn't send a response in the console log when you run your plugin code.

We'll have to think about what to do with the map name, but it might help if you could provide logs where the map name is not returned by the server.
« Last Edit: March 15, 2015, 04:30:33 AM by 82ndAB.Bravo17 »

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2611
Re: Update on Insurgency Problems
« Reply #2 on: March 15, 2015, 07:39:47 PM »
NVM, it looks like the server no longer gives the map name in response to the status command. Have to see if there is another way to get it.

Offline zdanman

  • Full Member
  • ***
  • Posts: 68
Re: Update on Insurgency Problems
« Reply #3 on: March 17, 2015, 11:14:16 PM »
Regardless an assertion should not be raised if the map is unknown.  Even on other games this is not always known especially during startup.

Wouldn't it be easiest to just somehow have the parser parse 'RCON RECEIVED' logs events?

Also, note that status does SOMETIMES return a map... but not always (another reason to not assert).
« Last Edit: March 17, 2015, 11:27:15 PM by zdanman »

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2611
Re: Update on Insurgency Problems
« Reply #4 on: March 20, 2015, 09:48:52 PM »
Please try the latest dev version, the map name is retrieved from host_map now.

 


Rate this page +1 at Google Search

anything