• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver
Resource icon

Release XTarget Xtended v1.25

No permission to download
Love this Lua

As a separate idea - crossing this with alertmaster to make a IMGUI window that expands showing which of the spawns being watched for is currently in zone would be bloody amazing

Great work on this Lua though
 
Love this Lua

As a separate idea - crossing this with alertmaster to make a IMGUI window that expands showing which of the spawns being watched for is currently in zone would be bloody amazing

Great work on this LUA though
check out the Alert Master thread.
I posted an updated version in the discussion that adds a GUI that does exactly that, and more.
 
I'm having troubles getting this to save location upon logging out.

Each time I log in it's moved from where I previously placed it and saved settings at.

Any tips on how to get this to stop moving around on me?
 
I'm having troubles getting this to save location upon logging out.

Each time I log in it's moved from where I previously placed it and saved settings at.

Any tips on how to get this to stop moving around on me?
Try editing your marcorquet_overlay.ini and use one entry per toon you want it on. Sometimes the manual edit fixes it for me.

[Window][XTargetX##TOONNAME]
Pos=1959,580
Size=377,36
Collapsed=0

[Window][XTargetX##TOONNAME]
Pos=431,867
Size=416,36
Collapsed=0
 
Try editing your marcorquet_overlay.ini and use one entry per toon you want it on. Sometimes the manual edit fixes it for me.

[Window][XTargetX##TOONNAME]
Pos=1959,580
Size=377,36
Collapsed=0

[Window][XTargetX##TOONNAME]
Pos=431,867
Size=416,36
Collapsed=0
Thank you I'll give this a go, only running it on my driver.

Also @Lisie the directional arrow is great!
 
Try editing your marcorquet_overlay.ini and use one entry per toon you want it on. Sometimes the manual edit fixes it for me.

[Window][XTargetX##TOONNAME]
Pos=1959,580
Size=377,36
Collapsed=0

[Window][XTargetX##TOONNAME]
Pos=431,867
Size=416,36
Collapsed=0
Hmm this didn't work out unfortunately.

Not only did it not work out but my saved xtx settings keep changing.

I'm removing automatic window size because the jumping around of the window gets to me.

I keep lock window size checked and lock window position checked. (After having moved it to my desired location)

I've been using the following columns, Row Name Dist Dir HP Aggro.

When I log back in after having logged out it reverts to Row Name Dist Dir MP Mez.

My Button Master also doesn't save I'll have to go ask there for that.
 
Hmm this didn't work out unfortunately.

Not only did it not work out but my saved xtx settings keep changing.

I'm removing automatic window size because the jumping around of the window gets to me.

I keep lock window size checked and lock window position checked. (After having moved it to my desired location)

I've been using the following columns, Row Name Dist Dir HP Aggro.

When I log back in after having logged out it reverts to Row Name Dist Dir MP Mez.

My Button Master also doesn't save I'll have to go ask there for that.
Out of curosity, are you making the adjustment with more than one too logged in? Asking because there is a "file lock" lock issue windows causes with the macroquest_overlay.ini file. If so, have you tried making the changes with only one toon logged in, /camp (not fast) all the way out and then log back in?
 
Out of curosity, are you making the adjustment with more than one too logged in? Asking because there is a "file lock" lock issue windows causes with the macroquest_overlay.ini file. If so, have you tried making the changes with only one toon logged in, /camp (not fast) all the way out and then log back in?
I am indeed I will log everyone else out and try this as soon as my tsc is done running.
Thank you for your continued help!
 
Out of curosity, are you making the adjustment with more than one too logged in? Asking because there is a "file lock" lock issue windows causes with the macroquest_overlay.ini file. If so, have you tried making the changes with only one toon logged in, /camp (not fast) all the way out and then log back in?
This mostly worked.
My position is being saved now. But the window size is not.

XtX keeps defaulting to Automatic Window Size Checked
and Lock Window Size Checked ever login.

Even after I uncheck them, save settings, and camp out with only having the one toon logged in.
 
This mostly worked.
My position is being saved now. But the window size is not.

XtX keeps defaulting to Automatic Window Size Checked
and Lock Window Size Checked ever login.

Even after I uncheck them, save settings, and camp out with only having the one toon logged in.
I do think that was something the creator was working on as I experienced the same issues myself. Lisie commented on it here.

 
not the saviest person yet but what do I type exactlly to get tank to autohate anything that agros another toon?
 
I have a big wish list. Can you add UsexTargetHealing and XTargetHealNPC as addon, those would always display part on the main screen but always on the bottom.
 
Can you please set it so the app unloads or at least isn't showing on camping to character select?
 
So it seems that when loading the app in, even with a settings file for the character, it automatically overwrites default settings into the settings file.
 
So it seems that when loading the app in, even with a settings file for the character, it automatically overwrites default settings into the settings file.
I think I found the issue.

Code:
if not configSettings.general.autoSize then configSettings.general.autoSize = true end

So, when autoSize is false, not false is true, therefore the condition is met and autoSize gets set to true. I think you want to change this to false like the rest of the settings.
 
I think I found the issue.

Code:
if not configSettings.general.autoSize then configSettings.general.autoSize = true end

So, when autoSize is false, not false is true, therefore the condition is met and autoSize gets set to true. I think you want to change this to false like the rest of the settings.
Yeah should check if not nil since it's a Boolean
 
Try changing it to

Lua:
if configSettings.general.autoSize == nil then configSettings.general.autoSize = true end
 
Try changing it to

Lua:
if configSettings.general.autoSize == nil then configSettings.general.autoSize = true end
Since the function that this is happening in isn't actually resetting all defaults, it doesn't match up changing the condition. I just changed it to match the others and the action to set the variable to false.

Though I'm questioning the intent of these checks, because if it is already true why would you assign the variable again, and if it were false why would you set the variable again (or as was the case before I found it to override the setting a user made especially in this one instance only). I guess it could be for missing settings....but then why not assign the other ones to their default settings (window size, position and autosize all true).

Also noted that this section has the conditional for checking the lockWindowSize setting twice (commented the second one out in mine even though it doesn't do anything different).
 
Seems there is more to things about the settings than what I found out. My solution works for simply unloading and reloading the app. From a fresh start, it doesn't even enter the function to check the settings. More troubleshooting coming.

EDIT: Troubleshooting complete. I was wrong. Probably had to do with how MQ saves overlay positions and fast camping.
 
Last edited:
Do you have any plans to add additional columns or could share how to do that?

I'd love to have resist debuffs added into it and also be able to check xtended targets currently target.
 
Using this all the time, very useful to me for boxing and managing pulls.
I have to edit it each patch to add a column I show before the name, which has the (short) class in it, is there any chance of adding this to the source?
Also I don't see a way of adding targets target (eg ma's target, pinned), which I would imagine is a common use case?
 
actually, here's a diff/patch for adding it, if you would like to use it - save you time, maybe. Forum doesn't allow file upload with extension .patch so I added .txt to the end. Remove that, should be good to apply to the init.Lua.
[CODE lang="diff" title="patch/diff for adding a class column"]diff --git "a/D:\\Games\\Macroquest-Red\\Lua\\xtargetx\\init.Lua" "b/D:\\Games\\Macroquest-Red\\Lua\\xtargetx\\init.Lua"
index 0d215c6..23beb0d 100644
--- "a/D:\\Games\\Macroquest-Red\\Lua\\xtargetx\\init.Lua"
+++ "b/D:\\Games\\Macroquest-Red\\Lua\\xtargetx\\init.Lua"
@@ -146,6 +146,11 @@ local getName = function(spawn)
return name
end

+local getClass = function(spawn)
+ local class = string.sub(spawn.Class(),1,3)
+ return class
+end
+
local getPctHp = function(spawn)
local pctHp = spawn.PctHPs()
local textColor = settings.colors.purple
@@ -404,6 +409,9 @@ local drawRow = function(drawData)
--level
ImGui.TableNextColumn()
ImGui.TextColored(drawData.conTextColor, drawData.level)
+ --class
+ ImGui.TableNextColumn()
+ ImGui.TextColored(drawData.conTextColor, drawData.class)
--name
ImGui.TableNextColumn()
if ImGui.Selectable(drawData.name .. "##" .. drawData.spawn.ID(), false, ImGuiSelectableFlags.SpanAllColumns) then
@@ -472,12 +480,13 @@ local displayGUI = function()
ImGui.PushStyleColor(ImGuiCol.TableRowBgAlt, settings.general.colorTableBgAlt)
ImGui.PushStyleColor(ImGuiCol.TableHeaderBg, settings.general.colorTableHeaderBg)
if settings.general.useRowHeaders == true then
- ImGui.BeginTable('##table1', 10, treeview_table_flags)
+ ImGui.BeginTable('##table1', 11, treeview_table_flags)
ImGui.TableSetupColumn("Row", bit32.bor(ImGuiTableColumnFlags.NoResize), 30)
else
- ImGui.BeginTable('##table1', 9, treeview_table_flags)
+ ImGui.BeginTable('##table1', 10, treeview_table_flags)
end
ImGui.TableSetupColumn("Lvl", bit32.bor(ImGuiTableColumnFlags.NoResize), 30)
+ ImGui.TableSetupColumn("Cls", bit32.bor(ImGuiTableColumnFlags.NoResize), 30)
ImGui.TableSetupColumn("Name", bit32.bor(ImGuiTableColumnFlags.WidthStretch, ImGuiTableColumnFlags.NoResize), 100)
ImGui.TableSetupColumn("Dist", bit32.bor(ImGuiTableColumnFlags.NoResize), 50)
ImGui.TableSetupColumn("Dir", bit32.bor(ImGuiTableColumnFlags.NoResize), 30)
@@ -512,6 +521,7 @@ local displayGUI = function()
drawData.pctHp = 0
drawData.pctMp = 0
drawData.name = ''
+ drawData.class = ''
drawData.pctAggro = -1
drawData.slowPct = -1
drawData.distance = 0
@@ -524,6 +534,7 @@ local displayGUI = function()
if targetType == 'NPC' then
drawData.conTextColor, drawData.level = getConLevel(drawData.spawn)
drawData.name = getName(drawData.spawn)
+ drawData.class = getClass(drawData.spawn)
drawData.hpTextColor, drawData.pctHp = getPctHp(drawData.spawn)
drawData.aggroTextColor, drawData.pctAggro = getAggroPct(drawData.spawn)
drawData.slowTextColor, drawData.slowPct = getSlow(drawData.spawn)
@@ -532,12 +543,13 @@ local displayGUI = function()
elseif ((targetType == 'PC' or targetType == 'Mercenary') and (settings.general.showFriendlies or settings.general.showEmptyRows)) then
drawData.conTextColor, drawData.level = getConLevel(drawData.spawn)
drawData.name = getName(drawData.spawn)
+ drawData.class = getClass(drawData.spawn)
drawData.hpTextColor, drawData.pctHp = getPctHpFriendly(drawData.spawn)
drawData.mpTextColor, drawData.pctMp = getPctMpFriendly(drawData.spawn)
drawData.distTextColor, drawData.distance = getDistance(drawData.spawn)
drawData.friendly = true
end
- if drawData.level == nil or drawData.name == nil or drawData.pctHp == 0 or drawData.distance == -1 then
+ if drawData.level == nil or drawData.name == nil or drawData.class == nil or drawData.pctHp == 0 or drawData.distance == -1 then
break
end
drawRow(drawData)
[/CODE]
 

Attachments

I'm having a consistent crash to desktop w/o MQ catching it involving the right-click context menu - just hovering over the Raid Members entry drops that client to desktop pretty much instantaneously.

Love the script, but dropping clients during a raid is not wonderful...
 
Release XTarget Xtended

Users who are viewing this thread

Back
Top
Cart