J-Tanzanite / Little-Anti-Cheat

Anti-Cheat for Source Games
285 stars 68 forks source link

lilac 1.7.4 Exception reported: Translation failed: invalid client index #172

Closed mrdiega closed 11 months ago

mrdiega commented 1 year ago
L 03/31/2023 - 11:24:34: SourceMod error session started
L 03/31/2023 - 11:24:34: Info (map "$2000$") (file "/home/server2000css/steamcmd/server/cstrike/addons/sourcemod/logs/errors_20230331.log")
L 03/31/2023 - 11:24:34: [SM] Exception reported: Translation failed: invalid client index 1601069410 (arg 6)
L 03/31/2023 - 11:24:34: [SM] Blaming: lilac.smx
L 03/31/2023 - 11:24:34: [SM] Call stack trace:
L 03/31/2023 - 11:24:34: [SM]   [0] Format
L 03/31/2023 - 11:24:34: [SM]   [1] Line 259, lilac\lilac_stock.sp::lilac_ban_client
L 03/31/2023 - 11:24:34: [SM]   [2] Line 369, lilac\lilac_aimbot.sp::lilac_detected_aimbot
L 03/31/2023 - 11:24:34: [SM]   [3] Line 310, lilac\lilac_aimbot.sp::timer_check_aimbot
L 03/31/2023 - 11:41:51: [SM] Exception reported: Translation failed: invalid client index 1601069410 (arg 6)
L 03/31/2023 - 11:41:51: [SM] Blaming: lilac.smx
L 03/31/2023 - 11:41:51: [SM] Call stack trace:
L 03/31/2023 - 11:41:51: [SM]   [0] Format
L 03/31/2023 - 11:41:51: [SM]   [1] Line 259, lilac\lilac_stock.sp::lilac_ban_client
L 03/31/2023 - 11:41:51: [SM]   [2] Line 369, lilac\lilac_aimbot.sp::lilac_detected_aimbot
L 03/31/2023 - 11:41:51: [SM]   [3] Line 310, lilac\lilac_aimbot.sp::timer_check_aimbot
L 03/31/2023 - 12:03:39: [SM] Exception reported: Translation failed: invalid client index 1601069410 (arg 6)
L 03/31/2023 - 12:03:39: [SM] Blaming: lilac.smx
L 03/31/2023 - 12:03:39: [SM] Call stack trace:
L 03/31/2023 - 12:03:39: [SM]   [0] Format
L 03/31/2023 - 12:03:39: [SM]   [1] Line 259, lilac\lilac_stock.sp::lilac_ban_client
L 03/31/2023 - 12:03:39: [SM]   [2] Line 369, lilac\lilac_aimbot.sp::lilac_detected_aimbot
L 03/31/2023 - 12:03:39: [SM]   [3] Line 310, lilac\lilac_aimbot.sp::timer_check_aimbot
L 03/31/2023 - 12:12:24: [SM] Exception reported: Translation failed: invalid client index 1601069410 (arg 6)
L 03/31/2023 - 12:12:24: [SM] Blaming: lilac.smx
L 03/31/2023 - 12:12:24: [SM] Call stack trace:
L 03/31/2023 - 12:12:24: [SM]   [0] Format
L 03/31/2023 - 12:12:24: [SM]   [1] Line 259, lilac\lilac_stock.sp::lilac_ban_client
L 03/31/2023 - 12:12:24: [SM]   [2] Line 369, lilac\lilac_aimbot.sp::lilac_detected_aimbot
L 03/31/2023 - 12:12:24: [SM]   [3] Line 310, lilac\lilac_aimbot.sp::timer_check_aimbot
L 03/31/2023 - 13:46:56: [SM] Exception reported: Translation failed: invalid client index 1601069410 (arg 6)
L 03/31/2023 - 13:46:56: [SM] Blaming: lilac.smx
L 03/31/2023 - 13:46:56: [SM] Call stack trace:
L 03/31/2023 - 13:46:56: [SM]   [0] Format
L 03/31/2023 - 13:46:56: [SM]   [1] Line 259, lilac\lilac_stock.sp::lilac_ban_client
L 03/31/2023 - 13:46:56: [SM]   [2] Line 369, lilac\lilac_aimbot.sp::lilac_detected_aimbot
L 03/31/2023 - 13:46:56: [SM]   [3] Line 310, lilac\lilac_aimbot.sp::timer_check_aimbot
L 03/31/2023 - 14:26:59: Error log file session closed.

i have 100% latest translations For clarity, I am attaching my files https://disk.yandex.ru/d/7AX90jPHy4DBxQ

css:ob sm 1.11 [Lilac] Little Anti-Cheat" (1.7.4) by J_Tanzanite

lilac_aimbot "5" lilac_angles "0" lilac_angles_patch "0"

mrdiega commented 1 year ago

The plugin detects cheaters well in cs:s, but does not ban

01/04/2023 14:28:57 [Version 1.7.4] {Name: "c4u" | SteamID: STEAM_0:0:1257711924 | IP: 217.107.199.121} is suspected of using an aimbot (Detection: 2 | Delta: 7 | TotalDelta: 81 | Detected: Aim-Snap2 Autoshoot Angle-Repeat).
01/04/2023 14:30:59 [Version 1.7.4] {Name: "c4u" | SteamID: STEAM_0:0:1257711924 | IP: 217.107.199.121} is suspected of using an aimbot (Detection: 3 | Delta: 2 | TotalDelta: 14 | Detected: Autoshoot Angle-Repeat).
01/04/2023 14:31:03 [Version 1.7.4] {Name: "c4u" | SteamID: STEAM_0:0:1257711924 | IP: 217.107.199.121} is suspected of using an aimbot (Detection: 4 | Delta: 2 | TotalDelta: 14 | Detected: Autoshoot Angle-Repeat).
01/04/2023 14:31:18 [Version 1.7.4] {Name: "c4u" | SteamID: STEAM_0:0:1257711924 | IP: 217.107.199.121} is suspected of using an aimbot (Detection: 5 | Delta: 1 | TotalDelta: 13 | Detected: Autoshoot Angle-Repeat).
01/04/2023 14:31:18 [Version 1.7.4] {Name: "c4u" | SteamID: STEAM_0:0:1257711924 | IP: 217.107.199.121} was banned for Aimbot.

In the logs it says that the cheater is banned, but in fact he remains on the server and an error appears that I showed. Look at the time in the logs

L 04/01/2023 - 14:31:18: SourceMod error session started
L 04/01/2023 - 14:31:18: Info (map "$2000$") (file "/home/server2000css/steamcmd/server/cstrike/addons/sourcemod/logs/errors_20230401.log")
L 04/01/2023 - 14:31:18: [SM] Exception reported: Translation failed: invalid client index 1601069410 (arg 6)
L 04/01/2023 - 14:31:18: [SM] Blaming: lilac.smx
L 04/01/2023 - 14:31:18: [SM] Call stack trace:
L 04/01/2023 - 14:31:18: [SM]   [0] Format
L 04/01/2023 - 14:31:18: [SM]   [1] Line 259, lilac\lilac_stock.sp::lilac_ban_client
L 04/01/2023 - 14:31:18: [SM]   [2] Line 369, lilac\lilac_aimbot.sp::lilac_detected_aimbot
L 04/01/2023 - 14:31:18: [SM]   [3] Line 310, lilac\lilac_aimbot.sp::timer_check_aimbot
J-Tanzanite commented 1 year ago

css:ob

Is that a cracked version of CS? Because it's not supported. I'll still try to support you, just have no clue what game that is.

You're not the only person who gets that particular error, it's a fairly rare one, seems common on cracked versions of CS:S...

What your lilac_ban_language ConVar is set to?

mrdiega commented 1 year ago

css:ob

Is that a cracked version of CS? Because it's not supported. I'll still try to support you, just have no clue what game that is.

You're not the only person who gets that particular error, it's a fairly rare one, seems common on cracked versions of CS:S...

What your lilac_ban_language ConVar is set to?

css:ob it is steam version (v92)

"lilac_ban_language" = "1" https://ibb.co/qN683md

J-Tanzanite commented 1 year ago

Alright, try setting it to 0 in your config, and see if that fixes it.

J-Tanzanite commented 1 year ago

Any updates on whether this fixed your issue or not?

freakexeuLow commented 1 year ago

hey @J-Tanzanite and the problem is not fixed

L 05/14/2023 - 15:52:54: SourceMod error session started L 05/14/2023 - 15:52:54: Info (map "de_mirage") (file "/home/container/csgo/addons/sourcemod/logs/errors_20230514.log") L 05/14/2023 - 15:52:54: [SM] Exception reported: Translation failed: invalid client index 1601069410 (arg 6) L 05/14/2023 - 15:52:54: [SM] Blaming: anticheat/lilac.smx L 05/14/2023 - 15:52:54: [SM] Call stack trace: L 05/14/2023 - 15:52:54: [SM] [0] Format L 05/14/2023 - 15:52:54: [SM] [1] Line 259, lilac\lilac_stock.sp::lilac_ban_client L 05/14/2023 - 15:52:54: [SM] [2] Line 369, lilac\lilac_aimbot.sp::lilac_detected_aimbot L 05/14/2023 - 15:52:54: [SM] [3] Line 310, lilac\lilac_aimbot.sp::timer_check_aimbot L 05/14/2023 - 15:58:58: Error log file session closed. L 05/14/2023 - 16:05:46: SourceMod error session started L 05/14/2023 - 16:05:46: Info (map "de_mirage") (file "/home/container/csgo/addons/sourcemod/logs/errors_20230514.log") L 05/14/2023 - 16:05:46: [SM] Exception reported: Translation failed: invalid client index 1601069410 (arg 6) L 05/14/2023 - 16:05:46: [SM] Blaming: anticheat/lilac.smx L 05/14/2023 - 16:05:46: [SM] Call stack trace: L 05/14/2023 - 16:05:46: [SM] [0] Format L 05/14/2023 - 16:05:46: [SM] [1] Line 259, lilac\lilac_stock.sp::lilac_ban_client L 05/14/2023 - 16:05:46: [SM] [2] Line 369, lilac\lilac_aimbot.sp::lilac_detected_aimbot L 05/14/2023 - 16:05:46: [SM] [3] Line 310, lilac\lilac_aimbot.sp::timer_check_aimbot L 05/14/2023 - 16:36:00: Error log file session closed.

"lilac_ban_language" = "1" with 0 or the value 1 I get the same error....the user will be banned, but can join normally afterwards and will not be added to sourcebans (is like a kind of kick)

Sourcemod Version: 1.11 Lilac Version: 1.7.4 (last stable) Game: csgo

Edit: but the problem does not exist with the 1.7.3 version

J-Tanzanite commented 1 year ago

As far as I can tell, there's nothing different in version 1.7.3 and 1.7.4 that could possibly cause this issue, or have resolved it. And it appears to be an issue with translations only?

Given how I've never gotten this issue, and reports about this are fairly rare, I don't know how I would even begin to nail down where the issue is. Adding a 'BUG' label to this, as it's clearly a bug, but one I can't seem to recreate.

freakexeuLow commented 1 year ago

hey @J-Tanzanite :)

I can only describe you what I described above and now use the version 1.7.3 and have there no translation problem and also the system now bans people normally and add the bad people to the sb site...would like to give you more infos, but I have already described everything as I have explained it above :/

azalty commented 1 year ago

@freakexeuLow do you use normal csgo or a cracked / modified version?

J-Tanzanite commented 1 year ago

@freakexeuLow hi :) Sadly, knowing version 1.7.3 doesn't produce these errors for you isn't much of a help, as far as I can tell, there's no code change between 1.7.3 and 1.7.4 that would lead to different behaviors. As far as I can tell, it's the same code.

And the really fun thing, is that in both versions (because it's the same), one of the first things it does is this:

if (!is_player_valid(client))
        return;

This is done 2-3 times... If the attacker isn't valid, it skips checking for aimbot.

The error happens on this line:

    case CHEAT_AIMBOT: { Format(reason, sizeof(reason),
        "[Little Anti-Cheat %s] %T", PLUGIN_VERSION, "ban_aimbot", lang); }

And complains about argument 6, being lang. lang is either LANG_SERVER or a client index, and we know the client index isn't out of bounds (we know it's valid).

I'm assuming you're using the latest translations? Correct?

sapphonie commented 11 months ago

Need more info. Until then, closing