Go to Page... |
Compatibility: | Necrom (9.0.0) |
Updated: | 06/23/23 05:22 PM |
Created: | 11/09/20 03:08 AM |
Monthly downloads: | 5,348 |
Total downloads: | 243,889 |
Favorites: | 167 |
MD5: | |
Categories: | Group, Guild & Friends, Raid Mods |
function OSI.SetMechanicIconForUnit( displayName, -- display name of the affected player texture, -- icon texture path size, -- optional icon size color, -- optional icon color {r,g,b} offset, -- optional icon offset in meters callback -- optional callback function ) function OSI.RemoveMechanicIconForUnit( displayName -- display name of the affected player )
local ADDON_NAME = "MyAddonName" local MY_TEXTURE = "myaddonname/myiconpath/myicontexture.dds" local MECHANIC_ID = 12345 EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_EFFECT_CHANGED, function( _, changeType, _, _, unitTag ) -- check if OdySupportIcons is active and the affected unit is a player if OSI and OSI.SetMechanicIconForUnit and IsUnitPlayer( unitTag ) then -- retrieve the displayname of the affected player local displayName = GetUnitDisplayName( unitTag ) -- if the player gained the mechanic effect... if changeType == EFFECT_RESULT_GAINED then -- assign your icon to the affected player and make it bigger than other icons OSI.SetMechanicIconForUnit( displayName, -- display name of the affected player MY_TEXTURE, -- icon texture path OSI.GetIconSize() * 1.5, -- optional icon size { 1, 1, 1 }, -- optional icon color {r,g,b} 0, -- optional icon offset in meters function( data ) -- optional callback function -- simple bounce animation along the y-axis data.offset = 0.5 + 0.5 * math.sin( GetGameTimeMilliseconds() / 1000 * 2 ) -- the data object passed to the callback function contains: -- displayName, unitTag, texture, size, color, offset end ) -- if the player lost the mechanic effect... elseif changeType == EFFECT_RESULT_FADED then -- remove your icon from the formerly affected player OSI.RemoveMechanicIconForUnit( displayName ) end end end ) EVENT_MANAGER:AddFilterForEvent( ADDON_NAME, EVENT_EFFECT_CHANGED, REGISTER_FILTER_ABILITY_ID, MECHANIC_ID ) EVENT_MANAGER:AddFilterForEvent( ADDON_NAME, EVENT_EFFECT_CHANGED, REGISTER_FILTER_UNIT_TAG_PREFIX, "group" ) end )
function OSI.CreatePositionIcon( x, y, z, -- world coordinates texture, -- icon texture path size, -- optional icon size color, -- optional icon color {r,g,b} offset, -- optional icon offset in meters callback -- optional callback function ) function OSI.DiscardPositionIcon( icon -- position icon object )
/script OSI.PrintMyPosition()
local ADDON_NAME = "MyAddonName" local MY_TEXTURE = "myaddonname/myiconpath/myicontexture.dds" local MY_ICON = nil EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_BOSSES_CHANGED, function() -- check is OdySupportIcons is active and supports world position icons if OSI and OSI.CreatePositionIcon then -- retrieve name of boss local boss = GetUnitName( "boss1" ) -- if we are in Sharpfangs (Deshaan) lair and... if boss and boss == "Sharpfang" then -- if no icon has been created yet... if not MY_ICON then -- create an icon 2.5m above the stone formation and make it bigger than other icons MY_ICON = OSI.CreatePositionIcon( 274367, 11022, 213871, -- world coordinates MY_TEXTURE, -- icon texture path OSI.GetIconSize() * 1.5, -- optional icon size { 1, 1, 1 }, -- optional icon color {r,g,b} 2.5, -- optional icon offset in meters function( data ) -- optional callback function -- simple bounce animation along the y-axis data.offset = 2.5 + math.sin( GetGameTimeMilliseconds() / 1000 * 2 ) -- the data object passed to the callback function contains: -- texture, size, color, offset end ) end -- if we are somewhere else or Sharpfang is not around and... else -- if an icon has been created before... if MY_ICON then -- discard the icon OSI.DiscardPositionIcon( MY_ICON ) MY_ICON = nil end end end end ) end )
function OSI.AddCustomIconPack( icons )
local ADDON_NAME = "MyAddonName" local MY_TEXTURES = { "myaddonname/myiconpath/myicontexture-1.dds", "myaddonname/myiconpath/myicontexture-2.dds", "myaddonname/myiconpath/myicontexture-3.dds", } EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) -- check if OdySupportIcons is active and supports custom icon packs if OSI and OSI.AddCustomIconPack then -- add your list of icons OSI.AddCustomIconPack( MY_TEXTURES ) end end )
function OSI.AddUniqueIconPack( icons )
local ADDON_NAME = "MyAddonName" local MY_TEXTURES = { ["@SomePlayer"] = "myaddonname/myiconpath/myiconforsomeplayer.dds", ["@AnotherPlayer"] = "myaddonname/myiconpath/myiconforanotherplayer.dds", } EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) -- check if OdySupportIcons is active and supports unique icon packs if OSI and OSI.AddUniqueIconPack then -- add your list of icons OSI.AddUniqueIconPack( MY_TEXTURES ) end end )
File Name |
Version |
Size |
Uploader |
Date |
1.8.0 |
247kB |
ExoY |
02/05/23 03:48 AM |
|
1.7.0 |
247kB |
ExoY |
06/15/22 05:34 PM |
|
1.6.5 |
248kB |
ExoY |
07/13/21 12:45 PM |
|
1.6.4 |
248kB |
Odylon |
07/05/21 12:33 PM |
|
1.6.3 |
247kB |
Odylon |
06/29/21 12:19 PM |
|
1.6.2 |
246kB |
Odylon |
06/05/21 11:09 AM |
|
1.6.1 |
245kB |
Odylon |
05/22/21 09:51 AM |
|
1.6.0 |
244kB |
Odylon |
05/13/21 10:20 AM |
|
1.5.6 |
336kB |
Odylon |
04/10/21 01:02 AM |
|
1.5.5 |
312kB |
Odylon |
03/18/21 03:36 AM |
|
1.5.4 |
262kB |
Odylon |
01/03/21 04:06 AM |
|
1.5.3 |
245kB |
Odylon |
11/12/20 01:45 PM |
|
1.5.2 |
245kB |
Odylon |
11/09/20 11:34 AM |
|
1.5.1 |
245kB |
Odylon |
11/09/20 10:55 AM |
|
1.5.0 |
245kB |
11/09/20 03:08 AM |
Comment Options |
DruiD |
View Public Profile |
Send a private message to DruiD |
Find More Posts by DruiD |
Add DruiD to Your Buddy List |
03/10/24, 07:03 PM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
Lost custom icon
So i must have pissed someone off in pvp and my original userid in ESO was reported and i had to change it. After changing my userid i lost my custom icon. is there a way to recover it or do i have to do the whole process over again?
|
|
NativeFlu |
View Public Profile |
Send a private message to NativeFlu |
Find More Posts by NativeFlu |
Add NativeFlu to Your Buddy List |
02/07/24, 08:33 AM | |
Forum posts: 2
File comments: 29
Uploads: 0
|
So hoping for some help with icons changing colour\effect with in Game UI interface scaling.
We created a guild icon pack and although we have seen recommended at 32x , we found 128 pixel looks much clearer and sharper in the game field. They work in the chat and roster and all that equally well and look great. One thing I notice, is when I adjust the UI scaling fairly low, icon in the chat text seem to loose some of their colour, if I then change the chat iconn scale under Ody Settings, and increase it- that can fix it sometimes. Is there any specifics colour or other settings in the creation of the icon that could cause some icon files to require this custom scaling adjustments to retain their look, whilst others just render fine? |
|
DruiD |
View Public Profile |
Send a private message to DruiD |
Find More Posts by DruiD |
Add DruiD to Your Buddy List |
12/31/23, 05:48 PM | |
Sharp-As-Knife
So I have never used this addon, until today. I logged in to the game and my companion, Sharp, had this huge annoying companion icon over his head. None of the other companions had it. I searched and found this addon and installed it and was able to make it go away, but my question is what other addons might have turned it on in the first place?
|
|
|
SteveCampsOut |
View Public Profile |
Send a private message to SteveCampsOut |
Find More Posts by SteveCampsOut |
Add SteveCampsOut to Your Buddy List |
09/16/23, 12:16 PM | |
Forum posts: 0
File comments: 18
Uploads: 0
|
Custom Icon Size
Please let us adjust the icon size of all group icons, just like you let us adjust the size of the Group Leader Icon.
|
|
NoOneOfImportance |
View Public Profile |
Send a private message to NoOneOfImportance |
Find More Posts by NoOneOfImportance |
Add NoOneOfImportance to Your Buddy List |
08/13/23, 06:51 AM | |
Forum posts: 2
File comments: 29
Uploads: 0
|
Dread Sail Reef - Mound arrows
Hi, thought I possted already, but is Ody working correctly at the moment for the Dread Sail reef "arrows" for the rune dirt mounts?
I cant get it to work anymore, but I was sure Ody was doing it - obviously I also have Q'cells Dread Sail Reef helper etc too .. but neither seem to have a specific setting forr showing\disabling this dirt mount arrows. Added a forum thread here as well (with picture) https://www.esoui.com/forums/showthread.php?t=10658
Last edited by DruiD : 08/13/23 at 07:07 AM.
|
|
DruiD |
View Public Profile |
Send a private message to DruiD |
Find More Posts by DruiD |
Add DruiD to Your Buddy List |
07/17/23, 05:29 AM | ||||
Re: Re: Re: Re: Re: 6/24 update
Please Read the addon description or comment section. The origin of the error is explained their including with ways to fix it. |
||||
|
ExoY |
View Public Profile |
Send a private message to ExoY |
Find More Posts by ExoY |
Add ExoY to Your Buddy List |
07/17/23, 01:39 AM | ||
Forum posts: 0
File comments: 3
Uploads: 0
|
Re: Re: Re: 6/24 update
I had the exact same error code and message BTW.
|
|
|
czlx_321 |
View Public Profile |
Send a private message to czlx_321 |
Find More Posts by czlx_321 |
Add czlx_321 to Your Buddy List |
07/17/23, 01:28 AM | |||
Forum posts: 0
File comments: 3
Uploads: 0
|
Re: Re: Re: Re: 6/24 update
I have tried disabling everything but Ody's and Libaddonmenus and it was working fine.
I turn them back on, the error is back.
|
||
|
czlx_321 |
View Public Profile |
Send a private message to czlx_321 |
Find More Posts by czlx_321 |
Add czlx_321 to Your Buddy List |
07/03/23, 05:14 AM | |
Forum posts: 0
File comments: 1
Uploads: 0
|
Hello. I haven't 3D banker icon above Factotum Property Steward.
|
|
Criotesak |
View Public Profile |
Send a private message to Criotesak |
Find More Posts by Criotesak |
Add Criotesak to Your Buddy List |
06/25/23, 03:32 PM | |||
|
Basically EACH addon can handle it (meanwhile) wrong. Here is a generic explanation how to fix such addons yourself: https://www.esoui.com/forums/showthread.php?t=9149 -> "If you see dependencies in subfolders (e.g. "libs") of addons" -> "If the addon is old and still uses "LibStub" (an obsolete library for versioning)"
Last edited by Baertram : 06/25/23 at 03:33 PM.
|
||
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
06/25/23, 12:07 PM | |
For some reason the blue square icon that shows guild mates is absent from both compass and 3d world.
Also, if I assign a custom pin to a player via "Tab wheel", the icon won't show up above him, nor on the compass, but it will show up in the title, proving that it was indeed assigned but not showing, as portrayed in the pic below.
Warning: Spoiler
I also tested this with only OdySupportIcons enabled and the problem persists so I don't think it's a conflict. This started happening after Necrom launched.
Last edited by Mr.Envy : 06/25/23 at 12:23 PM.
|
|
|
Mr.Envy |
View Public Profile |
Send a private message to Mr.Envy |
Find More Posts by Mr.Envy |
Add Mr.Envy to Your Buddy List |
06/25/23, 06:44 AM | ||
|
||
|
ExoY |
View Public Profile |
Send a private message to ExoY |
Find More Posts by ExoY |
Add ExoY to Your Buddy List |
06/25/23, 05:23 AM | |
|
It's becaue of old, or even still maintained, addons still using obsolete library LibStub AND hard loading old LAM (or other libraries) versions from their (the old/other addons, not the librarise!) txt files, instead of using LAM from live/AddOns directly via the LibAddonMenu-2.0.txt.
Example: Dolgubons Lazy Set crafter includes v25 of LAM AND even worse hard loads it! It will always be loaded that way and is not compatible anymore with up2date LAM settings and addons. Like Ody To fix this guys: Please delete the "libs/LIbAddonMenu-2.0" subfolder within DolgubonsLazySetCrafter -> Keep LibFeedback in there! And maybe remove those lines in DolgubonsLazySetCrafter.txt Code:
; LibCustomTitles Libs\LibCustomTitles\LibCustomTitles.lua ; LibAddonMenu libs\LibAddonMenu-2.0\LibAddonMenu-2.0.lua libs\LibAddonMenu-2.0\controls\panel.lua libs\LibAddonMenu-2.0\controls\submenu.lua libs\LibAddonMenu-2.0\controls\button.lua libs\LibAddonMenu-2.0\controls\checkbox.lua libs\LibAddonMenu-2.0\controls\colorpicker.lua libs\LibAddonMenu-2.0\controls\custom.lua libs\LibAddonMenu-2.0\controls\description.lua libs\LibAddonMenu-2.0\controls\dropdown.lua libs\LibAddonMenu-2.0\controls\editbox.lua libs\LibAddonMenu-2.0\controls\header.lua libs\LibAddonMenu-2.0\controls\slider.lua libs\LibAddonMenu-2.0\controls\texture.lua libs\LibAddonMenu-2.0\controls\divider.lua libs\LibPrice\LibPrice.lua libs\LibPrice\LibPrice_Internal.lua Code:
local LAM = LibAddonMenu2 --LibStub:GetLibrary("LibAddonMenu-2.0") Dolgubons Lazy Set Crafter - Fixed - Without LAM v25 I've asked Dol to remove those old files v25 of LAM and add the newest AND the LibAddonMenu-2.0.txt file properly, and remove the hardcoded calls to LAM in his DolgubonsLazySetCrafter.txt file + change the LibStub call of LAM to the new global LibAddonMenu2 variable. This all was done in his Lazy Writ Carfter already months ago but never actually within Lazy Set Crafter
Last edited by Baertram : 06/25/23 at 05:57 AM.
|
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
06/25/23, 05:16 AM | |
Forum posts: 0
File comments: 5
Uploads: 0
|
OSI ist doing fine for me. Ist seems to be a Problem, when LAM ist used by e.g. Dolgubons Set or Weit Crfter at The Same time. Guild maate described exact same Problems and is definitely using Dolgubons.
Last edited by Azrael_1976 : 06/25/23 at 05:34 AM.
|
|
Azrael_1976 |
View Public Profile |
Send a private message to Azrael_1976 |
Find More Posts by Azrael_1976 |
Add Azrael_1976 to Your Buddy List |