peace-maker / botmimic Goto Github PK
View Code? Open in Web Editor NEWRecord your movements and have other players play them back.
Home Page: https://forums.alliedmods.net/showthread.php?t=164148
Record your movements and have other players play them back.
Home Page: https://forums.alliedmods.net/showthread.php?t=164148
I'm getting this behavior consistently (CS:GO). Roughly what I'm doing is (with the botmimic_menu plugin):
sm plugins reload botmimic
)This results in the bot teleporting to the 0 0 0 origin point. Spectating it still shows it moving around (and getting the right weapons, shooting when I did, etc.) like there is still data being read - but something is wrong with the replay after a mapchange.
From adding cursory log messages around the plugin I can't figure out why it works originally but then not after a map change or plugin reload.
Tested using:
botmimic @ 1b72b5c
sourcemod @ 1.9.0.6222
It would be useful to add a campaign mode which would effectively playback all related recordings and spawn the necessary bots automatically. For instance, a team sitting inside of a bombsite could load a campaign called "bombsite retake" and this would spawn 5 ct bots who throw smoke and flash grenades into the site.
I have the issue that when I attempt to shutdown the server (e.g. ctrl-c or quit) it segfaults, the issues goes away if I unload "botmimix.smx" before doing that... The problem is that it will restart the server (as it should on crash) but it messes up my updating process.
Any ideas on how to narrow this down?
PS: I used a fresh compiled version from the master branch
quit
L 10/01/2017 - 14:49:40: [META] Loaded 0 plugins (1 already loaded)
L 10/01/2017 - 14:49:40: "[FunCS] GOTV<2><BOT><>" disconnected (reason "Server shutting down")
L 10/01/2017 - 14:49:41: server_message: "quit"
L 10/01/2017 - 14:49:41: Log file closed
L 10/01/2017 - 14:49:41: server_message: "restart"
L 10/01/2017 - 14:49:41: Log file closed.
L 10/01/2017 - 14:49:41: Error log file session closed.
PreMinidumpCallback: updating dump comment
dlopen failed trying to load:
/home/csgo/.steam/sdk32/steamclient.so
with error:
/home/csgo/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
assert_20171001144808_1.dmp[16945]: Uploading dump (out-of-process)
/tmp/dumps/assert_20171001144808_1.dmp
Segmentation fault
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Sun Oct 1 14:49:41 CEST 2017: Server restart in 10 seconds
Listing 5 plugins:
[01] SourceMod (1.8.0.6027) by AlliedModders LLC
[02] CS Tools (1.8.0.6027) by AlliedModders LLC
[03] SDK Tools (1.8.0.6027) by AlliedModders LLC
[04] SDK Hooks (1.8.0.6027) by AlliedModders LLC
[05] DHooks (2.1.0) by Dr!fter
[SM] Listing 35 plugins:
01 "Basic Comm Control" (1.8.0.6027) by AlliedModders LLC
02 "Basic Ban Commands" (1.8.0.6027) by AlliedModders LLC
03 "Admin File Reader" (1.8.0.6027) by AlliedModders LLC
04 "TeamChange Unlimited" (1.0) by FrozDark (HLModders LLC)
05 "Admin Help" (1.8.0.6027) by AlliedModders LLC
06 "Rock The Vote" (1.8.0.6027) by AlliedModders LLC
07 "Bot Mimic Training" (1.0) by Jannik "Peace-Maker" Hartung
08 "Anti-Flood" (1.8.0.6027) by AlliedModders LLC
09 "Nextmap" (1.8.0.6027) by AlliedModders LLC
10 "Basic Chat" (1.8.0.6027) by AlliedModders LLC
11 "[CSGO] Free taser" (1.0.1) by Grey83
12 "Basic Commands" (1.8.0.6027) by AlliedModders LLC
13 "Client Preferences" (1.8.0.6027) by AlliedModders LLC
14 "[CSGO] Advanced Admin" (1.5.6) by PeEzZ
15 "MapChooser" (1.8.0.6027) by AlliedModders LLC
16 "Checkpoints" (1.0.0 (GNU/AGPLv3)) by 1Swat2KillThemAll
17 "Basic Info Triggers" (1.8.0.6027) by AlliedModders LLC
18 "Basic Votes" (1.8.0.6027) by AlliedModders LLC
19 "Player Commands" (1.8.0.6027) by AlliedModders LLC
20 "Sound Commands" (1.8.0.6027) by AlliedModders LLC
21 "Web Shortcuts CS:GO version" (2.5) by Franc1sco franug and James "sslice" Gray
22 "Fun Votes" (1.8.0.6027) by AlliedModders LLC
23 "Nade Tails" (2.0) by InternetBully
24 "Map Nominations" (1.8.0.6027) by AlliedModders LLC
25 "Server Advertisement" (2.6) by ESK0
26 "Admin Menu" (1.8.0.6027) by AlliedModders LLC
27 "DR.API SHOW DAMAGE" (1.1.2) by Dr. Api
28 "Make players opaque" (1.0.0) by 2called-chaos
29 "Client Execute" (1.0.0.3) by dubbeh
30 "Fun Commands" (1.8.0.6027) by AlliedModders LLC
31 "Player-Teleport by Dr. HyperKiLLeR" (1.2.0.0) by Dr. HyperKiLLeR
32 "Client Execute" (1.0.0.1) by Twilight Suzuka
33 "Bot Mimic" (2.1) by Jannik "Peace-Maker" Hartung
34 "Bot Mimic Menu" (1.1) by Jannik "Peace-Maker" Hartung
35 "Reserved Slots" (1.8.0.6027) by AlliedModders LLC
Hello, "botmimic" cannot compile by sourcemod 1.11, because sourcemod 1.11 remove array-based enum structs.
here's original word "Array-based enum structs have been removed. See https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Enum_Structs"
Hey... I´m a bit unsure if this here is a "duplicate" post regarding the "campaign"-enhancement.
Nonetheless, isn´t it possible to directly spawn mimicing bots by categories( since you are already able to bookmark mimics into categories)? Is it worth the effort to try?
I imagine something like "splewis practice mode" where u can do stuff by categories for better timing.
It would add a significant amount of utility if players were able to spectate a bot that is playing back recorded movements.
L 03/18/2016 - 00:16:42: SourceMod error session started
L 03/18/2016 - 00:16:42: Info (map "bhop_impecible_csgo") (file "errors_20160318.log")
L 03/18/2016 - 00:16:42: [SM] Native "CloseHandle" reported: Handle 64ba0762 is invalid (error 1)
L 03/18/2016 - 00:16:42: [SM] Displaying call stack trace for plugin "botmimic.smx":
L 03/18/2016 - 00:16:42: [SM] [0] Line 278, G:\addons\sourcemod\scripting\botmimic.sp::OnMapStart()
L 03/18/2016 - 00:20:06: Error log file session closed.
Seems to happen quite often, last night I was running through maps and this error was popping every map.
Hi there,
Love the idea of using bots to replicate player actions. Currently I'm using bots to fill in the number of players in my zombie escape server, and this really helps when I'm busy away, Hopefully random new players know how to play the game mode with working bots.
Just wondering if there's a way to automatically load the existing replay files on new maps? Currently I have to use sm_mimic menu to assign a bot with a replay file.
Cheers
When a bot is playing back an action, and a player kills that bot, it drops the currently equipped weapon and the plugin does not delete that weapon from the world. This results in a significant weapon buildup during shooting practice.
Great plugin and extremely useful for demonstrating or practicing against set smokes and flashes. That being said, the plugin does not save the grenades in player loadout and ignores mp_ct_default_grenades and mp_t_default_grenades values. This means that if I record myself throwing a specific smoke/flash/grenade/molly/decoy, all the movement data is saved, but when I try to get a bot to mimic my recorded movements, the bot is spawned without the appropriate grenades and is therefore unable to replicate my behaviour. The workaround I'm currently using is to drop the appropriate grenades in the bot's path: I select a spot on the ground before recording, this is the spot I will drop grenades on using 'give weapon_flashbang'. Next, I begin recording, walk over to my 'drop spot', then switch to the appropriate grenade, then execute my recording and save it. Once I begin playback, I watch the bot spawn, walk over to the area with the grenades I dropped, they are now loaded into the bot's inventory and the bot successfully switches to the appropriate grenade. This method is tedious and messy, however, as I need to spawn one grenade per bot cylce (each time the bot picks up a grenade, it is consumed). What's interesting is that when I set the mp_t_default_grenades or mp_ct_default_grenades values, I can visually see the bot spawn with a full set of grenades, but unless it picks up the necessary grenade for the recording, it is unable to use the ones it spawns with through the CVARs. So while the plugin is capable of elegantly executing grenade tosses, it does not save the player's grenade inventory to the recording and it ignores default inventory CVAR values. Since the hard part is already being done (recording the movements) I'm hoping this could be fixed with a few lines of code?
Not sure whats causing this, replay bots appear to shift on the Z axis whenever they jump. It looks the same as if you were spectating a player who crouched in mid air, the camera shifts upward then back down rapidly, making for non-smooth replays. I can rid of the problem by holding duck throughout the recording.
Edit: Setting bot_crouch 1 also fixes the problem, but the camera is lower then it should be while spectating
It would be useful to allow users on a server to select preset chat triggers to load a custom recording. For instance, a user could type !ct-bombsite-b-door-popflash and this would spawn a bot who would playback the requested recording.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.