Announcement

Collapse

Forum Rules

  • No flaming or derogatory remarks, directly or through insinuation.
  • No discussion, sharing or referencing illegal software such as hacks, keygen, cracks and pirated software.
  • No offensive contents, including but not limited to, racism, gore or pornography.
  • No excessive spam/meme, i.e. copious one liners in a short period of time, typing with all caps or posting meme responses (text/image).
  • No trolling, including but not limited to, flame incitation, user provocation or false information distribution.
  • No link spamming or signature advertisements for content not specific to Dota 2.
  • No Dota 2 key requests, sell, trade etc.
  • You may not create multiple accounts for any purpose, including ban evasion, unless expressly permitted by a moderator.

  • Please search before posting. One thread per issue. Do not create another thread if there is an existing one already.
  • Before posting anything, make sure you check out all sticky threads (e.g., this). Do not create new threads about closed ones.
  • It is extremely important that you post in correct forum section.

  • Balance discussion only in Misc.
  • All art related (such as hero model) feedbacks go to Art Feedback Forum.
  • All matchmaking feedback should go here: Matchmaking Feedback
  • All report/low priority issues should go here: Commend/Report/Ban Feedback
  • No specific workshop item feedback. These should go to workshop page of that item.
  • When posting in non-bugs section (such as this), use [Bugs], [Discussion] or [Suggestion] prefix in your thread name.



In case you object some action by a moderator, please contact him directly through PM and explain your concerns politely. If you are still unable to resolve the issue, contact an administrator. Do not drag these issues in public.



All rules are meant to augment common sense, please use them when not conflicted with aforementioned policies.
See more
See less

