Thread Tools Display Modes
08-26-14, 09:10 PM   #1
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
HanktheTank's icons

Hi!

I love his raid icons so I use them.
Except, they dont' show everywhere as they're supposed to.
I know I can't have them in the 3D world...
But, I'm just trying to get them to show up in my Grid raid frames.

LUI uses them no problem, but Grid seems to not be able to.

Grid doesn't do corner icons by default either, so I use two grid plugins:
GridIndicatorCornerIcons
GridStatusRaidIcons

I've spent hours trying to figure this out, and looking at the LUA code for the Raid Icons plugin, I saw this line:

"Interface\\TargetingFrame\\UI-RaidTargetingIcon_"..raidicon)

Then, I looked at the folder for Hankthetank's icons:



So apparently, there's only one file containing all of them, instead of a separate file for each icon, which seems to be what the Grid plugin is looking for.

I then proceeded to try to generate each file, opening the main icons file, copying each layer with the icon in it into a new file and saving all 8 files with the correct names and the icons in them. Then, followed steps I saw on WowAce, on how to create TGA files that work in WOW. And....nope.

I'm just trying to make the awesome hankthetank icons show up in my raid frames. HELP!
  Reply With Quote
08-26-14, 09:22 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
The icon files need to go in the path where the addon is looking for them:
"Interface\\TargetingFrame\\UI-RaidTargetingIcon_"..raidicon)
This means that you need to create a "TargetingFrame" folder in your "Interface" folder -- next to the "AddOns" folder, not inside of it-- and put the icon files inside of that new folder.

The icons also need to have the correct names -- eg. "UI-RaidTargetingIcon_1.blp" needs to be the star icon -- and I would highly recommend they have the same dimensions as the original icons.

Finally, you need to completely restart WoW after adding any files, as it will not detect any files that are added while it's running.

If you're still having trouble, please provide more information, such as the files themselves, and where you put them.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.

Last edited by Phanx : 08-26-14 at 09:24 PM.
  Reply With Quote
08-27-14, 04:43 PM   #3
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
Ok I already had them in the correct place.
Now, I just exported them from Photoshop again, and put each of them in there again with the correct names.

The thing is, in the LUA in the addon, it doesn't specify which format it reads.
They are in TGA right now, as I couldn't find a way to convert that into BLP on a mac.

Will this work or do I have to convert them to BLP somehow?
  Reply With Quote
08-27-14, 04:49 PM   #4
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
Yeah, TGA doesn't seem to be doing the trick.

The weird thing is, LUI can use the new icons...both in the unitframes and the nameplates. (But it was doing this correctly, with just the one file "UI-RaidTargetingIcons.blp" in there)

Grid is the only one that isn't showing them.
I've attached the files here.

And here is a picture of the folder structure to show you where they are:

Attached Files
File Type: zip Archive.zip (33.3 KB, 166 views)
  Reply With Quote
08-27-14, 05:46 PM   #5
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
Well, their all 64 x 64 pixels. The only problem I can see is that the alpha layer is white. It should be black. A white alpha layer works for Blizzard stuff, but it doesn't seem to work for most addons. At least it doesn't seem to work too well.
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
Carbonite-CLASSIC<----- GitHub link to Carbonite Classic. Thanks to ircdirk for this!
  Reply With Quote
08-27-14, 06:11 PM   #6
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
But, wouldn't that make them show up wrong, instead of not showing at all?
In any case, I'll try changing the alpha channels to black and see what that does.

Thanks a lot!

I'll return with news :-)
  Reply With Quote
08-27-14, 10:05 PM   #7
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
Ok, so opening my files, I noticed they didn't actually have an alpha channel in the PSD file.

Meaning, photoshop must have created one when I exported as TGA, and by default it's white.

So I took your suggestion and tried to make one with a black alpha channel.
Still no progress.

I'm including the file I changed here, both the PSD and TGA versions of it, in case you guys need to take a look.
Attached Images
File Type: psd UI-RaidTargetingIcon_1.psd (31.0 KB, 193 views)
Attached Files
File Type: tga UI-RaidTargetingIcon_1.tga (16.0 KB, 149 views)
  Reply With Quote
08-27-14, 10:41 PM   #8
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
The .tga is single layer (transparency) only.

I opened the .psd in Gimp and saved as .tga, try this one.

UI-RaidTargetingIcon_1.tga
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
08-28-14, 07:14 AM   #9
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
Nope. I still see the old raid icon...

Argh.
  Reply With Quote
08-28-14, 08:06 AM   #10
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Originally Posted by baterax View Post
Nope. I still see the old raid icon...

Argh.
Did you saved them to "Interface\TargetingFrame\"?
Note that this is NOT the addons Folder.

[e]
I'm not sure ... but ... doesn't the images have to be .blp if the just replace the Blizzard images via the file structure?
  Reply With Quote
08-28-14, 10:45 AM   #11
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
Yes, they are in the right place.

But, if they HAVE to be BLP, then I'm screwed...

Because I'm on a mac and so far, I have only found an app that can READ blp and convert them to other stuff, but not back to BLP...

And that app didn't even open the BLPs correctly, they showed up all messed up.
If BLP is what it will take, them I'm not at the mercy of someone nice around here who can do it...

I mean, I'm sure other people would love to have Hankthetank's icons in their grid frames as well...
  Reply With Quote
08-28-14, 12:14 PM   #12
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Well, I don't know which Grid plugin you're using to show raid target icons, but just open it up in Notepad, and check the file path it's using for the icon files. If it explicitly specifies the .blp extension, then you'll have to convert your files, or edit the Lua to remove the extension. If it doesn't, then your problem lies elsewhere; post the relevant code from the plugin, or at least a link to its download page. It may be looking at entirely different files, for example.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
08-28-14, 02:33 PM   #13
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
Ok here's the two plugins:

http://www.curse.com/addons/wow/grid-status-raid-icons

http://www.curse.com/addons/wow/grid...r-corner-icons

Meanwhile I'll look inside the LUA, as you suggested.
  Reply With Quote
08-28-14, 02:34 PM   #14
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
Looks to me like this is the code that tells the addon where the icons are.

If you notice, it doesn't specify BLP, and it's pointing to the folder I have them in.

Code:
function GridStatusRaidIcons:UpdateUnit(event, unitid)
	local guid = UnitGUID(unitid)
	if not GridRoster:IsGUIDInRaid(guid) then return end

	local settings = self.db.profile.alert_raidicons_playertarget
	local targetid = unitid .. "target"
	if settings.enable and UnitExists(targetid) then
		local raidicon = GetRaidTargetIndex(targetid)
		if raidicon and GridStatusRaidIcons.db.profile.raidicon_playertarget[raidicon] then
			self.core:SendStatusGained(guid, "alert_raidicons_playertarget",
				settings.priority,
				(settings.range and 40),
				{ r = icontextcolor[raidicon].r, g = icontextcolor[raidicon].g, b = icontextcolor[raidicon].b, a = settings.opacity or 1, ignore = true },
				icontextcolor[raidicon].text,
				nil,
				nil,
				"Interface\\TargetingFrame\\UI-RaidTargetingIcon_"..raidicon)
		else
			self.core:SendStatusLost(guid, "alert_raidicons_playertarget")
		end
	else
		self.core:SendStatusLost(guid, "alert_raidicons_playertarget")
	end
end

function GridStatusRaidIcons:UpdateAllUnits()
	local settings = self.db.profile.alert_raidicons_player
	for guid, unitid in GridRoster:IterateRoster() do
		local raidicon = GetRaidTargetIndex(unitid)
		-- unit
		if settings.enable and raidicon and GridStatusRaidIcons.db.profile.raidicon_player[raidicon] then
			self.core:SendStatusGained(guid, "alert_raidicons_player",
				settings.priority,
				(settings.range and 40),
				{ r = icontextcolor[raidicon].r, g = icontextcolor[raidicon].g, b = icontextcolor[raidicon].b, a = settings.opacity or 1, ignore = true },
				icontextcolor[raidicon].text,
				nil,
				nil,
				"Interface\\TargetingFrame\\UI-RaidTargetingIcon_"..raidicon)
		else
			self.core:SendStatusLost(guid, "alert_raidicons_player")
		end

		-- unit target
		self:UpdateUnit("UpdateAllUnits", unitid)
	end
end
  Reply With Quote
08-28-14, 03:04 PM   #15
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
I've tested it. File has to be .blp if you put it into the Interface\TargetingFrame folder.

Just convert your tga files to blp. There are several applications to convert those files out there.

And: the Blizzard Interface uses an other source for those icon images. So do not test it with the standard unit frames. You probably won't see any difference there. Use your grid plugin to test.

[e]
I'm not sure if you goal is to change the icons all over the game or just for the grid plugins.
To do it everywhere you'll have to replace Interface\\TargetingFrame\\UI-RaidTargetingIcons.blp which contains all icon textures within a single file. Imho the Blizzard interface uses this file and not the single files.

Last edited by Duugu : 08-28-14 at 03:07 PM.
  Reply With Quote
08-28-14, 03:09 PM   #16
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
Yeah, the objective is to change them everywhere. The funny thing is, they ARE changed everywhere, EXCEPT the grid frames. It's driving me crazy.

I'll see if I can find another app to convert them to BLP.

I only found one for mac and it didnt' work.
  Reply With Quote
08-28-14, 03:12 PM   #17
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
I've added a converted file to this post. Does it work?
Attached Files
File Type: blp UI-RaidTargetingIcon_1.blp (6.5 KB, 156 views)
  Reply With Quote
08-28-14, 03:33 PM   #18
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
Ok this is really unnerving.

There only seems to be two apps that do it.

One is so old, that it doesn't run on intel macs.
The other can only read BLPs, not write, so it doesn't do what I need.
There's a photoshop plugin for handling BLPs on here, but guess what? "Mac OSX version soon"
That was a year ago.
Oh my god. I'm just trying to convert a silly image format!!!

How is it possible that there is NO mac app out there that does this????
  Reply With Quote
08-28-14, 03:39 PM   #19
GMRod
A Cyclonian
 
GMRod's Avatar
Join Date: May 2008
Posts: 42
Originally Posted by Duugu View Post
I've added a converted file to this post. Does it work?
GAH!

IT WORKED!

But somehow you lost quality in the process or something...I'll provide a screenshot:



If you compare the icon on the target frames, and the one in the grid frame, you'll notice the one in the grid frame looks weird, it's like there's something wrong with the selection when you added the alpha channel or something. Or maybe it's my TGA file.

But, PROGRESS! THANK YOU!

I still have the issue of not being able to handle BLP files on my mac though.
  Reply With Quote
08-28-14, 05:39 PM   #20
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
Man, that's the first screen shot I've seen with one of my Minimap Button Frame skins being used! Look's great.

Sorry, off topic.
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
Carbonite-CLASSIC<----- GitHub link to Carbonite Classic. Thanks to ircdirk for this!

Last edited by jeffy162 : 08-28-14 at 06:00 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » HanktheTank's icons

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off