EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   Fun with macro icons (https://www.eq2interface.com/forums/showthread.php?t=16506)

pooka 06-26-2012 05:18 PM

Fun with macro icons
 
1 Attachment(s)
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.

pooka 06-26-2012 05:19 PM

As a note. This can be done with items too, but we can't mix the spell and item icons.

Drumstix42 06-27-2012 12:21 AM

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. :(

lordebon 06-27-2012 09:27 AM

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).

Drumstix42 06-27-2012 09:50 AM

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.

lordebon 06-27-2012 10:30 AM

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.

pooka 06-27-2012 01:54 PM

1 Attachment(s)
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:

Drumstix42 06-27-2012 04:11 PM

My brain kind of exploded, but I think I'll fully understand once I toy with it in-game. Thanks a ton for sharing!

cdec518 06-27-2012 11:46 PM

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.


All times are GMT -5. The time now is 02:21 PM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI