Go to Page... |
Compatibility: | Necrom (9.0.0) |
Updated: | 06/23/23 05:22 PM |
Created: | 11/09/20 03:08 AM |
Monthly downloads: | 4,717 |
Total downloads: | 206,340 |
Favorites: | 148 |
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 |
![]() |
|
Forum posts: 0
File comments: 9
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 |
DruiD |
View Public Profile |
Send a private message to DruiD |
Find More Posts by DruiD |
Add DruiD to Your Buddy List |
ExoY |
View Public Profile |
Send a private message to ExoY |
Find More Posts by ExoY |
Add ExoY to Your Buddy List |
![]() |
||
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 |
![]() |
|||
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 |
![]() |
|
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 |
![]() |
|||
|
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 |
![]() |
|
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 |
![]() |
||
|
||
![]() |
![]() |
ExoY |
View Public Profile |
Send a private message to ExoY |
Find More Posts by ExoY |
Add ExoY to Your Buddy List |
![]() |
|
|
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 |
![]() |
|
Forum posts: 0
File comments: 4
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 |
![]() |
||
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 |
![]() |
|
Forum posts: 0
File comments: 4
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_Scene ![]() /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 |
![]() |
||
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 |
![]() |
|
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_Scene ![]() /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 |
![]() |