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

Dueling Fates update

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

  • Yavimaya
    replied
    there SHOULD be an items.txt in everyones folder.
    i have one and had forgotten that i also put it there until nomad said, valve need to get chris some more help so things like this can be done properly, he seems to be doing absolutely everything bot related himself, plus lots of other duties.

    Leave a comment:


  • The Nomad
    replied
    My bad. I put it there You're right.

    If you're interested, here are all the files (the modifiers are 100% correct, as they're dumped from the game, not from the outdated? wiki).
    Last edited by The Nomad; 12-07-2017, 10:52 AM.

    Leave a comment:


  • nostrademous
    replied
    you have an "npc_items.txt"??? I only have npc_(abilities, heroes, units).txt files in scripts/npc

    I really want items.

    Leave a comment:


  • The Nomad
    replied
    The npc* files need to be updated. For example, I can't find meteor hammer or spirit vessel in the exported npc_items.txt from the bots folder.

    Leave a comment:


  • arz_on4dt
    replied
    Originally posted by arz_on4dt View Post
    And can you add inactive ability API too Chris like Troll Melee Whirling Axes when he's on range form ( even though I can check for his attack range) or MK Primal Spring when he isn't in the tree. I use IsFullyCastable() to check for this but it always return true and IsHidden() always return false. That's why MK sometimes can jump from the ground instead of tree because I just add a check to tree within a small radius and it doesn't guarantee you for preventing MK using it from the ground or he'll just AFK.
    I regret this. Actually there is IsActivated() that will inform you that this kind of ability can be used. Not sure if it works for item that in backpack swap cool down.

    Leave a comment:


  • Yavimaya
    replied
    Originally posted by The Nomad View Post
    @Chris

    Please add the game mode constants for Turbo Mode and the pick state constant for hero selection in Turbo Mode.

    Also, considering this...

    ... we'll need the constants for bans 11 and 12. I am curious if the extra ban is only for CM or for all CM-based modes (such as reverse CM or Captain's Draft).

    I'll keep updating this as I find more impacted (or missing) stuff so that Chris can have it in one place

    Unrelated to Dueling Fates:
    Does someone know what game modes these pick state constants are for? And I mean 100% know, not assumptions
    • HEROPICK_STATE_FH_SELECT
    • HEROPICK_STATE_BD_SELECT


    Also what does this function do: IsPlayerInHeroSelectionControl() ?

    probably not such a big deal for captains draft considering the mode doesnt work at all anyway.... it is simply captains mode with most guys greyed out.... you can pick or ban anyone you like...

    Leave a comment:


  • The Nomad
    replied
    I have a feeling the moddota guys mixed up the constants. I noticed them too today. A lot have no real purpose in the bot API. Or at least, not yet.

    Leave a comment:


  • arz_on4dt
    replied
    Originally posted by The Nomad View Post
    @Chris

    Please add the game mode constants for Turbo Mode and the pick state constant for hero selection in Turbo Mode.

    Also, considering this...

    ... we'll need the constants for bans 11 and 12. I am curious if the extra ban is only for CM or for all CM-based modes (such as reverse CM or Captain's Draft).

    I'll keep updating this as I find more impacted (or missing) stuff so that Chris can have it in one place
    Yep, we need it. BTW why http://docs.moddota.com/lua_bots_enums/ and http://docs.moddota.com/lua_server_enums/ now have the same content. Is this how it's supposed to be? I missed a lot of constant value that I need. This link https://developer.valvesoftware.com/..._Bot_Scripting doesn't have the constant value.

    And can you add inactive ability API too Chris like Troll Melee Whirling Axes when he's on range form ( even though I can check for his attack range) or MK Primal Spring when he isn't in the tree. I use IsFullyCastable() to check for this but it always return true and IsHidden() always return false. That's why MK sometimes can jump from the ground instead of tree because I just add a check to tree within a small radius and it doesn't guarantee you for preventing MK using it from the ground or he'll just AFK.

    Leave a comment:


  • The Nomad
    replied
    @Chris

    Please add the game mode constants for Turbo Mode and the pick state constant for hero selection in Turbo Mode.

    Also, considering this...
    Captains Mode: Captains Mode now has an extra ban in the first phase (6 bans total in the mode).
    ... we'll need the constants for bans 11 and 12. I am curious if the extra ban is only for CM or for all CM-based modes (such as reverse CM or Captain's Draft).

    I'll keep updating this as I find more impacted (or missing) stuff so that Chris can have it in one place

    Unrelated to Dueling Fates:
    Does someone know what game modes these pick state constants are for? And I mean 100% know, not assumptions
    • HEROPICK_STATE_FH_SELECT
    • HEROPICK_STATE_BD_SELECT


    Also what does this function do: IsPlayerInHeroSelectionControl() ?

    Leave a comment:


  • The Nomad
    replied
    FYI: I tested HasScepter() and it works properly with Aghanim's Scepter, Alchemists synthesized scepter and Io's Scepter Talent. GetNeutralSpawners() seems to report correct locations.

    PSA: Devilesk also updated the map to 7.07 and ModDota seems to have updated the documentation.

    @Chris What happened to GetModifierSourceAbility() ? I ran a debug on the dumps and it seems to be missing from the exported functions.


    EDIT #1:
    OK, it's confirmed. I ran a test with GetBot():GetModifierSourceAbility(0) and it won't call it. The function is not exported.

    [VScript] Script Runtime Error: ...game\dota\scripts\vscripts\bots\bot_generic.lua :687: attempt to call method 'GetModifierSourceAbility' (a nil value)
    EDIT #2:
    Apart from the functions mentioned in this thread to adapt to the changes, GetMostRecentPing() needs to be updated with the new pings of the ping wheel: enemy vision, needed ward, defending and attacking. Same for ActionImmediate_Ping()

    Also, Should ActionImmediate_Ping() and ActionImmediate_Chat() be unit-scoped? They should be player-scoped. If the chat function is global, then it can also be used in the hero selection like some wanted/asked
    The ping should not need a unit handle either, but I am just asking
    Last edited by The Nomad; 11-12-2017, 12:17 PM.

    Leave a comment:


  • The Nomad
    replied
    @Chris
    Low priority, but don't forget to give us IsBanished() as per the patch update stating New healthbar status called "BANISHED" has been added. | Works with Astral Imprisonment and Disruption

    Also can we get a GetBonusHeroes() function that returns the internal hero names of the bonus heroes in an array during hero selection?
    Last edited by The Nomad; 12-07-2017, 11:32 PM.

    Leave a comment:


  • Yavimaya
    replied
    awesome thanks man!

    Leave a comment:


  • arz_on4dt
    replied
    Originally posted by Yavimaya View Post
    Code:
    return BOT_ACTION_DESIRE_LOW, npcEnemy:GetLocation();
    return BOT_ACTION_DESIRE_LOW, npcEnemy:GetExtrapolatedLocation( nCastPoint );
    return BOT_ACTION_DESIRE_LOW, npcBot:GetExtrapolatedLocation( nCastPoint );
    etc, dont work properly for Pangolier's Swasbuckle skill.
    he will always charge to the centre of the map and then throw his blades towards his target from there.
    Yep that always happens. I wonder if Chris will add an API on how to use Vector Targeting Ability or just fix it because it just says Point Targeting in the ability description.

    Originally posted by Yavimaya View Post
    the new item names havent been put into the items.txt yet, is there a way to find the underhood names on them?
    item_recipe_aeon_disk is not correct as far as i have seen, not sure what else it may be called.
    http://dota2.gamepedia.com/Cheats or you can take a look at ItemUtility.lua in my latest script.

    Leave a comment:


  • Yavimaya
    replied
    the new item names havent been put into the items.txt yet, is there a way to find the underhood names on them?
    item_recipe_aeon_disk is not correct as far as i have seen, not sure what else it may be called.

    Leave a comment:


  • Yavimaya
    replied
    Code:
    return BOT_ACTION_DESIRE_LOW, npcEnemy:GetLocation();
    return BOT_ACTION_DESIRE_LOW, npcEnemy:GetExtrapolatedLocation( nCastPoint );
    return BOT_ACTION_DESIRE_LOW, npcBot:GetExtrapolatedLocation( nCastPoint );
    etc, dont work properly for Pangolier's Swasbuckle skill.
    he will always charge to the centre of the map and then throw his blades towards his target from there.

    Leave a comment:

Working...
X