Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T7x stats are inaccurate #356

Open
tinyoverflow opened this issue Feb 10, 2025 · 3 comments
Open

T7x stats are inaccurate #356

tinyoverflow opened this issue Feb 10, 2025 · 3 comments

Comments

@tinyoverflow
Copy link

tinyoverflow commented Feb 10, 2025

Hello,

I'm testing this with a T7x server, but unfortunately the collected stats are far from accurate.
After making like 500 kills, !stats and the WebUI only shows around 50.

Also, Anti Cheat Metric 1-5 are just NaN%, and 6 and 7 are both 0.

Is T7x or Black Ops 3 fully supported or is it a fluke on my side?
I'm using this log server with the t7x/games_mp.log file. I've attached an excerpt, though I'm not sure if this file is sourced for those metrics.

 58:30 D;83890dbd586072c4;12;axis;xxx;bot0;10;allies;[NN]St0rm;shotgun_precision+extbarrel+rf;57;MOD_PISTOL_BULLET;left_arm_lower
 58:30 D;83890dbd586072c4;12;axis;xxx;bot0;10;allies;[NN]St0rm;shotgun_precision+extbarrel+rf;7;MOD_PISTOL_BULLET;right_hand
 58:30 D;83890dbd586072c4;12;axis;xxx;bot0;10;allies;[NN]St0rm;shotgun_precision+extbarrel+rf;7;MOD_PISTOL_BULLET;right_hand
 58:30 D;83890dbd586072c4;12;axis;xxx;bot0;10;allies;[NN]St0rm;shotgun_precision+extbarrel+rf;7;MOD_PISTOL_BULLET;left_leg_lower
 58:30 Q;83890dbd586072c4;12;xxx
 58:31 K;bot0;6;axis;[IW2x]Jasmin;;-1;world;;none;1000;MOD_TRIGGER_HURT;none
 58:32 D;bot0;1;allies;[IW3x]Dss0;bot0;4;axis;[IW5x]Joel;lmg_heavy+acog+quickdraw+rf;33;MOD_HEAD_SHOT;head
 58:32 D;bot0;1;allies;[IW3x]Dss0;bot0;4;axis;[IW5x]Joel;lmg_heavy+acog+quickdraw+rf;30;MOD_RIFLE_BULLET;torso_lower
 58:32 J;bot0;0;[IW5x]momo5502
 58:33 K;bot0;9;allies;[IW2x]Diamante;;-1;world;;none;1000;MOD_TRIGGER_HURT;none
 58:33 D;bot0;11;axis;[IW5x]Louve;;-1;world;;none;25;MOD_DROWN;none
 58:35 K;bot0;1;allies;[IW3x]Dss0;bot0;4;axis;[IW5x]Joel;lmg_heavy+acog+quickdraw+rf;30;MOD_RIFLE_BULLET;right_arm_upper
 58:36 D;bot0;2;axis;[NN]FutureRave;bot0;10;allies;[NN]St0rm;shotgun_precision+extbarrel+rf;57;MOD_PISTOL_BULLET;torso_upper
 58:36 D;bot0;2;axis;[NN]FutureRave;bot0;10;allies;[NN]St0rm;shotgun_precision+extbarrel+rf;6;MOD_PISTOL_BULLET;left_arm_upper
 58:36 D;bot0;2;axis;[NN]FutureRave;bot0;10;allies;[NN]St0rm;shotgun_precision+extbarrel+rf;7;MOD_PISTOL_BULLET;torso_lower
 58:37 D;bot0;10;allies;[NN]St0rm;bot0;2;axis;[NN]FutureRave;ar_longburst;33;MOD_HEAD_SHOT;head
 58:37 D;bot0;10;allies;[NN]St0rm;bot0;2;axis;[NN]FutureRave;ar_longburst;33;MOD_HEAD_SHOT;head
 58:39 D;bot0;5;allies;[NN]Joel;;-1;world;;none;18;MOD_FALLING;none
 58:39 D;bot0;10;allies;[NN]St0rm;bot0;2;axis;[NN]FutureRave;ar_longburst;30;MOD_RIFLE_BULLET;torso_upper
 58:40 D;bot0;8;allies;[<3]Jasmin;bot0;2;axis;[NN]FutureRave;amws_gun_turret;35;MOD_RIFLE_BULLET;head
 58:40 D;bot0;8;allies;[<3]Jasmin;bot0;2;axis;[NN]FutureRave;amws_gun_turret;35;MOD_RIFLE_BULLET;head
 58:40 K;bot0;10;allies;[NN]St0rm;bot0;2;axis;[NN]FutureRave;ar_longburst;33;MOD_HEAD_SHOT;head
 58:41 D;bot0;3;allies;[FR]FutureRave;;-1;world;;none;25;MOD_DROWN;none
 58:41 D;bot0;9;allies;[IW2x]Diamante;bot0;11;axis;[IW5x]Louve;hero_minigun;35;MOD_RIFLE_BULLET;left_arm_upper
 58:41 D;bot0;9;allies;[IW2x]Diamante;bot0;11;axis;[IW5x]Louve;hero_minigun;35;MOD_RIFLE_BULLET;torso_upper
 58:41 K;bot0;9;allies;[IW2x]Diamante;bot0;11;axis;[IW5x]Louve;hero_minigun;35;MOD_RIFLE_BULLET;torso_upper
 58:42 D;bot0;1;allies;[IW3x]Dss0;bot0;11;axis;[IW5x]Louve;hero_minigun;35;MOD_RIFLE_BULLET;torso_lower
 58:43 D;bot0;3;allies;[FR]FutureRave;;-1;world;;none;25;MOD_DROWN;none
 58:43 K;bot0;8;allies;[<3]Jasmin;bot0;2;axis;[NN]FutureRave;amws_gun_turret;35;MOD_RIFLE_BULLET;head
 58:43 K;bot0;2;axis;[NN]FutureRave;bot0;8;allies;[<3]Jasmin;shotgun_energy;101;MOD_PROJECTILE;none
 58:44 D;bot0;1;allies;[IW3x]Dss0;bot0;11;axis;[IW5x]Louve;hero_minigun;35;MOD_RIFLE_BULLET;right_arm_upper
 58:45 D;bot0;3;allies;[FR]FutureRave;;-1;world;;none;25;MOD_DROWN;none
 58:45 K;bot0;11;axis;[IW5x]Louve;bot0;1;allies;[IW3x]Dss0;sniper_powerbolt+extclip+swayreduc;198;MOD_RIFLE_BULLET;torso_lower
 58:47 K;bot0;3;allies;[FR]FutureRave;;-1;world;;none;25;MOD_DROWN;none
 58:48 D;bot0;4;axis;[IW5x]Joel;bot0;9;allies;[IW2x]Diamante;shotgun_pump;88;MOD_PISTOL_BULLET;torso_lower
 58:48 D;bot0;4;axis;[IW5x]Joel;bot0;9;allies;[IW2x]Diamante;shotgun_pump;2;MOD_PISTOL_BULLET;left_arm_upper
 58:48 D;bot0;4;axis;[IW5x]Joel;bot0;9;allies;[IW2x]Diamante;shotgun_pump;2;MOD_HEAD_SHOT;head
 58:48 D;bot0;4;axis;[IW5x]Joel;bot0;9;allies;[IW2x]Diamante;shotgun_pump;2;MOD_PISTOL_BULLET;torso_lower
 58:49 K;bot0;4;axis;[IW5x]Joel;bot0;9;allies;[IW2x]Diamante;shotgun_pump;95;MOD_MELEE_WEAPON_BUTT;torso_mid
 58:49 D;bot0;1;allies;[IW3x]Dss0;bot0;2;axis;[NN]FutureRave;ar_longburst;21;MOD_RIFLE_BULLET;torso_lower
 58:49 K;bot0;1;allies;[IW3x]Dss0;bot0;2;axis;[NN]FutureRave;ar_longburst;30;MOD_RIFLE_BULLET;torso_upper
 58:51 D;bot0;5;allies;[NN]Joel;bot0;5;allies;[NN]Joel;incendiary_fire;35;MOD_BURNED;none

