Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: abilities.json

  1. #1

    abilities.json

    It looks like the vpk files that used to contain the hero list, item list, ability list, etc are no longer present in reborn. Any ideas on how to get the ability information out of the game client?

  2. #2
    Basic Member scottrick's Avatar
    Join Date
    Dec 2011
    Location
    Minnesota, USA
    Posts
    138
    I've been leveraging this github project:

    https://github.com/kronusme/dota2-api/

    There is an abilities.json in the data folder that seems to be up to date.

  3. #3
    Basic Member MuppetMaster42's Avatar
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    585
    check in:

    <dir>\Steam\steamapps\common\dota 2 beta\game\dota\pak01_dir.vpk

    then within that the file is npc_abilities.txt which can be found in:

    root/scripts/npc/npc_abilities.txt
    Last edited by MuppetMaster42; 01-09-2016 at 06:33 PM.

  4. #4
    Thanks muppet! This resolves my main problem. I was looking in the wrong folder and the search index was broken :/ .

    I also attempted to use the linux vpk utility, but got this error. Any thoughts on that?:

    >me@computar:~/.local/share/Steam/steamapps/common/Team Fortress 2/bin$ ./vpk_linux32 x /home/me/.local/share/Steam/steamapps/common/dota 2 beta/game/dota/pak01_dir.vpk
    couldn't find file 2

  5. #5
    Basic Member MuppetMaster42's Avatar
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    585
    i haven't ever used that sorry, i've only used GCFScape.

    sounds like you might have a missing file though?
    the VPK is split into multiple files (same way a zip can be).
    the "_dir.vpk" file is just like the master file/index of it all.

    I'd make sure that you have all of the other 114 vpk files (at least on windows there's that many..)
    pak01_000.vpk -> pak01_113.vpk

  6. #6
    Quote Originally Posted by scottrick View Post
    I've been leveraging this github project:

    https://github.com/kronusme/dota2-api/

    There is an abilities.json in the data folder that seems to be up to date.
    I am getting nothing for ability icons for the new abilities such as savage roar (http://media.steampowered.com/apps/d...e_roar_hp1.png) and for some I am getting invalid icons for example faceless void time dilation (http://media.steampowered.com/apps/d...lation_hp1.png).

  7. #7
    Basic Member MuppetMaster42's Avatar
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    585
    yeah that'll happen.

    valve fucked up with their new icons and they haven't put them since they added the new abilities.
    when they did release the new abilities, the icons listed were just slightly different coloured versions of the old ability icons.

    The only place you can get them is from the dota2 wiki (or from the game files themselves).

  8. #8
    Quote Originally Posted by rajeshjavvadi View Post
    I am getting nothing for ability icons for the new abilities such as savage roar (http://media.steampowered.com/apps/d...e_roar_hp1.png) and for some I am getting invalid icons for example faceless void time dilation (http://media.steampowered.com/apps/d...lation_hp1.png).
    Ability icons work fine with this URL format:
    Code:
    http://cdn.dota2.com/apps/dota2/images/abilities/{0}_lg.png
    where {0} is the name of the ability such as "faceless_void_time_dilation".

    You can see it in action here: http://www.dotadatabase.net/heroes/41/faceless_void.

  9. #9
    Quote Originally Posted by datadrivendota View Post
    It looks like the vpk files that used to contain the hero list, item list, ability list, etc are no longer present in reborn. Any ideas on how to get the ability information out of the game client?
    I have an automated process which extracts out this data for my Dota Database site. The process uses the ValveResourceFormat lib to open the vpk described above by Muppet and extract the files. It's a C# lib, so that might not help you.

  10. #10
    Basic Member MuppetMaster42's Avatar
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    585
    two problems with this though:

    LD's savage roar:
    http://cdn.dota2.com/apps/dota2/imag...ge_roar_lg.png

    Doesn't exist.

    and FV's time dilation:
    http://cdn.dota2.com/apps/dota2/imag...ilation_lg.png

    is the wrong icon (it should look like http://dota2.gamepedia.com/File:Time_Dilation_icon.png)
    the icon that valve has out is just a red coloured backtrack icon (see here: http://dota2.gamepedia.com/File:Backtrack_icon.png)


    As I said - valve fucked up and hasn't gotten around to fixing it

Posting Permissions

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