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

[Insurgency] Output action multiple times


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Harald
Junior Member
Join Date: Sep 2014
Old 09-21-2014 , 14:26   [Insurgency] Output action multiple times
Reply With Quote #1

Hi!

I've almost successfully converted the insmod to function properly with the Insurgency standalone release. The only thing I'm having a problem with is when a player captures/destroys a point.

Since the game strongly encourages team-play - and in some cases depends on it - I've set the action code that activates when a player captures a point, to count towards both the team points and player points.

The problem here is that it outputs the event 16 times, since there are 16 players on the capturing team. Anyone have a possible fix on this?

When this happens, HLStatsX spams RCON with the following output:

PHP Code:
L 09/21/2014 16:20:02"Kosstik<147><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"Antons<151><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"XXXPUSSYSLAYERXXX<122><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"James<161><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"Chuba<179><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"| Imagine Gamer<111><STEAM_1:1:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"System.out.println (Laeda)<177><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"Pflaume<166><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"Patrick<169><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"EasyBoot<118><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"ICedrikI<149><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"BlueJody<150><STEAM_1:1:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"Soulless_Husbando of Priscilla<178><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"jerry.vandergriff16<139><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"(egg-tnc-dm)killyou.whaling<171><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"
L 09/21/2014 16:20:02"merci Jacquie&Michel<180><STEAM_1:0:00000000><#Team_Insurgent>" triggered "ins_cp_captured"

L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "147" 1 "Kosstik got 10 points (6,024) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "151" 1 "Antons got 10 points (5,349) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "122" 1 "XXXPUSSYSLAYERXXX got 10 points (21,314) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "161" 1 "James got 10 points (11,523) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "179" 1 "Chuba got 10 points (5,293) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "111" 1 "Imagine Gamer got 10 points (8,105) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "177" 1 "System.out.println '' Laeda '' got 10 points (1,945) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "166" 1 "Pflaume got 10 points (2,460) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "169" 1 "Patrick got 10 points (2,477) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "118" 1 "EasyBoot got 10 points (45,080) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "149" 1 "ICedrikI got 10 points (3,341) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "150" 1 "BlueJody got 10 points (3,331) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "178" 1 "Soulless_Husbando of Priscilla got 10 points (2,005) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "139" 1 "jerry.vandergriff16 got 10 points (6,856) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "171" 1 "(egg-tnc-dm)killyou.whaling got 10 points (2,535) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17$
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "180" 1 "merci Jacquie&Michel got 10 points (2,034) for Captured Objective""
L 09/21/2014 16:20:02rcon from "MYIPADRESS:37831"command "hlx_sm_psay "145,151,129,143,139,147,171,118,111,144,155,149,169,180,181,170,113,157,177,158,150,161,17

Last edited by Harald; 11-17-2014 at 17:55.
Harald is offline
Govik_420
Junior Member
Join Date: Feb 2009
Location: Orem, UT
Old 11-17-2014 , 02:29   Re: [Insurgency] Output action multiple times
Reply With Quote #2

From what I understand this is built into the game... everyone on the team is rewarded with a capture since everyone in some way or another had something to do with the capture at least that is supposedly the logic behind this. Hope this helps.

On another note I'd be really interested in what you have done since I'm trying to get HLStatsX:CE to work with my Insurgency 2014 server. Any way you could update or release what you have? I'm decent with making graphics so I'm sure I could come up with the missing weapons, awards, and other things just not sure how to label weapons so that the updated logger by Brutus will track the stats. Any help you could provide would be awesome really want to get this working. Once I figure this all out I will likely release a pack on here so others can take advantage, anything you provided and I used I would credit you for of course.
__________________
-Govik_420
Govik_420 is offline
Harald
Junior Member
Join Date: Sep 2014
Old 11-17-2014 , 17:52   Re: [Insurgency] Output action multiple times
Reply With Quote #3

Hi there Govik! You can check out the page here: stats.bromance.gg

Add me on steam, and we'll talk! http://steamcommunity.com/id/bro-froosh/

Last edited by Harald; 11-17-2014 at 17:53.
Harald is offline
jballou
Member
Join Date: Jul 2013
Old 11-29-2014 , 05:46   Re: [Insurgency] Output action multiple times
Reply With Quote #4

To catch up on this, I've done a LOT of work to get Insurgency Standalone working in HLStatsX, and it's in pretty good shape. I don't have great docs or packaging as yet, but add me on Steam if you need help.

You'll want some plugins from my SourceMod tree. Namely the Brutus logger which I overhauled significantly, I've added a lot of new events and am in the process of fixing control points. Right now, destroying a cache rewards the person who destroyed it and one "assist". I am trying to get a straightforward way to track the players on the cap points so that even the capture event is triggered, it loops through players and sends a capture log event for the single player. Either way, it's much less buggy and has better support for things like recording player team and class changes, so I'd recommend giving that a shot. You'll need the plugin, and the config file as well.
https://bitbucket.org/jballou/insurg...ing/?at=master
Then, I created a tool that builds a SQL query to add Insurgency support with all the weapons/awards/maps, it SHOULD be OK to be executed over an existing database and just fill in/update the blanks, but backup before you use it.
http://ins.jballou.com/create-hlstatsdump.php
Then, I have a HLStatsX install which includes a bunch of nice features:
-Support for class and team tracking in event databases
-Heatmaps are working
-Insurgency weapon images generated automatically from game files (ribbons/awards soon to come).
Pick and choose what you need, I recommend at least grabbing the web/hlstatsimg/games/insurgency/weapons folder for images, and heatmaps for the Heatmap support.

Let me know if you need anything else.
jballou is offline
ltgenkd
AlliedModders Donor
Join Date: Sep 2008
Old 12-06-2014 , 23:09   Re: [Insurgency] Output action multiple times
Reply With Quote #5

Quote:
Originally Posted by jballou View Post
To catch up on this, I've done a LOT of work to get Insurgency Standalone working in HLStatsX, and it's in pretty good shape. I don't have great docs or packaging as yet, but add me on Steam if you need help.

You'll want some plugins from my SourceMod tree. Namely the Brutus logger which I overhauled significantly, I've added a lot of new events and am in the process of fixing control points. Right now, destroying a cache rewards the person who destroyed it and one "assist". I am trying to get a straightforward way to track the players on the cap points so that even the capture event is triggered, it loops through players and sends a capture log event for the single player. Either way, it's much less buggy and has better support for things like recording player team and class changes, so I'd recommend giving that a shot. You'll need the plugin, and the config file as well.
https://bitbucket.org/jballou/insurg...ing/?at=master
Then, I created a tool that builds a SQL query to add Insurgency support with all the weapons/awards/maps, it SHOULD be OK to be executed over an existing database and just fill in/update the blanks, but backup before you use it.
http://ins.jballou.com/create-hlstatsdump.php
Then, I have a HLStatsX install which includes a bunch of nice features:
-Support for class and team tracking in event databases
-Heatmaps are working
-Insurgency weapon images generated automatically from game files (ribbons/awards soon to come).
Pick and choose what you need, I recommend at least grabbing the web/hlstatsimg/games/insurgency/weapons folder for images, and heatmaps for the Heatmap support.

Let me know if you need anything else.
When I compile the brutus_ins_logger.sp from your link above, it compiles but throws out 16 warnings.
Is there any thing to be concerned about
__________________
ltgenkd is offline
jballou
Member
Join Date: Jul 2013
Old 12-12-2014 , 02:41   Re: [Insurgency] Output action multiple times
Reply With Quote #6

Yeah, it was from a lot of event attributes that I defined as variables and didn't touch. I went through and cleaned it up, now compiles withiout warnings or errors. https://github.com/jaredballou/insur..._ins_logger.sp
jballou is offline
jballou
Member
Join Date: Jul 2013
Old 01-20-2015 , 16:07   Re: [Insurgency] Output action multiple times
Reply With Quote #7

Some of these links are dead, new thread for the Insurgency logger I forked at https://forums.alliedmods.net/showthread.php?t=253201
jballou 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 16:26.


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