A question about bot skills

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A question about bot skills

    Is there a way to interchange them with each other, and if so how, I tried messing with npc_heroes to no avail. To show what I mean I thought it would be fun to make it so there are only 10 playable character who all just have passives for skills (the logic was that bots could handle it since they didn't have to use intelligence to use passives, just skill them up, the hero layout I had concluded on, at least for now was as such (to provide an example for what I desired):

    Shadow Shaman
    -Frostmourne
    -Heartstopper Aura
    -Brilliance Aura
    -Borrowed Time

    Weaver
    -Geminate Attack
    -Lunar Blessing
    -Trueshot Aura
    -Marksmanship

    Slardar
    -Dragon Blood
    -Natural Order
    -Inner Beast
    -Return

    Phantom Lancer
    -Backtrack
    -Incapacitating Bite
    -Blade Dance
    -Time Lock

    Lifestealer
    -Caustic Finale
    -Tidebringer
    -Vampiric Aura
    -Reincarnation

    Queen of Pain
    -Dispersion
    -Degen Aura
    -Command Aura
    -Desolate

    Mirana
    -Mana Break
    -Thirst
    -Blur
    -Coup De Grace

    Bristleback
    -Flesh Heap
    -Corrosive Skin
    -Craggy Exterior
    -Grow

    Disruptor
    -Geostrike
    -Backstab
    -Hunter in the Night
    -Goblin's Greed

    Medusa
    -Psi Blades
    -Headshot
    -Take Aim
    -Permanent Invisibility

    P.S. Happy to come back to find this forum to still have a little life left, and with people like Arxos still around
    Last edited by Toomuchmooin; 09-22-2013, 03:38 PM.

  • #2
    The default bots seem to have their abilities hardcoded in some fashion, if they don't get the abilities they expect to get the game instantly crashes. (I've run the bots a couple of times with an OMG plugin)
    You may be able to do it if you mess with the abilities of non-implemented bots though, as their abilities aren't coded so they wouldn't 'expect' to get certain abilities perhaps.
    Worth trying, I can't right now though.

    Comment


    • #3
      i assume in their logic files there are lines like FindAbility('Ability_Enchant_Totem'). that would be assuming it crashes because the logic file is getting abilities that aren't in there skillset (the one you created).
      This ain't ova.

      Comment


      • #4
        There are also several weirdly broken heroes that you can't tweak the abilities much on. I tried swapping out some of Alchemist's default abilities and got a crash every time.
        Please help keep the forums clean by reporting rude or abusive posts!
        Got a problem? PM me or another moderator!
        Forum Rules

        Comment


        • #5
          Originally posted by DarkLite View Post
          There are also several weirdly broken heroes that you can't tweak the abilities much on. I tried swapping out some of Alchemist's default abilities and got a crash every time.
          Guessing there's some very basic AI in place there that doesn't really do anything but still ends up causing crashes if the abilities are different.
          I tried giving Mirana 4 passives, and it worked just fine at least. You do get the red cross spam due to not loading spell effects however. I'm not sure if you can solve that purely client-side, I'm unfamiliar with console commands to preload specific particle files anyhow, I know you can fix it if you run a Dota 2 server with a plugin that preloads all abilities though.

          I can't really do any more experimenting until I get home in about 3 or 4 hours though.

          Comment


          • #6
            Originally posted by Arxos View Post
            Guessing there's some very basic AI in place there that doesn't really do anything but still ends up causing crashes if the abilities are different.
            I tried giving Mirana 4 passives, and it worked just fine at least. You do get the red cross spam due to not loading spell effects however. I'm not sure if you can solve that purely client-side, I'm unfamiliar with console commands to preload specific particle files anyhow, I know you can fix it if you run a Dota 2 server with a plugin that preloads all abilities though.

            I can't really do any more experimenting until I get home in about 3 or 4 hours though.
            It happened when I was playing Alchemist though, which didn't make a whole lot of sense. It was a few months back, but from memory removing or replacing acid spray did it.
            Please help keep the forums clean by reporting rude or abusive posts!
            Got a problem? PM me or another moderator!
            Forum Rules

            Comment


            • #7
              So, possible as long as not on implemented bots? Do the non-skill implemented bots, like mirana, know how to buy?

              Comment


              • #8
                Originally posted by Toomuchmooin View Post
                So, possible as long as not on implemented bots? Do the non-skill implemented bots, like mirana, know how to buy?
                Yes. There's a basic AI in place which is used by all heroes, the hero-specific AI is largely just on how to use their skills. Even without that, they'll still buy the items listed in their build, skill their abilities and lane/ward according to their roles. Basically, everything you can edit in the npc_heroes.txt file will have an impact whether or not a bot is properly implemented or not.

                Just add "BotImplemented" "1" to a non-implemented hero, then modify his build, skills and laning behaviour as you please and done.

                Comment


                • #9
                  Originally posted by Arxos View Post
                  Yes. There's a basic AI in place which is used by all heroes, the hero-specific AI is largely just on how to use their skills. Even without that, they'll still buy the items listed in their build, skill their abilities and lane/ward according to their roles. Basically, everything you can edit in the npc_heroes.txt file will have an impact whether or not a bot is properly implemented or not.

                  Just add "BotImplemented" "1" to a non-implemented hero, then modify his build, skills and laning behaviour as you please and done.
                  Thanks man, I may get to it soon then, just need to choose some nice heroes, I'm planning on giving them all a certain basic build to follow and evening the stats and essentially balancing the game as something new, an aura dota, slowly expanding available items, as well as balancing skills, items, and stat growth as I choose.

                  Any base item builds and recommended starting stats would be welcome by the way

                  npc_heroes.txt

                  That's it with the 10 modded heroes, but it crashes upon picking a hero, can somebody check for me to see if there might be an error in the code on those 10, you don't have to actually run it or anything, I've changed their item builds (I want to make 3 more generic ones though), stats, armor, and attack stuff

                  Edit: Modified OP with new heroes I'm using
                  Last edited by Toomuchmooin; 09-22-2013, 08:06 AM.

                  Comment


                  • #10
                    Brewmaster is causing the crashes. It does seem that some heroes have partial AIs and are causing this.

                    I'll see if I can test every single hero and see which one causes crashes and which don't, currently busy on something else but should have time in about an hour from now.

                    Comment


                    • #11
                      Switched brew to slardar, seems to be working so far

                      Disruptor having night stalker's hunter in the night during night time causes a crash

                      Edit: I think I fixed every crash thus far, feel free to try it, there are some funny little nuances that occur besides the red x's, namely, disruptor becomes night stalker upon getting hunter in the night, and slardar becomes tiny upon getting grow

                      npc_heroes.txt
                      Last edited by Toomuchmooin; 09-22-2013, 04:30 PM.

                      Comment


                      • #12
                        Alright, tested all heroes, results are as follows (of course, implemented bots are broken by default, they're not listed):

                        WORKING:
                        Code:
                        Abaddon
                        Bristleback
                        Centaur Warrunner
                        Clockwerk
                        Dark Seer
                        Disruptor
                        Doom
                        Elder Titan
                        Enchantress
                        Enigma
                        Faceless Void
                        Gyrocopter
                        Huskar
                        Invoker
                        Io
                        Keeper of the Light
                        Leshrac
                        Lifestealer
                        Lone Druid
                        Lycanthrope
                        Magmus
                        Medusa
                        Meepo
                        Mirana
                        Morphling
                        Naga Siren
                        Nature's Prophet
                        Nightstalker
                        Nyx Assassin
                        Obsidian Destroyer
                        Ogre Magi
                        Phantom Assassin
                        Phantom Lancer
                        Puck
                        Pudge
                        Pugna
                        Queen of Pain
                        Riki
                        Rubick
                        Shadow Demon
                        Shadow Shaman
                        Shadowfiend
                        Silencer
                        Skywrath Mage
                        Slardar
                        Slark
                        Spectre
                        Spirit Breaker
                        Spirit Breaker
                        Storm Spirit
                        Templar Assassin
                        Timbersaw
                        Tinker
                        Treant Protector
                        Troll Warlord
                        Undying
                        Ursa
                        Venomancer
                        Visage
                        Weaver
                        NOT WORKING:
                        Code:
                        Alchemist
                        Ancient Apparition
                        Anti-Mage
                        Axe
                        Batrider
                        Beastmaster
                        Bloodseeker
                        Brewmaster
                        Broodmother
                        Chen
                        Clinkz
                        So yeah, curiously only bots that start with A, B or C are broken except for very new heroes (Abaddon, Bristleback and Centaur, Clockwerk is probably not affected due his game files name being Rattletrap)
                        Seems like ChrisC just systematically went over the bots and did a very basic hookup of the skills and such only to abandon the idea after a dozen or so heroes.

                        Comment

                        Working...
                        X