Thank you!

@RaidMax
Copy link
Owner

RaidMax commented Feb 10, 2025

If you have ignore bots set to true stats will not be counted for bot kills. There is no anticheat support for T7.

@tinyoverflow
Copy link
Author

tinyoverflow commented Feb 11, 2025

Thanks! I've tried setting that option to false, but unfortunately it doesn't seem to fix the issue. But I instead found these entries inside my IW4M-Admin log file. My parser is set to "BOIII Parser". The same messages also appear when a player kills a bot or a bot kills a player. I'm not sure what happens if a player kills another player.

I'd like to count bot kills (so when a player kills a bot), but I do not need to track stats for the bots themself.

[2025-02-11 11:21:16.120 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line K;bot0;4;team5;[NN]Joel;bot0;3;team4;[IW3x]Joel;sniper_powerbolt+swayreduc;198;MOD_HEAD_SHOT;head
[2025-02-11 11:21:16.120 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;10;team11;[IW3x]Joel;bot0;6;team7;[IW5x]Louve;ar_fastburst+holo;44;MOD_HEAD_SHOT;head
[2025-02-11 11:21:16.622 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;12;team13;[IW5x]Diamante;bot0;2;team3;[<3]Jasmin;ar_damage+reddot;40;MOD_RIFLE_BULLET;right_arm_lower
[2025-02-11 11:21:16.622 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;10;team11;[IW3x]Joel;bot0;6;team7;[IW5x]Louve;ar_fastburst+holo;44;MOD_HEAD_SHOT;head
[2025-02-11 11:21:16.623 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line K;bot0;10;team11;[IW3x]Joel;bot0;6;team7;[IW5x]Louve;ar_fastburst+holo;44;MOD_HEAD_SHOT;head
[2025-02-11 11:21:16.623 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;11;team12;[FR]Louve;bot0;0;allies;[IW3x]Dss0;ar_fastburst+holo;40;MOD_RIFLE_BULLET;left_leg_lower
[2025-02-11 11:21:16.623 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;12;team13;[IW5x]Diamante;bot0;2;team3;[<3]Jasmin;ar_damage+reddot;40;MOD_RIFLE_BULLET;torso_upper
[2025-02-11 11:21:17.126 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line K;bot0;12;team13;[IW5x]Diamante;bot0;2;team3;[<3]Jasmin;ar_damage+reddot;40;MOD_RIFLE_BULLET;torso_upper
[2025-02-11 11:21:17.126 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;11;team12;[FR]Louve;bot0;0;allies;[IW3x]Dss0;ar_fastburst+holo;40;MOD_RIFLE_BULLET;torso_upper
[2025-02-11 11:21:17.126 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line K;bot0;11;team12;[FR]Louve;bot0;0;allies;[IW3x]Dss0;ar_fastburst+holo;40;MOD_RIFLE_BULLET;torso_lower
[2025-02-11 11:21:18.625 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;4;team5;[NN]Joel;bot0;17;team18;[NN]St0rm;lmg_light+ir;44;MOD_HEAD_SHOT;head
[2025-02-11 11:21:18.625 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;3;team4;[IW3x]Joel;bot0;17;team18;[NN]St0rm;lmg_light+ir;44;MOD_HEAD_SHOT;head
[2025-02-11 11:21:19.125 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line K;bot0;3;team4;[IW3x]Joel;bot0;4;team5;[NN]Joel;sniper_fastbolt+ir+rf;95;MOD_RIFLE_BULLET;left_leg_upper
[2025-02-11 11:21:19.627 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;15;team16;[FR]FutureRave;bot0;14;team15;[IW3x]Joel;lmg_heavy+acog;30;MOD_RIFLE_BULLET;left_leg_upper
[2025-02-11 11:21:19.627 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;2;team3;[<3]Jasmin;bot0;8;team9;[IW2x]Diamante;sniper_fastsemi+stalker+swayreduc;80;MOD_RIFLE_BULLET;torso_lower
[2025-02-11 11:21:19.627 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;15;team16;[FR]FutureRave;bot0;14;team15;[IW3x]Joel;lmg_heavy+acog;30;MOD_RIFLE_BULLET;torso_lower
[2025-02-11 11:21:20.130 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line K;bot0;14;team15;[IW3x]Joel;bot0;5;team6;[FR]Louve;sniper_fastbolt+ir+rf;190;MOD_RIFLE_BULLET;torso_upper
[2025-02-11 11:21:20.130 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line K;bot0;2;team3;[<3]Jasmin;bot0;8;team9;[IW2x]Diamante;sniper_fastsemi+stalker+swayreduc;80;MOD_RIFLE_BULLET;torso_lower
[2025-02-11 11:21:20.628 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;17;team18;[NN]St0rm;bot0;10;team11;[IW3x]Joel;lmg_heavy+acog;30;MOD_RIFLE_BULLET;neck
[2025-02-11 11:21:21.129 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;16;team17;[IW5x]momo5502;bot0;13;team14;[NN]Jasmin;lmg_light+ir;40;MOD_RIFLE_BULLET;right_arm_lower
[2025-02-11 11:21:21.629 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;16;team17;[IW5x]momo5502;bot0;13;team14;[NN]Jasmin;lmg_light+ir;40;MOD_RIFLE_BULLET;torso_upper
[2025-02-11 11:21:21.629 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;17;team18;[NN]St0rm;bot0;10;team11;[IW3x]Joel;lmg_heavy+acog;30;MOD_RIFLE_BULLET;torso_upper
[2025-02-11 11:21:21.629 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;17;team18;[NN]St0rm;bot0;10;team11;[IW3x]Joel;lmg_heavy+acog;30;MOD_RIFLE_BULLET;torso_upper
[2025-02-11 11:21:22.131 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line K;bot0;15;team16;[FR]FutureRave;bot0;1;axis;[NN]Jasmin;lmg_slowfire+extclip+ir;59;MOD_RIFLE_BULLET;torso_lower
[2025-02-11 11:21:22.131 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;5;team6;[FR]Louve;bot0;1;axis;[NN]Jasmin;lmg_slowfire+extclip+ir;52;MOD_RIFLE_BULLET;right_leg_lower
[2025-02-11 11:21:22.632 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line K;bot0;5;team6;[FR]Louve;bot0;1;axis;[NN]Jasmin;lmg_slowfire+extclip+ir;51;MOD_RIFLE_BULLET;right_leg_upper
[2025-02-11 11:21:23.134 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;10;team11;[IW3x]Joel;bot0;7;team8;[IW5x]Diamante;lmg_slowfire+extclip+ir;59;MOD_RIFLE_BULLET;torso_upper
[2025-02-11 11:21:23.134 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;9;team10;[NN]Jasmin;bot0;3;team4;[IW3x]Joel;launcher_standard;70;MOD_PROJECTILE_SPLASH;none
[2025-02-11 11:21:23.632 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line K;bot0;10;team11;[IW3x]Joel;bot0;7;team8;[IW5x]Diamante;lmg_slowfire+extclip+ir;59;MOD_RIFLE_BULLET;torso_upper
[2025-02-11 11:21:24.632 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;11;team12;[FR]Louve;bot0;13;team14;[NN]Jasmin;lmg_cqb+reflex;30;MOD_RIFLE_BULLET;torso_lower
[2025-02-11 11:21:24.632 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;13;team14;[NN]Jasmin;bot0;16;team17;[IW5x]momo5502;lmg_heavy+acog;30;MOD_RIFLE_BULLET;torso_lower
[2025-02-11 11:21:25.134 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;13;team14;[NN]Jasmin;bot0;16;team17;[IW5x]momo5502;lmg_heavy+acog;30;MOD_RIFLE_BULLET;torso_upper
[2025-02-11 11:21:25.134 xxx.xxx.xxx.xxx:xxxxx ERR] Could not find client in client list when parsing event line D;bot0;13;team14;[NN]Jasmin;bot0;16;team17;[IW5x]momo5502;lmg_heavy+acog;30;MOD_RIFLE_BULLET;torso_upper

@tinyoverflow
Copy link
Author

I couldn't debug it, but I'd assume that this comes from here:

if (!_ignoreBots || (_ignoreBots && !((gameEvent.Origin?.IsBot ?? false) || (gameEvent.Target?.IsBot ?? false))))
{
if ((gameEvent.RequiredEntity & GameEvent.EventRequiredEntity.Origin) == GameEvent.EventRequiredEntity.Origin && gameEvent.Origin.NetworkId != Utilities.WORLD_ID)
{
gameEvent.Origin = _server.GetClientsAsList().First(_client => _client.NetworkId == gameEvent.Origin?.NetworkId);
}
if ((gameEvent.RequiredEntity & GameEvent.EventRequiredEntity.Target) == GameEvent.EventRequiredEntity.Target)
{
gameEvent.Target = _server.GetClientsAsList().First(_client => _client.NetworkId == gameEvent.Target?.NetworkId);
}
if (gameEvent.Origin != null)
{
gameEvent.Origin.CurrentServer = _server;
}
if (gameEvent.Target != null)
{
gameEvent.Target.CurrentServer = _server;
}
_server.Manager.AddEvent(gameEvent);
}

Which in turn calls the GetClientList method:
/~https://github.com/RaidMax/IW4M-Admin/blob/develop/SharedLibraryCore/Server.cs#L175-L181

That method filters by NetworkId != 0. The Bot-Network ID is always "bot0". Converting that to a long might result in 0, though I'm not absolutely sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants