Quantcast Fun with macro icons - EQ2Interface
EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 06-26-2012, 05:18 PM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default Fun with macro icons

More macro icons? Here you go, no mod required. Any spell icon foreground with any spell icon background for your use.

(There are other posts that go into the details of how to get and use the id #s.)

The formula for an icon is:
backgroundIconOffset * 2^16 + foregroundIconOffset

The space for each background is 2^16.
Icons are zero-indexed, and there are currently 954 of them.

The offsets for the colored backgrounds are:
312 green
313 blue
314 purple
315 red
316 orange
317 yellow

If you have a known SpellIconID like 20709646 (Destructive Mind). As a single target buff, it has an orange background. I have two of them on my hotbar. One macro'd to me, and another for my current target. Since self-buffs have a yellow background, I'm going to change the icon on the self-target to yellow. Two ways to do it.

Method 1:
Since orange is offset 316 and yellow is 317 I can just add 2^16 (65536) to the id to move to the next background.
OldID + 65536 = NewID
20709646 + 65536 = 20775182

For red (from orange) it would be id-65536
20709646 - 65536 = 20644110

Blue (from orange) id-65536*3 = 20513038

Method 2:
Find the background icon offset: 20709646/65536=316.004119 (Only the whole # matters)
Our bg is 316.

Now find the foreground icon offset: 316*65536=20709376 (Which is the start of the icons with that bg)
OriginalId - (BackGroundId * 65536)
20709646 - 20709376 = 270 (So my icon is offset 270).

Now I can put any background I want on it.
BackgroundOffset * 66536 + 270

For yellow: 317*65536+270=20775182 (which is exactly what we found in method #1)

For a music note: 515*65536+270=33751310

When it's all done, you can put it in a text file and use /loadhotkeys. Once they're on your hotbar, they can be dragged to the macro editor.



This is the code I put into the textfile to load up the attached icons.

4 3 macro 33751310 1 1 blah0
b
4 4 macro 20775182 1 1 blah1
b
4 5 macro 20709646 1 1 Destructive Mind V
/useability 84402331
4 6 macro 20644110 1 1 blah2
b
4 7 macro 20513038 1 1 blah3
b

Have fun. Oh, and I recommend using /savehotkeys someuniquefilename before messing with any of this so you don't lose your hotkeys.
Attached Thumbnails
Click image for larger version

Name:	dmindicons.jpg
Views:	1066
Size:	5.2 KB
ID:	7912  

Last edited by pooka : 06-26-2012 at 05:30 PM. Reason: typos
Reply With Quote
  #2  
Unread 06-26-2012, 05:19 PM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default

As a note. This can be done with items too, but we can't mix the spell and item icons.
Reply With Quote
  #3  
Unread 06-27-2012, 12:21 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Send a message via AIM to Drumstix42 Send a message via MSN to Drumstix42 Send a message via Yahoo to Drumstix42
Default

Cool. I'ma either make a quick webpage utilizing this or... something in the UI... because I wanna be able to get quick access to spell icons.
If this could be used for Item Macros (background color), I'll love it, because I hate that gray/white default background you get with them...

Thanks.

*edit* If someone could figure out how to get an ItemID or SpellID in-game without using logging it would be awesome. I don't think it's possible though. Only icon ID's are possible as far as I can tell, which don't help much since they are shared.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>

Last edited by Drumstix42 : 06-27-2012 at 12:35 AM.
Reply With Quote
  #4  
Unread 06-27-2012, 09:27 AM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

Can you just link the item or spell, copy the link and then paste it into notepad / the browser or any other non-EQ2 thing to get the plaintext of the link with the ID in it? It should work for items, not 100% on spells as I've never tried those (and spell links have never really worked).
__________________
Reply With Quote
  #5  
Unread 06-27-2012, 09:50 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Send a message via AIM to Drumstix42 Send a message via MSN to Drumstix42 Send a message via Yahoo to Drumstix42
Default

I specifically stated without means of chat logging. As in I want to get an Item ID of any item in-game via UI code and have no 3rd party interaction.

But alas I don't think it's possible.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #6  
Unread 06-27-2012, 10:30 AM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

Ah, when you said logging I thought you were talking about having to check the log file for it.

I can't think of any automated way of getting the item ID either. It's not displayed or otherwise accessible on the item that I know of.
__________________
Reply With Quote
  #7  
Unread 06-27-2012, 01:54 PM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default

I used hotkey files via /loadhotkeys to display the icons on 10 hotbars.

I've just uploaded all of the icons to the utility section. I've added the hotkey files and python script I used to generate the files.

The macro name contains the offset # for each icon. Clicking any icon will send the offset # to your chat input (via /beginchatinput).

The item icons in game usually use offset -1 as their background. They are tinted programmatically by the game. We can't, as I said above, mix item icons with spell icons, and the item icons don't contain any sort of plain background besides the cloudy white. However, it seems the devs made it easy on us to add those.

Right now, the item icons are stored in %eq2dir%/UI/Default/Images/Icons/ as a series of dds files like icon_is1.dds. There are 113 of these files at the moment. The game seems to load them in order, but it doesn't stop when it gets to the end of the list.

copy icon_ss9.dds to icon_is200.dds

Move icon_is200.dds to your %eq2dir%/UI/%moddir%/Images/Icons/ directory.

icon_ss9.dds contains the colored backgrounds for spells. You can now use them for items. If you use 200 as above, the offsets are 7188 through 7193 (green, blue, purple, red, orange, yellow). It is possible, though unlikely, that the devs will get to 200.

To differentiate between item icons and spell icons is a simple flag in the macro string. The number after the id# is 0 for items and 1 for spells. Notice the two lines below are using the same id#.

4 3 macro 20513111 1 1 Crescent Strike
blah
4 4 macro 20513111 0 1 Glass of Loam
blah

Loading them however, you end up with:
Attached Images
 

Last edited by pooka : 06-27-2012 at 02:00 PM. Reason: Added links
Reply With Quote
  #8  
Unread 06-27-2012, 04:11 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Send a message via AIM to Drumstix42 Send a message via MSN to Drumstix42 Send a message via Yahoo to Drumstix42
Default

My brain kind of exploded, but I think I'll fully understand once I toy with it in-game. Thanks a ton for sharing!
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #9  
Unread 06-27-2012, 11:46 PM
cdec518's Avatar
cdec518 cdec518 is offline
A Grove Wisp
 
Join Date: Feb 2006
Server: Antonia Bayle
Posts: 25
Default

I've been just using the default icons and copy/pasting them together in Paint.net---that way I can make any spell look like anything. But tbh my way of getting them in-game was a little backwoods: I overwrite the art pages used for the crafting icons and some of the macro icons. You can then drag the icons you want from the Tradeskills tab in your Knowledge book to a macro. Presto.

I am anal as hell about my icons. If it's a group buff, GDI, it needs a purple background. And the AA skills kill me, I have to change every one of them. My Crane Flock has a yellow background. So does Mantis Leap. /win for anal people.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump


All times are GMT -5. The time now is 10:38 AM.


Our Network
EQInterface | EQ2Interface | War.MMOUI | WoWInterface | VGInterface | LoTROInterface | MMOInterface