Learn how to disable ads
Learn how to disable ads

Co-op vs. AI: Official Q&A Thread

  • 1
    So I promised I would do this a while back, and after getting back from taking care of some personal things (like getting married) I finally have a bit of time to start this thread. Basically, the intent is to create a channel for interested parties to be able to ask questions about Co-op vs. AI, and provide me a venue to share bot-related information when appropriate. For those who don't know, I'm the designer currently responsible for Co-op vs. AI and bot implementation, along with my other responsibilities doing feature work.

    There are a couple of ground rules I'm hoping we can all abide by. In particular, things I don't want to see in this thread (which I will either ignore or delete if I do):
    -Questions about other projects going on at Riot - I can't and won't answer these, especially since I probably don't have all the information needed to provide informative answers.
    -Posturing - I'm happy that you can murder bots, but if the entirety of your post is "bots too stupid" then please keep that to yourself.
    -Dota 2 bots - I have a small comment about this below.

    Thanks! Feel free to post whatever other questions you have about Co-op vs. AI in this thread. I'll answer when I can, but it likely won't be on a daily basis, so please be patient.

    Some preemptive answers to some likely asked questions (to be updated as necessary):

    ADVANCED BOTS WHERE?
    Unlike our last big AI release, all of the AI changes since last January have been incremental across several patches. We don't currently have a team actively dedicated to working on AI, but I've been doing what I can to constantly improve the AI and can safely say that the AI now is a lot better than where it was eight months ago (which is a lot better than it was from before the Rise of the Bots patch). There are a couple of obvious gaps in bot logic now (e.g. jungling) which would prohibit anything we release from feeling "advanced", but if and when we get a team together to do so we'll hopefully be able to make large strides in bringing this to you. If not, then you'll have to wait patiently for each incremental improvement until I eventually get the AI there myself.

    Why don't bots jungle/dragon/Baron?
    Because I haven't written those scripts yet. =P In all seriousness, getting bots to pursue secondary objectives is actually quite tricky. Our system was sort of developed with these objectives in mind (long before I got to Riot), but it was never fleshed out and (obviously) never used, and the implementation that we ended up going with ended up deprecating the bots' ability to pursue said objectives. With the system as it is now, adding the ability to do these is a relatively nontrivial task, and though I've charted out a couple of possible ways to tackle this, I haven't quite had the time or resources to make this a reality (yet). This is a big priority from an AI perspective, but it won't likely happen until 1) we have more than one person actually doing AI implementation, or 2) I suddenly find myself with a lot of time to work on this.

    Why can't I choose Intermediate bots in custom games?
    There are actually a couple of reasons for this:
    1) Technical blockers - the individual drop-down difficulty selectors, while intrinsically intuitive, are systematically flawed (pro tip: they don't do anything). This isn't a huge priority for us at the moment, and it would actually require a rather large amount of work on a lot of different systems (game/AIR/platform).
    2) Gameplay reasons - our bots are good at working with each other, but not so good at working with players. While it might be okay to play against a team of intermediate bots in custom games, playing with them on your team often makes them feel not very "Intermediate".

    Any plans for TT bots?
    Yes, we do have plans for eventually doing TT bots.

    How about ARAM bots?
    Not currently, no, but it might happen in the future.

    Why can bots see through stealth?
    They can't actually "see" through stealth, but they do react to stealthed units. They can't cast unit targeted spells on units unless they have vision of them, but they will (and often do) cast AoE spells on stealthed units or units hiding in brush. This doesn't feel super great, but it's actually quite a bit better than the current alternative, which is to make them ignore invisible units. In my opinion, I'd rather continue making the bots harder and more challenging than spending the time to dumb them down. This isn't to say that this will never get done, just that the AI where it is right now probably needs more buffs than nerfs.

    Why are bots such huge cheatyfaces?
    Bots currently get a bit of ambient gold boosting in Intermediate, but that is actually all they get. I've seen several threads that attribute magical powers to bots, but many of these just aren't true:
    -Bots don't get bonus stats - they actually only take 15 masteries and 16 tier 2 runes on Intermediate (they take 0 runes/masteries on Beginner) and have no artifical stat boosting.
    -Bots don't get to ignore movespeed restrictions - they don't get magic speed boosts when they're low on health. A lot of them do take Ghost though, for what it's worth.
    -Bots don't cheat teleport through fog of war when unseen - they have to walk the same as players do. Note that many of our bots take Teleport, which they will use if they can.
    -Bots don't get global vision - it actually took us a day and a half (back when we had an AI team) to make it so that Karthus Bot and others with global ults are required to have vision of a low-health unit in order to register it as a valid target. They are hyper-aware though - if you happen to walk too close to an enemy minion for just one second with low health and Karthus Bot has his ult up... They also tend to move toward where they think players are - just because you wandered into fog of war doesn't mean they have no idea where you are anymore (good players are aware of this too). This is why they sometimes appear to jump you while you are attempting to steal their jungle buffs.
    -Bots don't get items on a timer - they have to go back to base and buy them.

    Having bots cheat doesn't feel great, but part of that is an artifact of the fact that we currently only have two difficulties, one of which is trying to hit summoners from levels 10-30. I would maintain that Intermediate is probably too hard for summoners at the low end of that and too trivial for summoners at the high end, but since we aren't currently prioritizing AI development, this is likely the way it will be for a while. :/

    Why isn't AI development a priority at Riot?
    It's not to say that AI development is not a priority at all, it's more that AI development is not a priority right now. There are a lot of cool and exciting things in the pipeline, and while we no longer have a team dedicated to AI development, the team I'm on is actively working on short-term feature improvements, some of which are AI-related. We currently don't have any other people working on AI implementation aside from me, but that could very well change in the future!

    Dota 2 bots?
    1) Scroll of Town Portal
    2) Dota mechanics (generally CC mechanics)
    Yes, those answers are sufficient for any and all questions related to Dota 2 bots. There ends up being a lot less overlap than one would think between how Dota 2 bots play Dota 2 and how LoL bots play LoL. If you don't understand why those two answers are sufficient, I would challenge you to study these systems some more until you do.

    Are you the guy who did the WC3 DotA AI maps?
    Yes.

    Why are you only level 13?
    Because I don't generally play on this account, I use it primarily for posting.

    Post away!
  • 57
    Wow you guys are fast. Here's what I gleaned from the first three pages so far.

    Quote:
    Originally Posted by Baalhrezem View Post
    Can you fix the "derp around" glitch at bottom inner turret? I've had many times where I'm chasing bots and they just walk around and do nothing on that corner.
    Yeah, there are still a couple of pathing issues. Unfortunately, a lot of these need to be fixed by a game engineer - a resource that I currently don't have access to. But it's definitely something we want to fix.

    Quote:
    Originally Posted by Baalhrezem View Post
    Any plans to have it be 50/50 on being blue or purple side so newer players can get used to it?
    Not currently, but I like this idea.

    Quote:
    Originally Posted by Baalhrezem View Post
    Are there are any bugs on all 5 bots competing in a Dominion game even when you are down a player? It seems quite common.
    Thanks for bringing this up again; I had a theory that the assist logic is overriding the disconnect logic but never had a chance to look into it.

    Quote:
    Originally Posted by Baalhrezem View Post
    Any plans to change summoner spells on champions? I really like the Kog'Maw reactions on cleanse but Surge on Graves or Tristana is just derp. I really think it would benefit to put flash on all advanced AI bots--if you ever get around to it.
    Yeah, eventually. There are just a lot of things on my plate right now and I haven't really had a chance to look at these in a long time.

    Quote:
    Originally Posted by Baalhrezem View Post
    Any plans for jungle?
    I want to, but as I mentioned, I don't quite have the time or resources needed to tackle this at the moment. This is definitely a huge priority for bot development when we spin up a team for it again.

    Quote:
    Originally Posted by Baalhrezem View Post
    I'm not sure if you fixed Nidalee/Morgana being the "AD Carry" slot in bot comps--but I figured it was worth mentioning.
    A while back we introduced some variance in bot comps, so not every game will have the same comp - some of them will have two AD Carries, or two AP carries, etc. Just mixing things up a bit.

    Quote:
    Originally Posted by Turdpedo View Post
    Will you make it so regular players don't lure bots into their towers?
    Yeah, there's some wonkiness with the way that bots evaluate threat and kill potential. Part of the problem is that this was done well before I got here, and much of the system is balanced and tuned around how they currently evaluate threat (which is not super good). I haven't touched it yet because then I have to change everything else, but I'm only delaying the inevitable - this will be fixed eventually.

    Quote:
    Originally Posted by PorpoiseAlert View Post
    Could we just insta-ban anyone who rages in Co-op Vs. AI who hasn't been verbally provoked into doing so? Maybe add a disclaimer about it?
    We can't, but remember that you can report players in the post-game screen of a bot game if you encounter particularly toxic players.

    Quote:
    Originally Posted by Dark Uzumaki View Post
    Any chance we'll ever be allowed to 4v5 or 3v5 the bots?
    Probably not.

    Quote:
    Originally Posted by GoldenPlana View Post
    Are you guys planning to make new characters for co op vs ai
    If you mean implementing new bots for champions, this is something I'm planning on continuing to do when I can.

    Quote:
    Originally Posted by Xoxex View Post
    Why do some bots randomly run through the jungle and come out between the two middle turrets? Suicide is not the way! Is this a pathing issue because they don't seem to need any prodding from the player they just come out of the jungle and die.
    This is actually an issue with how they determine where in the lane to move to. I had a fix for this script-side, but it was computationally too expensive to release without adding an overly large strain on the server. This will ultimately need to be done code-side, which will happen when it happens. :/

    Quote:
    Originally Posted by Vicvictorw View Post
    A bit?

    I shut lanes down. No creepscore, constantly causing them to retreat or die, they're something ridiculous like 0/30, and they still get a full build.

    How much do they actually get? I hear they just automatically acquire their build items on a timer.
    The ambient gold boost is actually an equalizing mechanic and scales depending on the level differential between the bot team and the human team. So the harder you shut them down, the more ambient gold they actually get. This is to make the game a bit more accessible to lower level summoners while providing some artificial challenge to high level summoners. And no, they do not get items on a timer.

    Quote:
    Originally Posted by Drëd View Post
    Can you please make bots use full mastery pages and full rune pages? At least for the intermediate bots?
    It probably won't happen right now; intermediate bots are difficult enough for low level summoners as is.

    Quote:
    Originally Posted by Fereos View Post
    Can you make it so that bots actually gank lanes instead of starting to roam once the tower goes down? At the moment, they just split-push lanes 24-7 until the tower goes down.
    Maybe eventually; like jungling, "ganking" would be a secondary objective that our system can't handle without a rewrite anytime soon. I could change it so they start roaming earlier though (instead of waiting for tower to go down), that could create some more dynamic gameplay and is not a bad idea.

    Quote:
    Originally Posted by RemyReaper View Post
    Are you going to add Akali bot ?!! !!!
    Eventually we'd like to get a bot for every champion, but that will take a lot of time.

    Quote:
    Originally Posted by rickyg123 View Post
    do bots have a diffrent script for each champ?
    We have a set of scripts that are common across all bots, but yes, we have different scripts for ability use and item purchase on a per-champion basis.

    Quote:
    Originally Posted by Arulio View Post
    In addition to bots not doing Baron/Dragon, what about making them challenge for it whenever the player-team goes for the Baron/Dragon? Any chance of that happening?
    When we get the resources to do things like having bots pursue Baron/Dragon, we will definitely have logic for challenging players at these objectives if appropriate.

    Quote:
    Originally Posted by Double Stranded View Post
    Mind getting technical for a bit? Are LoL bots basically a huge list of if-then-else clauses? Fuzzy logic perhaps? Are you using any real-time learning algorithms? Is there any randomness factored in their reactions times? Is the code you're developing owned by Riot or is there a chance you could share it with the world?
    The entity logic is written on a behavior tree system, which means each individual bot executes instructions serially based on local conditions and will take the most favorable action with the highest priority at any time. We actually have a couple layers of abstraction above the entity level to make higher level decisions (e.g. where should the bots distribute themselves right now) which uses a behavior tree implementation but runs on a bit of a different paradigm. We use some fuzzy logic when determining some of these conditions (primarily on whether the bot feels like it is capable of killing an enemy or if it is in danger), but as I'm sure you've seen, it needs to be revisited. We don't use any real-time learning algorithms right now (waaay too expensive for the scale of the game and the purpose of LoL bots), and while we don't use randomness in reaction times for intermediate bots, we do use them on other things, like skill shot accuracy and ability precision (e.g. Caitlyn Bot will sometimes use her ult on you and not kill - this calculation was made intentionally imprecise because I got internal feedback that having her kill you 100% of the time with her ult was extremely frustrating.) And yes, we own all of our code and scripts, so we can't share it with the world, sorry!

    Quote:
    Originally Posted by dredzach View Post
    When low on life, bots sometimes get confused and just spin in circles not knowing whether to run away or not.

    Bots should not move into range of enemy abilities unless they want to engage the enemy.

    Bots shouldn't try to engage when outnumbered.

    Bots should buy and place wards.

    Bots should focus the most glass cannon enemies when possible.

    Bots in Dominion should not just run straight to the turret and start channeling. They should push in the minion wave first, or go around toward the plus to root out any defenders. They also "forget" people too quick in dominion. Bushes and shadows are everywhere, so bots should pursue at least a couple more seconds than they do now.
    Aside from the wards, all of this is due to how threat determination is currently done. As I mentioned earlier, I'll be changing this eventually, but it will take some time, since doing so impacts every other part of the AI system.
  • 66
    And some more up to page 6. If I've skipped your question it's either because I think another answer from a previous post has answered it, or because I was sloppy and missed it completely. If you feel that your question is pertinent and that I didn't provide a sufficient answer, please feel free to bring it up again (and be specific!). This is probably it for tonight, but I'll be keeping an eye on this whenever I can. Thanks guys!

    Quote:
    Originally Posted by Lara View Post
    why shen bot never use his ult?
    He should; if he doesn't, it's a bug. I'll look into it.

    Quote:
    Originally Posted by Squl View Post
    My question is if you plan on "fixing" the bot's items. As of now, some of them have, well, quite frankly, BAD builds. Unfortunately, at the moment I can't come up with any EXACT examples, but the main problems seem to lie in ranged ad champions.
    A lot of the item builds are done taking specific bot system factors into consideration; for example, bots tend to purchase more mana items than players do because bots don't pursue blue buff. That said, if there are some that you think are really bad, they can be changed.

    Quote:
    Originally Posted by Pyrocorn View Post
    Are you ever concerned the bots will rise up and become our overlords? I'd appreciate it if you could prevent skynet from getting karthus.
    Skynet's favorite champion to play is actually Blitzcrank. Or at least, that's what it told me yesterday.

    Quote:
    Originally Posted by OH NO ITS LU BU View Post
    Does Lux bot instantly know the length and width of her ult and aim it directly at the opponent or does it attempt to lead the shot?
    Yes, Lux Bot attempts to lead Final Spark. It seems to work generally pretty well from what I've seen.

    Quote:
    Originally Posted by EviIGreenRanger View Post
    Is there any chance to add a different item build script or something similar to some AI bots?
    So bots such as Malphite bot, would actually buy some MR items when it's getting pounded with AP base spells instead of having 400 armor, 80 MR and the same items every single game, or just use a script for a different build completely like AP/tanky instead of just pure tank.
    Yeah this is something I'd definitely like to do, but is basically impossible to do right now with our existing tech. Like jungling this is also a high-priority AI feature for whenever we get an AI team.

    Quote:
    Originally Posted by Xarkanadushak View Post
    I have three questions for you
    1) do you also do the minion and jungle camp ai

    if no ignore the next 2 questions

    2) am i paranoid or have the minions got more aggressive in pursuing champions down river and into jungle
    3) is there anything that can be done about jungle buffs (particularly red) resetting when leased
    Unfortunately no, I do not manage minion and jungle camp AI, but I don't believe that's been changed.

    Quote:
    Originally Posted by Engaging Apathy View Post
    Not sure if this is your department but is there any chance you could add summoner level to the champion select lobby for co-op vs AI?

    Knowing when someone is new vs when someone is trolling would help a lot for interactions with them(offering advice, helping them out vs just playing around them) as well as knowing if you can say, play AP gangplank to have fun without worry or if you've got 4 level 5s with you and you'll need to take things more seriously.
    This isn't my department, but I'll forward this suggestion to the appropriate parties.

    Quote:
    Originally Posted by Actizn View Post
    It might be worth looking at, I don't think Karthus bot uses his ultimate on dominion. I'm not 100% on that, but as far as I remember in the dominion CvAI game I played that he never used it once.
    This isn't the first report I've had of that, I'll definitely look into it, thanks.

    Quote:
    Originally Posted by Kagami View Post
    Are you working on or planning any changes to bot interactions with Inhibitors and Super Minions?

    As bots seem to ignore lanes being pushed with Super Minions commonly to push some random outer turret, or just generally don't seem to know how to react or clear them at all and I think they should at least be able to you know be able to somewhat clear and prioritize super minion waves.
    I had a fix that I was testing before I went on leave; I'll probably get around to fixing it up soon.

    Quote:
    Originally Posted by DreamsOfGrandeur View Post
    Why are bots so bad at defending the nexus?

    So many Co-op games, I'm having a good time, only to feel like the end-game was anti-climatic because the bots ignore this massive wave of mobs DESPITE their nexus-towers being down or severely low.

    Would really enjoy seeing bots be tenacious enough to defend their base properly and try to hold their own until the genuine destroying of the nexus by the co-op players.
    The fix I mentioned above should address this too, if it works. Still in progress.
Learn how to disable ads
Learn how to disable ads