thankyou
Donate to the B3 fund!

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

Author Topic: Insurgency  (Read 10023 times)

Offline setman

  • Sr. Member
  • ****
  • Posts: 208
Insurgency
« on: September 05, 2013, 02:42:06 AM »
Anything on Insurgency?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Insurgency
« Reply #1 on: September 05, 2013, 05:06:13 PM »
Does that game match B3 requirements ?

Offline setman

  • Sr. Member
  • ****
  • Posts: 208
Re: Insurgency
« Reply #2 on: September 05, 2013, 11:36:33 PM »
sure does

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Insurgency
« Reply #3 on: September 06, 2013, 12:17:10 AM »
it would then be nice of you if you could provide links to documentation for the rcon protocol and provide game log examples and any information that would ease the work of any dev willing to help with your request

Offline setman

  • Sr. Member
  • ****
  • Posts: 208
Re: Insurgency
« Reply #4 on: September 06, 2013, 01:36:41 AM »
OK Will do. Thanks

Offline Zydu

  • Newbie
  • *
  • Posts: 4
Re: Insurgency
« Reply #5 on: January 27, 2014, 12:58:54 AM »
Insurgency is running on Counter-Strike Global Offensive engine so it should be similar.

Offline Ski

  • Full Member
  • ***
  • Posts: 123
Re: Insurgency
« Reply #6 on: February 02, 2014, 06:13:15 PM »
Just curious about an insurgency parse as well. Anything began with it yet?

Ski

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re:
« Reply #7 on: February 02, 2014, 07:22:17 PM »
You would need to find someone playing that game and with programming skills willing to give it a try

Offline tynman

  • Full Member
  • ***
  • Posts: 51
    • Devil Dogs Hosting LLC
Re: Insurgency
« Reply #8 on: February 02, 2014, 09:02:06 PM »
I'll buy the game for the developer that has some time to put into this and offer servers for testing.

I am not hosting this game for commercial use as I am no longer a provider, but for personal game time and my gaming team. I really enjoy this game and hope it takes off.

Offline Spoon

  • Sr. Member
  • ****
  • Posts: 255
    • EHD Gaming
Re: Insurgency
« Reply #9 on: February 02, 2014, 11:20:29 PM »
if you install metamod & sourcemod then add
Code: [Select]
// Logging

log "on" // Creates a logfile (Enable= on Disable= off)
sv_logbans "1" // Log server bans in the server logs (Enable=1 Disable= 0)
sv_logecho "1" // Log echo information in the console (Enable= 1 Disbale= 0)
sv_logfile "1" // Log server information in the logfile (Enable= 1 Disable= 0)
to your server.cfg and add
Code: [Select]
-condebug
to your command line
you should be able to use the csgo parser
« Last Edit: February 02, 2014, 11:34:03 PM by Spoon »

Offline tynman

  • Full Member
  • ***
  • Posts: 51
    • Devil Dogs Hosting LLC
Re: Insurgency
« Reply #10 on: February 03, 2014, 09:55:50 PM »
Thank you Spoon, it is doable.

Offline spunga

  • Jr. Member
  • **
  • Posts: 25
Re: Insurgency
« Reply #11 on: April 01, 2014, 02:22:14 PM »
Hi,

I've installed this onto my Insurgency server, to get rid of some errors I changed the following in the csgo parser

From
Code: [Select]
    def getTeam(self, team):
        """
        convert team CS:GO id to B3 team numbers
        """
        if not team or team == "Unassigned":
            return TEAM_UNKNOWN
        elif team == "TERRORIST":
            return TEAM_BLUE
        elif team == "CT":
            return TEAM_RED
#        elif team = "???": # TODO find out what the spec team is
#            return TEAM_SPEC
        else:
            self.debug("unexpected team id : %s" % team)
            return TEAM_UNKNOWN

To
Code: [Select]
    def getTeam(self, team):
        """
        convert team CS:GO id to B3 team numbers
        """
        if not team or team == "#Team_Unassigned":
            return TEAM_UNKNOWN
        elif team == "#Team_Insurgent":
            return TEAM_BLUE
        elif team == "#Team_Security":
            return TEAM_RED
#        elif team = "???": # TODO find out what the spec team is
#            return TEAM_SPEC
        else:
            self.debug("unexpected team id : %s" % team)
            return TEAM_UNKNOWN


