reclaim mod which counts total and improves recognition

Everything about mods can be found here.

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 747 times


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

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

Postby Anihilnine » 27 May 2018, 10:28

its not a mod. enable in standard ui settings
Anihilnine
Moderator
 
Posts: 2111
Joined: 16 Apr 2013, 10:10
Has liked: 243 times
Been liked: 366 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: 13
Joined: 10 Nov 2013, 11:15
Has liked: 1 time
Been liked: 5 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: 1093
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 38 times
Been liked: 161 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 45 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/channel/UCVukA3 ... xnqxq3YD1g
My Twitch > https://www.twitch.tv/jaggedappliance
JaggedAppliance
Councillor - Balance
 
Posts: 568
Joined: 08 Apr 2015, 14:45
Has liked: 595 times
Been liked: 241 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: 13
Joined: 10 Nov 2013, 11:15
Has liked: 1 time
Been liked: 5 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 553 times
Attachments
reclaim.lua
place it in Mods\Selection Cost UI\hook\lua\ui\game
(6.19 KiB) Downloaded 38 times
Mielus
Crusader
 
Posts: 13
Joined: 10 Nov 2013, 11:15
Has liked: 1 time
Been liked: 5 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 27 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 432 times
crispweed
Crusader
 
Posts: 24
Joined: 02 Jan 2017, 17:32
Has liked: 1 time
Been liked: 2 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
Supreme Commander
 
Posts: 1441
Joined: 17 May 2013, 14:27
Has liked: 355 times
Been liked: 371 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 379 times


Here's the mod again, with this change:

BetterReclaimView.zip
(2.83 KiB) Downloaded 49 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: 24
Joined: 02 Jan 2017, 17:32
Has liked: 1 time
Been liked: 2 times
FAF User Name: crispweed

Next

Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest