Not that I'm aware of. The ImGui windows stay linked to the process which spawned them.
Thanks, I'll probably just end it when I don't really need it up. Thanks for the script, its very helpful!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

Not that I'm aware of. The ImGui windows stay linked to the process which spawned them.
- Set initial window size so it isn't a tiny square on first use
- Update button command handling a bit for crashes
- Add more settings validation
- Add handling for observing TLOs that may not be present on all toons
Relies on defining dependencies between observed properties. For example:
If you have the MQ2Monk, MQ2Eskay and MQ2Rogue plugins, which add TLO `CWTN`, and you want to observe `CWTN.Mode`, then it may interfere
with macros running on toons without a CWTN class plugin...
Let me start by saying that I'm not a coder by profession and most of what I've "written" has been through cut, paste and modify to my needs. Having said all that, I added a column on the XP tab for aaxp percent using me.aaexp. It works fine except that the data is formatted 65535 when the actual percent is 65.535. When attempting to math my way out of this predicament I found out that it's a string value as well. Using tonumber to convert before mathing it told me that it was now a nil value. I realize that this is really a lua question and not specifically related to boxhud, but I figured that some kind soul could help me out =).
I apologize in advance for making a verbing a noun and turning it into an adjective but it sounded funny so I went with it.
-G
{Name='Me.PctAAExp'},{Name='Me.AAExp'},{
Name='AA Exp%',
Properties={
all='Me.PctAAExp'
},
Thresholds={33,66},
Percentage=true,
Ascending=true
}
you'll want ObservedProperties to include:
{Name='Me.PctAAExp'},
instead of just{Name='Me.AAExp'},
then the column could be like:
INI:{ Name='AA Exp%', Properties={ all='Me.PctAAExp' }, Thresholds={33,66}, Percentage=true, Ascending=true }
Some updates around value types and commands to work with todays build.
Most likely won't work anymore on builds older than 216.
{
Name='CWTN.Mode',
DependsOnName='Me.Class.ShortName',
DependsOnValue='MNK,ROG,WAR,SHD,MAG,ENC,CLR,BER,SHM'
},
I'm having problems with the FromIDProperty usage:
INI:|-- The column I'm trying to add... { Name='Distance', Type='property', Properties={all='Distance3D'}, Thresholds={100,200}, Percentage=false, InZone=true, Width=60 }, |-- The property observed as described... SpawnProperties = { {Name='Distance3D'}, {Name='Distance',FromIDProperty='Group.MainAssist'} },
Oh, I think I need to use NetBots to do this?
${Spawn[id SomeID].SomeProperty} is run from the toon running the HUD, where "SomeID" is the value of the observed property referenced by FromIDProperty.NetBotsProperties={
{Name='TargetID'}
},
SpawnProperties={
{Name='CleanName', FromIDProperty='TargetID'}
}
${Spawn[id ${NetBots[toon].TargetID}].CleanName}.- Add in game configuration of tabs, columns and properties
- Rearrange settings file a bit
- Break up the script into a few files in a boxhud folder
- Add persistence.lua library for dumping table to save configuration
- Various minor fixes..
- case insensitive check for Observed Property DependsOnValue
- Right align percent columns, not just plain numbers
- Update getting zone peer group name
- ...
With this latest update, should I remove the boxhud-settings.lua and the boxhud-settings-toonname.lua files from the main lua directory? Should I move them to the new boxhud folder?
First, the latest update additions are incredible; thanks for your work! I used the configuration tab to add some things and everything worked great. But even though I saved everything, all my additions were gone when I relogged. Is there something else I missed?
- Fix to allow clicking "save configuration" more than once.
- Added color pickers under general settings.
- Fix to check for determining characters in zone or not
- Fix crash in viewing property and column settings
Doh! I missed that, thanks.
So I've installed the very latest version. When I navigate to Configuration/Tabs/General and click the edit button, it goes to editing Add a new tab rather than editing the general tab. I wanted to check to see if it would act the same when editing columns and properties. I clicked on the columns tab and when I clicked one of the columns to edit, I got a CTD. I relogged and tried again and the crash happened again in the same way. I'll DM you the dumps.
Fix editing existing tabs and some more validation of tab/column input
Mostly just some cleanup work.. nothing new.
Found a couple bugs, hopefully didn't introduce more new ones.
[2021/08/10 10:57:27] Running lua script 'boxhud' with PID 2
[2021/08/10 10:57:27] [BOXHUD] Loading settings from file: boxhud-settings-redacted.lua
[2021/08/10 10:57:27] C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua:123: attempt to call field 'ObserveSet' (a nil value)stack traceback: C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua: in function 'addObserver' C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua:166: in function 'manageObservers' C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua:674: in function 'main' C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua:707: in main chunk
[2021/08/10 10:57:27] Lua: manageObservers (method)
[2021/08/10 10:57:27] Line 166 in C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua
[2021/08/10 10:57:27] ---- Begin Stack (size: 15) ----
[2021/08/10 10:57:27] 15 -- (-1) ---- `C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua:123: attempt to call field 'ObserveSet' (a nil value)stack traceback: C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua: in function 'addObserver' C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua:166: in function 'manageObservers' C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua:674: in function 'main' C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua:707: in main chunk'
[2021/08/10 10:57:27] 14 -- (-2) ---- `C:\Users\redacted\Desktop\MQNext\lua\boxhud.lua:123: attempt to call field 'ObserveSet' (a nil value)'
[2021/08/10 10:57:27] 13 -- (-3) ---- `attempt to call field 'ObserveSet' (a nil value)'
[2021/08/10 10:57:27] 12 -- (-4) ---- 3
[2021/08/10 10:57:27] 11 -- (-5) ---- nil
[2021/08/10 10:57:27] 10 -- (-6) ---- nil
[2021/08/10 10:57:27] 9 -- (-7) ---- 67
[2021/08/10 10:57:27] 8 -- (-8) ---- `"Me.PctHPs"'
[2021/08/10 10:57:27] 7 -- (-9) ---- `Me.PctHPs'
[2021/08/10 10:57:27] 6 -- (-10) ---- `"%s"'
[2021/08/10 10:57:27] 5 -- (-11) ---- `"Me.PctHPs"'
[2021/08/10 10:57:27] 4 -- (-12) ---- nil
[2021/08/10 10:57:27] 3 -- (-13) ---- table
[2021/08/10 10:57:27] 2 -- (-14) ---- `Me.PctHPs'
[2021/08/10 10:57:27] 1 -- (-15) ---- table
[2021/08/10 10:57:27] ---- End Stack ----
[2021/08/10 10:57:27] Ending lua script 'boxhud' with PID 2 and status -1
- Add more color options
- Add window transparency toggle
that seems a little odd. that line is reading Me.Class.ShortName value for the character, which I wouldn't really expect to ever see change after its been read initially. it is meant to be observed for everyone, then used for a few class based features in the HUD.Getting this every few times I run grind after I max back out my banked AA and reg exp.
View attachment 32246
Small bug fix on top of 2.0.6 update.
www.macroquest2.com
tried that in my ini file didn't work
I only have charselect and zoned cfg
Enhancement Request: Add a "Minimize" function to the window to roll it up into its title bar.
local flags = ImGuiWindowFlags.NoTitleBarlocal flags = ImGuiWindowFlags.None or just local flags = 0
