reclaim mod which counts total and improves recognition

Everything about mods can be found here.

Moderator: Morax

reclaim mod which counts total and improves recognition

Postby Mielus » 26 May 2018, 18:25

Jagged Appliance uses a mod in his casts which counts total reclaim on the screen, I can't seem to find the mod who knows where to find it?
(The casts from Jagged are great btw, https://www.youtube.com/channel/UCVukA3ixN8_ZNxnqxq3YD1g)
reclaim count mod.png
reclaim count
reclaim count mod.png (98.62 KiB) Viewed 8144 times


edit: subject
Last edited by Mielus on 30 May 2018, 19:29, edited 1 time in total.
Mielus
Crusader
 
Posts: 17
Joined: 10 Nov 2013, 11:15
Has liked: 1 time
Been liked: 6 times
FAF User Name: Mielus

Re: searching mod which shows the total reclaim on the scree

Postby nine2 » 27 May 2018, 10:28

its not a mod. enable in standard ui settings
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: searching mod which shows the total reclaim on the scree

Postby Mielus » 28 May 2018, 03:45

I don't see any setting which could activate this....
Mielus
Crusader
 
Posts: 17
Joined: 10 Nov 2013, 11:15
Has liked: 1 time
Been liked: 6 times
FAF User Name: Mielus

Re: searching mod which shows the total reclaim on the scree

Postby Uveso » 28 May 2018, 17:59

Anihilnine wrote:its not a mod. enable in standard ui settings


Are you sure ? i can't find it.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: searching mod which shows the total reclaim on the scree

Postby JaggedAppliance » 28 May 2018, 18:31

I can't remember how i got it but Ftxcommando told me about it.

Edit: Ok i found it. Ftx got it from Strogo who made it. Just paste it into Mods\Selection Cost UI\hook\lua\ui\game
Attachments
reclaim(1).lua
(4.03 KiB) Downloaded 371 times
"and remember, u are a noob, u don’t have any rights to disagree" - Destructor

My Youtube channel with casts > https://www.youtube.com/c/jaggedappliance
My Twitch > https://www.twitch.tv/jaggedappliance
JaggedAppliance
Councillor - Balance
 
Posts: 641
Joined: 08 Apr 2015, 14:45
Has liked: 734 times
Been liked: 313 times
FAF User Name: JaggedAppliance

Re: searching mod which shows the total reclaim on the scree

Postby Mielus » 29 May 2018, 09:11

Great, works like a charm, thanks alot
Mielus
Crusader
 
Posts: 17
Joined: 10 Nov 2013, 11:15
Has liked: 1 time
Been liked: 6 times
FAF User Name: Mielus

Re: reclaim mod which counts total and improves recognition

Postby Mielus » 30 May 2018, 19:37

I extended the mod to spot the big reclaim even better:
  • decreased logo size (to avoid confusion with mass extractor spots when using the toggle)
  • 0 - 199 small text and green
  • 200-799 bigger text and yellow
  • 800+ large text and orange
reclaimlabel size and color.png
reclaimlabel size and color.png (621.36 KiB) Viewed 7950 times
Attachments
reclaim.lua
place it in Mods\Selection Cost UI\hook\lua\ui\game
(6.19 KiB) Downloaded 278 times
Mielus
Crusader
 
Posts: 17
Joined: 10 Nov 2013, 11:15
Has liked: 1 time
Been liked: 6 times
FAF User Name: Mielus

Re: reclaim mod which counts total and improves recognition

Postby crispweed » 10 Jun 2018, 08:39

Very nice!

I noticed that the code for this is actually independent from the code in "Selection Cost UI", and wrapped this up in a small, independent mod, as follows:
BetterReclaimView.zip
Made into a small independent mod
(2.82 KiB) Downloaded 255 times

(Although there is still a link between the two mods, still, in that the reclaim total gets placed just below the UI elements in Selection Cost UI.)

To install the mod, note that you just need to put this zip file in your Mods directory, no need to extract.
(If someone wants to upload this to the vault, please go ahead. I could never get that to work!)

I also tweaked this a bit more, to reduce the amount of visual noise in situations where there are loads of very small reclaim elements, by removing text labels completely for reclaim elements with 20 or less mass:

BetterReclaimView.PNG
screenshot
BetterReclaimView.PNG (912.72 KiB) Viewed 7829 times
crispweed
Crusader
 
Posts: 33
Joined: 02 Jan 2017, 17:32
Has liked: 2 times
Been liked: 3 times
FAF User Name: crispweed

Re: reclaim mod which counts total and improves recognition

Postby keyser » 10 Jun 2018, 10:56

would it be possible to make the bigger reclaim appear in front of other ? so that you can actually read how much they are worse.
green dot and white number does still appear in front of yellow number.
Zockyzock:
VoR is the clan of upcoming top players now
keyser
Councillor - Game
 
Posts: 1870
Joined: 17 May 2013, 14:27
Has liked: 424 times
Been liked: 540 times
FAF User Name: keyser

Re: reclaim mod which counts total and improves recognition

Postby crispweed » 10 Jun 2018, 16:56

keyser wrote:would it be possible to make the bigger reclaim appear in front of other ?


Yeah, turns out that there is a way to do this.

(The object returned by UIUtil.CreateText() has a Depth value, which can be set to control depth ordering.)

It's still not always easy to read the labels, but better than before. ;)

depth_ordered_txt.PNG
depth_ordered_txt.PNG (31.58 KiB) Viewed 7776 times


Here's the mod again, with this change:

BetterReclaimView.zip
(2.83 KiB) Downloaded 397 times


(Just tweaked the relevant code, didn't update version number.)

I didn't know what to put for the depth values, so just set these, fairly arbitrarily, based on some code in other mods.

Depth values are also set, currently, per reclaim 'class'.
It would also be possible to set them more directly, based on the actual mass, I guess, so that larger values get ordered in front even within the same class..
crispweed
Crusader
 
Posts: 33
Joined: 02 Jan 2017, 17:32
Has liked: 2 times
Been liked: 3 times
FAF User Name: crispweed

Next

Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest