manicogaming / CSGOBetterBots

BOTs with some improvemes and other things.
92 stars 23 forks source link

since the update bot_aimlock does not work anymore and there are no bots on the server #93

Closed LappenHaft closed 1 year ago

LappenHaft commented 1 year ago

I have recently updated the server and also had to update sourcemod, because the server ran into a crash, since update the Aimlock of the bots no longer works or not properly. When I start the server and join, the server is also completely empty and there are no bots on the server. Any ideas?

Many Greetings

manicogaming commented 1 year ago

Have you reinstalled everything? Post your error logs file thats located inside sourcemod/logs

LappenHaft commented 1 year ago

Reinstalled everything, now bot_aimlock works. But when I join the game, the server is completely empty. No bots nothing. Before it was always so when I joined the server that all bots automatically joined the game. I have the feeling he has problems reading the "gamemode_competitive.cfg".

Error Log Sourcemod

L 06/14/2023 - 13:25:13: SourceMod error session started
L 06/14/2023 - 13:25:13: Info (map "de_dust2") (file "C:\Users\Administrator\Desktop\steamcmd\csgo-ds\csgo\addons\sourcemod\logs\errors_20230614.log")
L 06/14/2023 - 13:25:13: [SM] Exception reported: [2003]: Can't connect to MySQL server on 'localhost' (10061)
L 06/14/2023 - 13:25:13: [SM] Blaming: sqlmatch.smx
L 06/14/2023 - 13:25:13: [SM] Call stack trace:
L 06/14/2023 - 13:25:13: [SM]   [0] SetFailState
L 06/14/2023 - 13:25:13: [SM]   [1] Line 29, sqlmatch.sp::OnPluginStart
L 06/14/2023 - 13:25:13: [SM] Unable to load plugin "sqlmatch.smx": Error detected in plugin startup (see error logs)
L 06/14/2023 - 13:25:19: [SM] Exception reported: [RankMe] Unable to connect to the database ([2003]: Can't connect to MySQL server on 'localhost' (10061))
L 06/14/2023 - 13:25:19: [SM] Blaming: kento_rankme.smx
L 06/14/2023 - 13:25:19: [SM] Call stack trace:
L 06/14/2023 - 13:25:19: [SM]   [0] SetFailState
L 06/14/2023 - 13:25:19: [SM]   [1] Line 204, d:\csgoserver\csgo\addons\sourcemod\scripting\kento_rankme.sp::DB_Connect
L 06/14/2023 - 13:25:19: [SM]   [2] Line 187, d:\csgoserver\csgo\addons\sourcemod\scripting\kento_rankme.sp::OnConVarChanged_MySQL
L 06/14/2023 - 13:25:19: [nextmap.smx] FATAL: Cannot load map cycle. Nextmap not loaded.
L 06/14/2023 - 13:25:19: [SM] Exception reported: Mapcycle Not Found
L 06/14/2023 - 13:25:19: [SM] Blaming: nextmap.smx
L 06/14/2023 - 13:25:19: [SM] Call stack trace:
L 06/14/2023 - 13:25:19: [SM]   [0] SetFailState
L 06/14/2023 - 13:25:19: [SM]   [1] Line 143, D:\builds\build-sourcemod-msvc12\windows-1.12\build\plugins\nextmap.sp::FindAndSetNextMap
L 06/14/2023 - 13:25:19: [SM]   [2] Line 113, D:\builds\build-sourcemod-msvc12\windows-1.12\build\plugins\nextmap.sp::OnConfigsExecuted
L 06/14/2023 - 13:25:49: [SM] Exception reported: Invalid JSON in line 1, column 97823: premature end of input near '"cu_aug_'
L 06/14/2023 - 13:25:49: [SM] Blaming: eitems.smx
L 06/14/2023 - 13:25:49: [SM] Call stack trace:
L 06/14/2023 - 13:25:49: [SM]   [0] HTTPResponse.Data.get
L 06/14/2023 - 13:25:49: [SM]   [1] Line 62, eitems/parse.sp::ParseItemsDownloaded
L 06/14/2023 - 13:26:02: Error log file session closed.
L 06/14/2023 - 13:26:06: SourceMod error session started
L 06/14/2023 - 13:26:06: Info (map "de_dust2") (file "C:\Users\Administrator\Desktop\steamcmd\csgo-ds\csgo\addons\sourcemod\logs\errors_20230614.log")
L 06/14/2023 - 13:26:06: [SM] Exception reported: [RankMe] Unable to connect to the database ([2003]: Can't connect to MySQL server on 'localhost' (10061))
L 06/14/2023 - 13:26:06: [SM] Blaming: kento_rankme.smx
L 06/14/2023 - 13:26:06: [SM] Call stack trace:
L 06/14/2023 - 13:26:06: [SM]   [0] SetFailState
L 06/14/2023 - 13:26:06: [SM]   [1] Line 204, d:\csgoserver\csgo\addons\sourcemod\scripting\kento_rankme.sp::DB_Connect
L 06/14/2023 - 13:26:06: [SM]   [2] Line 274, d:\csgoserver\csgo\addons\sourcemod\scripting\kento_rankme.sp::OnConfigsExecuted
L 06/14/2023 - 13:26:06: [nextmap.smx] FATAL: Cannot load map cycle. Nextmap not loaded.
L 06/14/2023 - 13:26:06: [SM] Exception reported: Mapcycle Not Found
L 06/14/2023 - 13:26:06: [SM] Blaming: nextmap.smx
L 06/14/2023 - 13:26:06: [SM] Call stack trace:
L 06/14/2023 - 13:26:06: [SM]   [0] SetFailState
L 06/14/2023 - 13:26:06: [SM]   [1] Line 143, D:\builds\build-sourcemod-msvc12\windows-1.12\build\plugins\nextmap.sp::FindAndSetNextMap
L 06/14/2023 - 13:26:06: [SM]   [2] Line 113, D:\builds\build-sourcemod-msvc12\windows-1.12\build\plugins\nextmap.sp::OnConfigsExecuted

Thanks for your effort

LappenHaft commented 1 year ago

eitem problem has fixed but no bot has a weapon skin or something else. Maybe because i use a Deathmatch Plugin?

[eItems] Using local file as a source. Language: 'en'
[eItems] 1147 paints synced successfully!
[eItems] 79 weapons synced successfully!
[eItems] 8 gloves synced successfully!
[eItems] 67 music kits synced successfully!
[eItems] 45 pins synced successfully!
[eItems] 185 coins (in 1 sets) synced successfully!
[eItems] 6710 stickers (in 48 sets) synced successfully!
[eItems] 63 agents synced successfully!
[eItems] 113 patches synced successfully!
[eItems] 159 crates synced successfully!
[eItems] 382 sprays (in 14 sets) synced successfully!
[eItems] Items synced successfully in 0.23288 seconds
LappenHaft commented 1 year ago

grafik

manicogaming commented 1 year ago

Set the command rankme_mysql to 0 and you can also delete sqlmatch.smx

For BOTs to join the game automatically you need to go to cfg/sourcemod/sourcemod.cfg and delete the line "bot_quota 0"

LappenHaft commented 1 year ago

Very thank you, is working now :).

Now I have only one problem with the skins of the bots. Thats one of the error messages: L 06/14/2023 - 20:01:04: [SM] Exception reported: Invalid Handle 0 (error: 4) L 06/14/2023 - 20:01:04: [SM] Blaming: bot_inventory.smx L 06/14/2023 - 20:01:04: [SM] Call stack trace: L 06/14/2023 - 20:01:04: [SM] [0] ArrayList.Length.get L 06/14/2023 - 20:01:04: [SM] [1] Line 623, bot_inventory.sp::OnClientPostAdminCheck [Wearables (server)(350)] Failed to set model for wearable! [Wearables (server)(359)] Failed to set model for wearable! image

manicogaming commented 1 year ago

Reload the map to see if they still don't have skins

LappenHaft commented 1 year ago

image still the problem, I have restarted the server

manicogaming commented 1 year ago

Post your error logs file again

LappenHaft commented 1 year ago
L 06/14/2023 - 23:43:18: Info (map "de_dust2") (file "C:\Users\Administrator\Desktop\steamcmd\csgo-ds\csgo\addons\sourcemod\logs\errors_20230614.log")
L 06/14/2023 - 23:43:18: [SM] Exception reported: [RankMe] Unable to connect to the database ([2003]: Can't connect to MySQL server on 'localhost' (10061))
L 06/14/2023 - 23:43:18: [SM] Blaming: kento_rankme.smx
L 06/14/2023 - 23:43:18: [SM] Call stack trace:
L 06/14/2023 - 23:43:18: [SM]   [0] SetFailState
L 06/14/2023 - 23:43:18: [SM]   [1] Line 204, d:\csgoserver\csgo\addons\sourcemod\scripting\kento_rankme.sp::DB_Connect
L 06/14/2023 - 23:43:18: [SM]   [2] Line 187, d:\csgoserver\csgo\addons\sourcemod\scripting\kento_rankme.sp::OnConVarChanged_MySQL
L 06/14/2023 - 23:50:53: SourceMod error session started
L 06/14/2023 - 23:50:53: Info (map "de_dust2") (file "C:\Users\Administrator\Desktop\steamcmd\csgo-ds\csgo\addons\sourcemod\logs\errors_20230614.log")
L 06/14/2023 - 23:50:53: [SM] Exception reported: [RankMe] Unable to connect to the database ([2003]: Can't connect to MySQL server on 'localhost' (10061))
L 06/14/2023 - 23:50:53: [SM] Blaming: kento_rankme.smx
L 06/14/2023 - 23:50:53: [SM] Call stack trace:
L 06/14/2023 - 23:50:53: [SM]   [0] SetFailState
L 06/14/2023 - 23:50:53: [SM]   [1] Line 204, d:\csgoserver\csgo\addons\sourcemod\scripting\kento_rankme.sp::DB_Connect
L 06/14/2023 - 23:50:53: [SM]   [2] Line 187, d:\csgoserver\csgo\addons\sourcemod\scripting\kento_rankme.sp::OnConVarChanged_MySQL
L 06/14/2023 - 23:51:07: Error log file session closed.
L 06/14/2023 - 23:51:12: SourceMod error session started
L 06/14/2023 - 23:51:12: Info (map "de_dust2") (file "C:\Users\Administrator\Desktop\steamcmd\csgo-ds\csgo\addons\sourcemod\logs\errors_20230614.log")
L 06/14/2023 - 23:51:12: [SM] Exception reported: [RankMe] Unable to connect to the database ([2003]: Can't connect to MySQL server on 'localhost' (10061))
L 06/14/2023 - 23:51:12: [SM] Blaming: kento_rankme.smx
L 06/14/2023 - 23:51:12: [SM] Call stack trace:
L 06/14/2023 - 23:51:12: [SM]   [0] SetFailState
L 06/14/2023 - 23:51:12: [SM]   [1] Line 204, d:\csgoserver\csgo\addons\sourcemod\scripting\kento_rankme.sp::DB_Connect
L 06/14/2023 - 23:51:12: [SM]   [2] Line 187, d:\csgoserver\csgo\addons\sourcemod\scripting\kento_rankme.sp::OnConVarChanged_MySQL
L 06/15/2023 - 00:01:12: Error log file session closed.

Only this Error at the time. Maybe it doesn't work because I have a deathmatch plugin running on the server?

manicogaming commented 1 year ago

Go to cfg/sourcemod/kento.rankme.cfg Find the command "rankme_mysql" and set it to 0

LappenHaft commented 1 year ago

It works now, thank you :)). My next goal is to set up a competitive server with this plugin. Is it right that the bots throw grenades like smokes of all kinds?

Do you have a donation link so I can donate money for your masterpiece and your time in the next few days? :)

image

manicogaming commented 1 year ago

I've only configured some smokes on Dust2 and Mirage and I haven't added more yet as I have lost some motivation because of CS2

If you really want to give a donation here's my PayPal.Me link: paypal.me/paypalmanico

manicogaming commented 1 year ago

Also, is your server only a local one right?

xhibition commented 1 year ago

I've only configured some smokes on Dust2 and Mirage and I haven't added more yet as I have lost some motivation because of CS2

If you really want to give a donation here's my PayPal.Me link: paypal.me/paypalmanico

I'd happily help out with the nades! in fact; I made nades for Nuke, however I'm having an issue where the following will happen:

1) the bot mimic plugin freaks out and obliterates my FPS from ~300 to 10 because its repeatedly logging errors every second. 2) when it doesn't log the errors, they'll throw the utility repeatedly as if they're stuck in the replay.

I don't know how to fix the latter. I fixed the logging issue by removing the bot mimic plugin (and reinstalled the bot mimic plugin provided by the repo). I'm now having compatibility issues with the entire mod all of a sudden also. After reinstalling the game (and therefore the entire mod) it'll crash inexplicably for no reason (sourcemod also doesn't provide a log file after said crashes).

manicogaming commented 1 year ago

If you have errors then please post the error log file.

If the server is crashing install this extension as it will help in trying to understand caused the crash: https://forums.alliedmods.net/showthread.php?t=277703

gnomeragan commented 1 year ago

Hello Manicogaming,

Following last update , I have reinstalled everything and had the exact same error as @LappenHaft , so I did what you said and disabled rankme, no more errors in the sourcemod logs except for the nextmap plugin. The issue is that the command bot_aimlock isn't present for some reason, even though the bots still try to aim for the head ? Very weird. Error log attached.

Thanks !

errors_20230624.log

manicogaming commented 1 year ago

Hello Manicogaming,

Following last update , I have reinstalled everything and had the exact same error as @LappenHaft , so I did what you said and disabled rankme, no more errors in the sourcemod logs except for the nextmap plugin. The issue is that the command bot_aimlock isn't present for some reason, even though the bots still try to aim for the head ? Very weird. Error log attached.

Thanks !

errors_20230624.log

There is no bot_aimlock command in this version.

gnomeragan commented 1 year ago

Alright makes sense now :) Thank you very much !