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,661 |
Total downloads: | 247,982 |
Favorites: | 169 |
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 |
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 |
06/25/23, 12:49 AM | ||
Re: Re: Re: 6/24 update
|
||
|
ExoY |
View Public Profile |
Send a private message to ExoY |
Find More Posts by ExoY |
Add ExoY to Your Buddy List |
06/24/23, 10:44 PM | |
Forum posts: 0
File comments: 6
Uploads: 0
|
Re: Re: 6/24 update
I also got an error message since last update when for example opening guild menu or friends list.
If i reloadui, the error disappears but will occur again if i try to enter menus. If i dont reloadui the game gets blurry and all menus will disappear. Can't even exit the game normally. After deactivating the addon all works fine again. 3A774EB2 Failed to create control 'LAMIconPicker'. Duplicate name. stack traceback: [C]: in function 'CreateTopLevelWindow' user:/AddOns/LibAddonMenu-2.0/controls/iconpicker.lua:51: in function 'IconPickerMenu:Initialize' user:/AddOns/LibAddonMenu-2.0/controls/iconpicker.lua:46: in function 'IconPickerMenu:New' user:/AddOns/LibAddonMenu-2.0/controls/iconpicker.lua:33: in function 'GetIconPickerMenu' user:/AddOns/OdySupportIcons/OdySupportIcons.lua:244: in function 'sceneCheck' /EsoUI/Libraries/Utility/ZO_CallbackObject.lua:132: in function 'ZO_CallbackObjectMixin:FireCallbacks' /EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:156: in function 'ZO_Scene:SetState' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Base.lua:213: in function 'ZO_SceneManager_Base:ShowScene' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Leader.lua:300: in function 'ZO_SceneManager_Leader:ShowScene' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Leader.lua:383: in function 'ZO_SceneManager_Leader:OnSceneStateHidden' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Base.lua:287: in function 'ZO_SceneManager_Base:OnSceneStateChange' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Leader.lua:330: in function 'ZO_SceneManager_Leader:OnSceneStateChange' /EsoUI/Ingame/Scenes/IngameSceneManager.lua:380: in function 'ZO_IngameSceneManager:OnSceneStateChange' /EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:157: in function 'ZO_Scene:SetState' /EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:289: in function 'ZO_Scene:OnTransitionComplete' /EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:284: in function 'ZO_SceneetermineIfTransitionIsComplete' /EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:196: in function 'ZO_Scene:RefreshFragments' /EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:163: in function 'ZO_Scene:SetState' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Base.lua:221: in function 'ZO_SceneManager_Base:HideScene' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Leader.lua:304: in function 'ZO_SceneManager_Leader:HideScene' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Leader.lua:263: in function 'ZO_SceneManager_Leader:Show' /EsoUI/Ingame/MainMenu/Keyboard/ZO_MainMenu_Keyboard.lua:858: in function 'MainMenu_Keyboard:ShowSceneGroup' /EsoUI/Ingame/MainMenu/Keyboard/ZO_MainMenu_Keyboard.lua:867: in function 'MainMenu_Keyboard:ToggleSceneGroup' /EsoUI/Ingame/MainMenu/Keyboard/ZO_MainMenu_Keyboard.lua:930: in function 'ZO_MainMenuManager_ToggleCategoryInternal' /EsoUI/Ingame/MainMenu/Keyboard/ZO_MainMenu_Keyboard.lua:949: in function 'MainMenu_Keyboard:ToggleCategory' :1: in function '(main chunk)'
Last edited by Zahyr : 06/24/23 at 10:53 PM.
|
|
Zahyr |
View Public Profile |
Send a private message to Zahyr |
Find More Posts by Zahyr |
Add Zahyr to Your Buddy List |
06/24/23, 06:22 PM | ||
Re: 6/24 update
|
||
|
ExoY |
View Public Profile |
Send a private message to ExoY |
Find More Posts by ExoY |
Add ExoY to Your Buddy List |
06/24/23, 04:19 PM | |
Forum posts: 0
File comments: 4
Uploads: 0
|
6/24 update
updated todays version via minion and when I tried to click on my friends list from the chat window or from the menu bar, the following popped up and once dismissed, most of my menus and screens wouldn't work. Had to reloadui.
UI error 387A6CB5 user:/AddOns/OdySupportIcons/OdySupportIcons.lua:244: function expected instead of nil stack traceback: user:/AddOns/OdySupportIcons/OdySupportIcons.lua:244: in function 'sceneCheck' /EsoUI/Libraries/Utility/ZO_CallbackObject.lua:132: in function 'ZO_CallbackObjectMixin:FireCallbacks' /EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:156: in function 'ZO_Scene:SetState' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Base.lua:213: in function 'ZO_SceneManager_Base:ShowScene' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Leader.lua:300: in function 'ZO_SceneManager_Leader:ShowScene' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Leader.lua:383: in function 'ZO_SceneManager_Leader:OnSceneStateHidden' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Base.lua:287: in function 'ZO_SceneManager_Base:OnSceneStateChange' /EsoUI/Libraries/ZO_Scene/ZO_SceneManager_Leader.lua:330: in function 'ZO_SceneManager_Leader:OnSceneStateChange' /EsoUI/Ingame/Scenes/IngameSceneManager.lua:380: in function 'ZO_IngameSceneManager:OnSceneStateChange' /EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:157: in function 'ZO_Scene:SetState' /EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:289: in function 'ZO_Scene:OnTransitionComplete' /EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:284: in function 'ZO_SceneetermineIfTransitionIsComplete' /EsoUI/Libraries/ZO_Scene/ZO_Scene.lua:206: in function 'ZO_Scene:OnSceneFragmentStateChange' /EsoUI/Libraries/ZO_Scene/ZO_SceneFragment.lua:146: in function 'ZO_SceneFragment:SetState' /EsoUI/Libraries/ZO_Scene/ZO_SceneFragment.lua:156: in function 'ZO_SceneFragment:OnHidden' /EsoUI/Libraries/ZO_Scene/ZO_SceneFragmentTemplates.lua:75: in function '(anonymous)' |
|
drkkgt |
View Public Profile |
Send a private message to drkkgt |
Find More Posts by drkkgt |
Add drkkgt to Your Buddy List |
06/13/23, 06:36 AM | |
|
Remove such functions like
function OSI.FixLibAddonMenu( LAM )
Could you please remove such LibAddonMenu altering functions from the addon? Even if this only applies as LibStub got loaded (which currently is loaded for DolgubonsLazySetCarfter and maybe WritCarfter too, so wide spread! As Dolgubon still uses LibFeedback with LibStub dependecny for whatever reason ) this will break other addons as you overwrite the function within the libraries code JUST TO FIX YOUR ADDON WHERE OTHER ADDONS USING LIBSTUB SHOULD BE DISABLED OR FIXED!!! This is a bad habbit and should be stopped please. Many thanks for removing this and telling the users who go that problem with LAM to strip the old addons usage. You should not tyr to fix what others break, by overwriting or damaging other addons, especially not within a library that 99% of all addons rely on Or do you actually check after each update if this still works, if LAm 2.0 got updated at that function, etc. ? I stumbled upon this as I'm working on LAM 2.0 features for accessibility and needed to alter the function within LAM, and somehow everything was working wrong there.. Now I know why.
Last edited by Baertram : 06/13/23 at 06:37 AM.
|
|
Baertram |
View Public Profile |
Send a private message to Baertram |
Find More Posts by Baertram |
Add Baertram to Your Buddy List |
05/12/23, 12:27 AM | |
Forum posts: 1
File comments: 16
Uploads: 0
|
Maybe I'm not how to do it, but I can not make it so that the dead players with roles Heal, Tank or CUSTOM icon is highlighted when the players are dead, all merged, and sometimes it is critical. I tried adjusting the priorities, but it didn't work.
|
|
Cheshire |
View Public Profile |
Send a private message to Cheshire |
Find More Posts by Cheshire |
Add Cheshire to Your Buddy List |
03/18/23, 08:47 PM | |
Forum posts: 1
File comments: 37
Uploads: 0
|
Please add the icons to the new armorer (Zuqoth, Armory Advisor, ID:10618) and deconstruction assistant (Aderene, Fargrave Dregs Dealer, ID:10617).
|
|
Shadowinplay |
View Public Profile |
Send a private message to Shadowinplay |
Find More Posts by Shadowinplay |
Add Shadowinplay to Your Buddy List |
02/05/23, 02:11 PM | |
Can you please update the Minimap by Fyrakin link in your addon description to the maintained version? :
https://www.esoui.com/downloads/info...anch.html#info AND My version SUPPORTS OdySupportIcons so the claim it doesn't in your addon description and in the addon settings is FAKE NEWS |
|
|
Masteroshi430 |
View Public Profile |
Send a private message to Masteroshi430 |
Find More Posts by Masteroshi430 |
Add Masteroshi430 to Your Buddy List |
01/12/23, 08:21 PM | |
Forum posts: 0
File comments: 29
Uploads: 0
|
Change icon sizes
Hey there! Is there any way to change JUST say, the healer's icon size? i'd like to have the tank with the largest icon, and a smaller one for the healer.
Thank you for making this addon, it's appreciated. |
|
Cheshire_Cat |
View Public Profile |
Send a private message to Cheshire_Cat |
Find More Posts by Cheshire_Cat |
Add Cheshire_Cat to Your Buddy List |
12/23/22, 02:38 PM | |
Hi there,
I added partial support for OdySupportIcons in Minimap by Fyrakin version 2022.12.23 and I need feedback (see changelog). https://www.esoui.com/downloads/info...anch.html#info |
|
|
Masteroshi430 |
View Public Profile |
Send a private message to Masteroshi430 |
Find More Posts by Masteroshi430 |
Add Masteroshi430 to Your Buddy List |
12/12/22, 02:11 AM | ||
|
||
|
Lost.Seeker |
View Public Profile |
Send a private message to Lost.Seeker |
Find More Posts by Lost.Seeker |
Add Lost.Seeker to Your Buddy List |
12/04/22, 01:26 PM | |
Hi there,
I inspected the code to see if I can make it work with my (maintained) version of Minimap by Fyrakin... For the ModWorldMap part I don't understand if the addon is modifying the group pins ( pin:IsGroup() ) or creating new pins, and what are the pinTypes of the altered pins |
|
|
Masteroshi430 |
View Public Profile |
Send a private message to Masteroshi430 |
Find More Posts by Masteroshi430 |
Add Masteroshi430 to Your Buddy List |