Forums » Community Projects

MDI-TargetList

Nov 27, 2021 draugath link
Originally developed for use with the prototype MDI HUD, this plugin has been updated to also work in a standalone capacity.

This plugin is an on-HUD target list. It shows the closest ships, and the number of ships displayed is configurable. It features filters to display All ships, NPC only, PC only, Capships only and more. Further, you can specify a filter for the Big 3 factions if you only want to see ships from Itani, Serco, or UIT.

MDI-TargetList (VOUPR)

If you want colored faction names, download and install the FactionColor plugin.

Commands:
/targetlist -- Opens the Options dialog

/target<n> -- Targets <n> in the list (e.g. /target3)
/targetnext -- Changes to the next target in the list (not set by /settargetbinds)
/targetprev -- Changes to the previous target in the list (not set by /settargetbinds)

/cyclefilter -- Changes the current filter
/cyclefilterpage -- Changes the current filter page (e.g. the faction to filter)
/tabnext -- switch to the next tab
/tabprev -- switch to the previous tab
/invertfactionfilter -- Shows everyone but the selected faction
/pintarget -- Pins the target to the top of the list

/togglefriendly -- Toggles the display of friendly targets
/togglegroup -- Toggles the display of group members
/toggleturrets -- Toggles the display of turrets
/togglehiveonly -- Toggle hive only on NPC filter
/togglenpcshiptypes -- Toggle NPC ship names

/settargetbinds -- Sets 1-0 to target item 1-10, "-" to /cyclefilter, and "=" to /cyclefilterpage

Version 4+ supports the creation of 3rd-Party tabs for the display of custom data in the window.
Dec 10, 2021 biretak link
this is awesome... is it possible to have a true/false setting to see my ships health and my tridents health and trident shield health above the list so I can see it all in one spot? not targetable, of course. thanks.
Dec 11, 2021 draugath link
I'm glad you like it.

First, since I don't own a capship, some of the things you've requested would be hard for me to test.
Second, I'm not really sure that these fit within the scope of this plugin. They seem like something better suited to a new plugin.
Dec 13, 2021 draugath link
Version 3.1.0 released.

Added an inverted faction filter. This will show everything but the selected faction.
Added the ability to nudge the position of the list window by the specified amount.
May 16, 2022 ScotiaKnight link
cool update, i had been testing it a while.. it loads fine on my client but anytime i have to reloadinterface any more than a single time it crashes my game. ie, open console and /lua ReloadInterface() twice.

tested with vo-mdi and mdi-targetlist running only.
May 16, 2022 draugath link
What platform are you playing on?

I just tested v3.1.1 in standalone mode on Linux with multiple uses of ReloadInterface() with no issues.

Did you use any commands before reloading?
May 16, 2022 ScotiaKnight link
Windows 10. No I simply logged in, went straight to the console issued the command waited a few seconds and did it again. Boom. I only happened upon it because I've been programming a lot lately and need to reload quite often during debugging.

MDI-TargetList loaded (v3.1.1).
Loaded plugin 'mdi-targetlist'
Loaded plugin 'vo-mdi'
[05/16/22 22:34:37] [100] *** Channel 100 is active.

Assertion failed!
itable.c:328
Expression: it && key
May 16, 2022 draugath link
It looks like the problem is related to vo-mdi. I crashed as well when it was installed along with targetlist.

I don't intend to track down the issue in vo-mdi, though.
May 17, 2022 ScotiaKnight link
Thanks for the response, appreciate your time. I'll stick to the older version. ^_^
Aug 23, 2022 draugath link
3rd Party Tabs feature is available for testing.

MDI-TargetList 3.1.1-3rdPartyTabs-Dev1.zip
Oct 02, 2022 draugath link
Version 3.2.0 released

* Added an Options dialog for managing settings
* Added a toggle to show NPC ship names instead of NPC names
* Added a toggle to show all players visible in the sector
Oct 20, 2022 draugath link
Version 3.3.0 released

* Unpiloted PC capships now display the name of the ship and have been reclassified as PCs
* Added a toggle to show only Hive ships on the NPC filter
* Renamed /togglenpcships -> /togglenpcshiptypes
* Should work with vo-mdi in standalone mode.
Feb 16, 2023 DBT link
Feb 22, 2023 draugath link
Version 4.1.0 released

* Refreshed the display. Better skin support
* Added target pinning (/pintarget)
* Now supports more than 4 tabs. Switch tabs with /tabnext and /tabprev
* Added aggressor/defense timers to help you see how much timer you have left for self-defense
* Added more appearance options

Tab API
* Now supports more than 4 tabs
* Fixed handling of filter/page names and colors
* Changed from 0-based indexes to 1-based indexes.
* Added .colorsource property to allow picking colors from a table.
Jul 31, 2023 Rejected link
First of all, this is an incredible plug-in, and thank you for putting it together. If I may be so bold, I have a feature request.

On the main targeting tab, you can use targetnext and targetprev to cycle through the ships on the list, in addition to using 1 - 9 to jump to a specific place on the list. I was hoping you may be able to implement a similar feature for the other tabs, such as for cargo, points of interest, and capships.

Currently, when you use targetnext on those lists, it tries to execute the first option on the list. For example, if I have the cargo list up, and the first item on the list is "Heliocene Ore", then every time I press targetnext, it will search for Heliocene Ore. Instead, I would like to be able to use targetprev and targetnext to highlight each item on the list, and then execute the function when a second command is entered.

Being able to quickly cycle through capship commands, items, or points of interest and then pressing a second button to execute would make life with a gamepad much easier.
Jul 31, 2023 draugath link
I think the behavior you have noticed is related to the tab and how it handles the inputs. My own POI and RoidDB tabs don't have this issue. Though, since you mentioned POI, I remember it working, but now you have planted the seed of doubt in my head.
Jul 31, 2023 Captain Spry link
You're right, after more testing, the behavior only occurs for capship commands and cargo searches.
Jul 31, 2023 draugath link
In case it wasn't clear, I just wanted to point out that I don't write all of the tabs. The two you are having issues with were written by Seryn. That's the beauty of the 3rd-party tab system; new features can be added by other players.
Jul 31, 2023 Captain Spry link
Ah roger that. I'll keep mucking around in the Lua files.
Nov 22, 2023 draugath link
MDI-TargetList 4.2.0 has been released.
* Added unlinked targeting selection. When targeting is unlinked, you can select a target without activating the target using `/targetnext` and `/targetprev`
* Added the ability to customize the factions that can be used to filter the target list
* Changed `/cyclefilterpage` to now accepts a number to switch to a specific page (e.g `/cyclefilterpage 5`)
* Fixed an error related to defense/aggressor bars
* Fixed `/targetnext` and `/targetprev` not wrapping properly
* Multiple Tab API changes