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

[Tutorial]: Change Hero Portraits

  • Filter
  • Time
  • Show
Clear All
new posts

  • [Tutorial]: Change Hero Portraits

    Already posted this on Reddit and i thought why not post it here as well. (Though i didn't tell them HOW to do it. )
    I was messing around with the console commands and stumbled over one called "dota_portrait_debug_mode 1". It allows you do get into a menu where you can change the portrait to your liking. It's pretty primitive but once you get the hang of it, it works well. I don't know if you can save the values directly from the debug menu so I put them in manually. (Into the text file "npc".)

    It's necessary to bind the console to a specific key. You can do that by typing "bind f7 toggleconsole".
    After you've edited the text file you can go back into the game and type in "dota_portrait_debug_mode 0" then dota_portrait_reload". This will update the portrait from the text file. You won't see the change unless you select another unit and then go back. One thing i haven't really figured out yet is the hue's. Seems kind of random but if you take the value from the debug menu and divide it by 2 it usually works pretty nicely. If it doesn't, change the value by 10 until it gets the way you wanted.

    Simplified Step-by-step:
    * Right click Dota 2 in your Steam library. Select Properties -> Launch Options -> type in "-console" without the ".
    * Start-up Dota 2. Type in "bind f7 toggleconsole".
    * Start-up a private game with cheats enabled.
    * Choose the hero you want to edit the portrait of.
    * Press F7 to open up the console. Type in "dota_portrait_debug_mode 1" without the ". Press F7 again.
    * Now you are in the portrait debug menu. Change the portrait to your liking. Use space to navigate the menu.
    * Open up the file "steam/steamapps/common/dota 2 beta/dota/scripts/npc/portraits". Use ctrl+f to search for your desired hero.
    * Look at the values on the game and write them into the textfile. You should see where they should be. Be aware that hue's might be hard to get right. (Ignore changing them if you're unsure.) If you however want to change them, try dividing the value from the game by 2. Save the text file.
    * Go back into the game. Press F7 to open up the console again. "dota_portrait_debug_mode 0" then dota_portrait_reload". This will update the portrait from the text file. Note that you need to change unit for it to update.
    * Be proud over your newest creation.
    * Profit.

    Hopefully this will be of any use to you.

    Here are some examples that I've made myself:
    If you want you can download the file i made.
    Link to the file:
    It's just a text file but it tells the game how to render the portraits in-game. The reason they don't change in the selection screen is because it's pictures there instead of real time rendered 3D.
    All you need to do is put the file in "steam/steamapps/common/dota 2 beta/dota/scripts/npc"

    You should also keep a backup of the original file, just in case. Notably too is that this file will be overwritten when the next patch arrives.
    If you have any questions feel free to ask and I'll try to answer.

    The heroes changed are:
    * Pudge
    * Ursa
    * Earthshaker
    * Viper
    * Razor
    * Broodmother
    * Nature's Prophet
    * Shadow Fiend
    * Juggernaut
    * Lich
    * Drow Ranger
    * Sven
    * Slardar (he's a lost cause but i think i did decent.)

    Have fun and feedback is appreciated.

  • #2
    i like the furion 1 best...


    • #3
      Furion's was freaken hilarious.


      • #4
        Sorry for the necro.. but I tried this and am getting an error. I made a private lobby with just myself, enabled cheats, went in game and then:

        ] dota_portrait_debug_mode 1
        Can't use cheat cvar dota_portrait_debug_mode in multiplayer, unless the server has sv_cheats set to 1.
        ] sv_cheats 1
        Can't change replicated ConVar sv_cheats from console of client, only server operator can change its value

        Has this method been broken or am I overlooking something?