Coder Social home page Coder Social logo

botmimic's People

Contributors

peace-maker avatar splewis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

botmimic's Issues

Playing replays after map change doesn't teleport client to initial position

I'm getting this behavior consistently (CS:GO). Roughly what I'm doing is (with the botmimic_menu plugin):

  • open the bot mimic menu via !admin
  • record me running around and throwing a smoke grenade, shooting a gun, doing whatever
  • adding a bot to replay that, works succesfully
  • changing the map to the same map (or sm plugins reload botmimic)
  • adding a bot again and telling him to run the replay I just recorded

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

Campaign mode?

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.

botmimic.smx causes segfault on server shutdown

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

Mimic by categories

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.

Log Error

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.

New function - Auto search and replay mimic files on map change?

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

Plugin does not clean up weapons dropped by killed bots

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.

Plugin not saving equipped grenades

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?

Replay bots shifting on Z axis on jump

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

Global chat triggers?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.