[SOLVED] Heroes icons in ".vtex_c" format - way to correct compile them?

edited December 2016 in Questions

Okay, so as title saids - i looking for a way to correct convert heroes icons from ".png" to ".vtex_c".

I've tried to convert some heroes icons from:

"resource\flash3\images\heroes\"

to ".vtex.c" format, using different shaders in Material Editor. Most of shaders do not work coz of "Non power of two"-error, since icon size is 128x72, so i've tried to use "UI"-shader, he do not have "power of two"-requirement, but problem is that compiled icon looks weird. I attach screenshot bellow:

Thats how i convert image: http://imgur.com/qCSHR1H

But that is what i get in game: http://imgur.com/NAAw47t

P.S. Maybe thats important? I replace original path of hero, i mean - after compiling, i get file with name "axe_png_b51aabaa.vtex_c", but then i rename it to "npc_dota_hero_axe_png.vtex_c" so it will replace original hero icon. Im not custom game creator, im moder of original dota-content.

P.P.S. Sorry for my bad english.

Comments

  • Posts: 858

    Im not custom game creator, im moder of original dota-content.

    Unfortunately we do not support that here.

    MAKE CUSTOM GAMES GREAT AGAIN

    Finished-
    kv checker - https://arhowk.github.io
    panorama video series - https://moddota.com/forums/discussion/2021/inclusive-panorama-tutorial-quest-box

    My pet project This Cursed World/Crestfallen (name pending)
    https://moddota.com/forums/discussion/986/this-cursed-world-rpg#latest

  • edited December 2016 Posts: 30

    Unfortunately we do not support that here.

    I dont really care what u wanna support or what u dont wanna.

    I know that solution is same for "custom game" creators, since i've tried to replace original hero icon (Axe) by icon from custom game "THD2" (Some hero) and its worked - hero icon correctly replaced, so i expect there will be nice people which can give me solution or at least advice.

  • edited December 2016 Posts: 858

    I dont really care what u wanna support or what u dont wanna.

    That sounds like a you problem.
    If we start supporting game modders than we can get flagged as a TOS violation community by Valve and can be taken down.

    MAKE CUSTOM GAMES GREAT AGAIN

    Finished-
    kv checker - https://arhowk.github.io
    panorama video series - https://moddota.com/forums/discussion/2021/inclusive-panorama-tutorial-quest-box

    My pet project This Cursed World/Crestfallen (name pending)
    https://moddota.com/forums/discussion/986/this-cursed-world-rpg#latest

  • That sounds like a you problem. If we start supporting game modders than we can get flagged as a TOS violation community by Valve and can be taken down.

    You really wanna start chat here?

    I already said, solution is same for custom games. I dont think that if i will recreate that topic with title "Custom game hero icon" that will change whole situation.

  • edited December 2016 Posts: 127

    @Arhowk

    If we start supporting game modders than we can get flagged as a TOS violation community by Valve and can be taken down.

    Well, we don't get flagged by Valve. Just because Valve doesn't care about their modding community, (so much) example: patch 7.00

    @SanyaBane As far as i know, pictures (png format) must be in this way "panorama\images\heroes" and must be same name as original, also they must be compiled using panorama xml, so they be in "panorama/layout"! I'm never modified Dota 2 client (and don't intend to) so I'm don't know how it work.

  • @Wyrm

    pictures must be in this way "panorama\images\heroes" and must be same name as original

    Yup, of course i know that.

    also they must be compiled using panorama xml, so they be in "panorama/layout"

    And this already sounds interesting! Thanks, now i know where can i start searching

  • edited January 2017 Posts: 30

    @Wyrm thanks again.

    So solution for my problem is compile '.png' to '.vtex_c' not with "Material Editor", but with "resourcecompiler.exe".

    Path:

    \Dota 2 beta\content\dota_addons\test_my_01\panorama\images\heroes\

    Files:

    npc_dota_hero_abyssal_underlord_png.xml

    npc_dota_hero_abyssal_underlord.png

    Xml-file:

    <root> 
      <Panel class="AddonLoadingRoot">
          <Image id="gamemode" class="SeqImg" src="file://{images}/heroes/npc_dota_hero_abyssal_underlord.png" />
      </Panel>
    </root>
    

    ".bat"-file that use resourcecompiler.exe example:

    @echo off
    
    set compiler=D:\Games\SteamLibrary\SteamApps\common\dota 2 beta\game\bin\win64\resourcecompiler.exe
    
    "%compiler%" -r "D:\Games\SteamLibrary\SteamApps\common\dota 2 beta\content\dota_addons\test_my_01\panorama\images\heroes\*.*"
    
    set /p DUMMY=Hit ENTER to exit.
    
  • Posts: 1

    @SanyaBane

    Hello, I tried to convert some icons for my mod to vtex_c (as of the new update) but they are pink. Would you happen to know how to fix this? I can't find any other posts regarding this white-pink issue. I don't understand these xml stuff, can you elaborate further?