Everything except kick, ban and permban seems to work.
Here is a short log extract running permban against a player (not online as I'm testing) but is in my Echelon database.


Code: [Select]
140401 12:56:52	CONSOLE	'[PARA]GEN.Spunga: !pb @531 rule1'
140401 12:56:52 CONSOLE 'L 04/01/2014 - 12:56:51: "[PARA]GEN.Spunga<3><STEAM_1:0:30680750><#Team_Security>" say "!pb @531 rule1"'
140401 12:56:52 VERBOSE u'Queueing event Say !pb @531 rule1'
140401 12:56:52 VERBOSE 'Parsing Event: Say: AdminPlugin'
140401 12:56:52 DEBUG u'AdminPlugin: OnSay handle 5:"!pb @531 rule1"'
140401 12:56:52 DEBUG u'AdminPlugin: Handle command !pb @531 rule1'
140401 12:56:52 DEBUG "Storage: getClientsMatching {'id': u'531'}"
140401 12:56:52 DEBUG u'Storage: setClient Client<@531:STEAM_1:0:76195312|:"SeriousHitman":None>'
140401 12:56:52 DEBUG "Storage: setClient data {'time_add': 1396115479, 'password': u'', 'time_edit': 1396353412, 'name': u'SeriousHitman', 'group_bits': 0, 'ip': u'', 'auto_login': 1, 'greeting': u'', 'pbid': u'', 'connections': 2, 'mask_level': 0, 'login': u'', 'guid': u'STEAM_1:0:76195312', 'id': 531}"
140401 12:56:52 DEBUG u'BAN : client: Client<@531:STEAM_1:0:76195312|:"SeriousHitman":None>, reason: ^3Rule #1: No racism of any kind'
140401 12:56:52 INFO u'RCON SEND: b3_psay #STEAM_1:0:30680750 "There was an error processing your command"'
140401 12:56:52 INFO u'RCON RECEIVED: (Private: [PARA]GEN.Spunga) [B3]: There was an error processing your command\nL 04/01/2014 - 12:56:52: rcon from "213.171.220.129:4066": command "b3_psay #STEAM_1:0:30680750 "There was an error processing your command""\n'
140401 12:56:52 ERROR 'handler AdminPlugin could not handle event Say: TypeError: not enough arguments for format string [(\'C:\\\\Python27_Insurgency\\\\b3\\\\parser.py\', 1055, \'handleEvents\', \'hfunc.parseEvent(event)\'), (\'C:\\\\Python27_Insurgency\\\\b3\\\\plugin.py\', 158, \'parseEvent\', \'self.onEvent(event)\'), (\'C:\\\\Python27_Insurgency\\\\b3\\\\plugin.py\', 176, \'onEvent\', \'self.handle(event)\'), (\'C:\\\\Python27_Insurgency\\\\b3\\\\plugins\\\\admin.py\', 296, \'handle\', \'self.OnSay(event)\'), (\'C:\\\\Python27_Insurgency\\\\b3\\\\plugins\\\\admin.py\', 441, \'OnSay\', \'results = command.execute(data, event.client)\'), (\'C:\\\\Python27_Insurgency\\\\b3\\\\plugins\\\\admin.py\', 2227, \'execute\', \'self.func(data, client, copy.copy(self))\'), (\'C:\\\\Python27_Insurgency\\\\b3\\\\plugins\\\\admin.py\', 1434, \'cmd_permban\', \'sclient.ban(reason, keyword, client)\'), (\'C:\\\\Python27_Insurgency\\\\b3\\\\clients.py\', 522, \'ban\', \'self.console.ban(self, reason, admin, silent)\'), (\'C:\\\\Python27_Insurgency\\\\b3\\\\parsers\\\\csgo.py\', 628, \'ban\', "fullreason = self.getMessage(\'banned_by\', self.getMessageVariables(client=client, reason=reason, admin=admin))"), (\'C:\\\\Python27_Insurgency\\\\b3\\\\parser.py\', 824, \'getMessage\', \'return msg % args[0]\')]'
140401 12:57:00 VERBOSE 'AdminPlugin Say : (ms) min(2.7), max(16.3), mean(12.3), stddev(6.4)'

I'm running b3 ver 1.9.2 on this server.

Any clues (for a noob) where I might look to fix this?


Many thanks,
Paul.

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Insurgency
« Reply #12 on: April 01, 2014, 11:25:18 PM »
based on your feedback, I added insurgency support to B3 1.10.
Game code is 'insurgency' (for use in your b3.xml)

The insurgency B3 parser is available since B3 v1.10dev.daily177 that you can download at http://files.cucurb.net/b3/daily/

Or you can follow the latest code of the 1.10 branch on github

Please use B3 1.10 from now for Insurgency. I you want to keep your database data from B3 1.9.x, then you need to migrate them:
 - first make a backup of your database so you can recover any loss
 - then run the b3_run command with --update parameter

Quote
Any clues (for a noob) where I might look to fix this?
About the error shown in your last post, I suspect a misconfiguration in your b3.xml file.
Put back
Code: [Select]
<set name="banned_by">$clientname^7 was banned by $adminname^7 $reason</set>
and it should go fine
« Last Edit: April 01, 2014, 11:28:43 PM by Courgette »

Offline spunga

  • Jr. Member
  • **
  • Posts: 25
Re: Insurgency
« Reply #13 on: April 02, 2014, 02:34:36 PM »
Thank you very much.

I loaded  B3 v1.10dev and everything works.

Your a star!!! I owe you one.


Best regards,
Paul.

 


Rate this page +1 at Google Search

anything