• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Custom Icons {they become green when I click the menu}

Status
Not open for further replies.
Level 2
Joined
Apr 14, 2009
Messages
29
Hi.

I downloaded a custom icon/model pack from your model pack section. The pack was approved. I imported the icons into my wc3 world editor and used them to replace an icon on a custom spell I made. Everything looked great until I paused the game. The icon became green, like when it cannot find an icon, but as soon as I start the game it comes back to normal. I noticed that other spells become slightly gray when the game is paused and I did extract an icon like that into the editor but I cannot find a place to put it. Is the icon I am using, missing a file that makes it gray when the game pauses or haven't I edited the spell correctly? (The spell I am using is metamorphosis and I am using it to shape shift my hero into a custom model).

Also, is there a special trigger used to make the spells fit in order when you make a custom unit? When I edit the hero spells and test the map the spells get all mixed up randomly.

EDIT: Okey it works now. All I needed to do was to import the BTN and DISBTN files like bananaHunt showed me. You don't need to put the DISBTN file anywhere just make sure you import it like bananaHUNT said.
 
Last edited:
Level 6
Joined
Aug 19, 2006
Messages
187
an icon has normally always 2 files. 1 btn and disbtn. you need both because the disbtn makes that grayed icon when you pause.


when you create a spell there are two options in the editor. button position x and position y. 0/0 is the first place in the top row. but normally you would use 0/2 for the first spell and 1/2 for the 2nd and so on.
 
Level 16
Joined
Sep 20, 2008
Messages
445
This can help you:
uniteditor1.jpg


Also on your first question, it has nothing to do with the ability or model.
When your icon turns green it means the icon cannot be found. Usually you have entered an incorrect path.
Like EBTM said, every icon has a normal version (BTN for regular border, ATCBTN for autocast or PASBTN for passive) and a disabled version (DISBTN). The game uses the disable version for example when you pause the game. It is a darker version of the icon. For almost every icon the paths are (using YourIcon as name):

ReplaceableTextures\CommandButtons\BTNYourIcon.tga (or .blp) - for normal and atc icons
ReplaceableTextures\PassiveButtons\PASBTNYourIcon.tga (or .blp) - for passive
ReplaceableTextures\CommandButtonsDisabled\DISBTNYourIcon.tga (or .blp) - for disabled
ReplaceableTextures\CommandButtonsDisabled\DISPASBTNYourIcon.tga (or .blp) - for disabled passive

you can change them by going to the import manager (f12) > double click your file > select use custom *something* > change the path from wc3imported\blabla to the above
 
Level 2
Joined
Apr 14, 2009
Messages
29
Ah. I thought that there was a special place in the object editor where I should put the passive button. Thanks for the help I will try it out.

Thanks for the tip with the spells it works perfectly :)
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
If you have a question, sure, use the search function to see if someone answered it before. But do not necro post a 7 year old thread.

The spell name has no basis on the icon.
I assume you're using a custom icon, you need to make sure you have downloaded the Disabled Button Icon as well and correctly set its path.
 
Level 8
Joined
Jul 29, 2010
Messages
319
If you have a question, sure, use the search function to see if someone answered it before. But do not necro post a 7 year old thread.

The spell name has no basis on the icon.
I assume you're using a custom icon, you need to make sure you have downloaded the Disabled Button Icon as well and correctly set its path.

Sorry, but yes it is a custom icon, i don't know how to set the path or anything for it
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
You can place your normal icon in any folder anywhere, the location doesnt matter, only the name does.
Because the DISBTN is placed in one folder (which can be customized), which is "ReplaceableTextures\CommandButtonsDisabled\" by default, followed by a "DIS" prefix, and finally the name of the icon in the end.
So: <DISBTN_PATH> + "DIS" + <ICON_NAME>

If your icon is called "BTNSoulSteal.BLP", then you should have your DISBTN icon at "ReplaceableTextures\CommandButtonsDisabled\DISBTNSoulSteal.BLP"

You can set the filepath in the import manager.
By default, everything is at wc3imported\<name>
 
Status
Not open for further replies.
Top