Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 31

Thread: February 1 Bot Update

  1. #1
    Valve Developer
    Join Date
    Sep 2011
    Posts
    1,704

    February 1 Bot Update

    • Fixed bug in the destruction of handles that was causing widespread mayhem.
    • Fixed spelling of SetActionQueueing().
    • Added GetAbilityInSlot() function to the unit bot script API.
    • Added GetCooldown() function to the ability bot script API


    Please let me know if you see any more craziness with handles, I believe it should be fixed now.

  2. #2
    Basic Member
    Join Date
    Dec 2016
    Posts
    731
    He said he fixed it.

  3. #3
    Basic Member
    Join Date
    Jun 2013
    Posts
    274
    Yeah was editing as you were replying. XD

    Scrap the whole thing and start anew. My handle issues aren't popping anymore following the update.

  4. #4
    Basic Member
    Join Date
    Dec 2016
    Posts
    731
    Just got a traceback (for an error in my implementation)

    Code:
    [VScript] Script Runtime Error: ...beta\game\dota\scripts\vscripts\bots/ganking_generic.lua:124: This object has been deleted from C++ and no longer exists. (Use :IsNull() to detect this.)
    stack traceback:
    Apparently unit-scoped IsNull() is a thing now.

    To be more explicit - my Bloodseeker was trying to gank Sandking, who then happened to use Sandstorm (going invis). Hence the handle was dropped (as it should per patch notes). I did have a check for "target.Obj ~= nil" in my code but apparently that still was evaluated as "true". Testing using "target.Obj:IsNull()" now.
    Last edited by nostrademous; 02-01-2017 at 02:04 PM.

  5. #5
    Basic Member
    Join Date
    Dec 2016
    Posts
    731
    Question:
    What do I pass to GetUnitPotentialValue() now when I can't see the target but want to make educated guesses where he could be?

  6. #6
    I noticed the bots builds are updated. Nice, but Dazzle Bot is still broke with his 'E' (spamming it all the time). And Zeus still using his 'Q' randomly on neutral creeps in the jungle lol. I'll probably remove these bots for now through my npc_heroes.txt.

  7. #7
    Basic Member
    Join Date
    Dec 2016
    Posts
    731
    My courier doesn't seem to deliver items anymore...

  8. #8
    Basic Member
    Join Date
    Dec 2016
    Posts
    123
    Fixed courier.

    Is GetRawOffensivePower() working at this moment?
    Last edited by lunarbreez; 02-01-2017 at 03:52 PM.

  9. #9
    Basic Member
    Join Date
    Dec 2016
    Posts
    731
    Also, denying friendly creeps seems to no longer work for me after the patch.

  10. #10
    Basic Member
    Join Date
    May 2014
    Posts
    270
    Quote Originally Posted by ChrisC View Post
    • Added GetAbilityInSlot() function to the unit bot script API.
    Wow! This is what I wanted. Thank you ChrisC . I assumed it has an int Slot Number as parameter e.g GetBot():GetAbilityInSlot( int SlotNumber ). Let's say it's only Q,W,E,D,F, and R key on the shortcut key for casting spells. If it base 0 index, will the index of R always on 5th index or it'll adjust according to how many skill does the bot has?
    Last edited by arz_on4dt; 02-01-2017 at 03:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •