Idle engineer onscreen except ACU keybinding.

This is for troubleshooting of problems with the FAF client and Forged Alliance game.

Moderator: PhilipJFry

Idle engineer onscreen except ACU keybinding.

Postby Neutrino » 14 Jan 2015, 22:26

How do I create a keybinding to select all idle engineers onscreen except the ACU?

Looking through game.prefs I've manged to get this far

select_all_idle_eng_onscreen = {
order = 18,
action = 'UI_SelectByCategory +inview +idle ENGINEER',
category = 'selection'
},

Which selects all idle engineers onscreen, but I don't see any way to filter out the ACU from the list, this doesn't work:

action = 'UI_SelectByCategory +inview +idle ENGINEER TECH1 TECH2 TECH3',

..and neither does this:

action = 'UI_SelectByCategory +excludeacu +inview +idle ENGINEER',
User avatar
Neutrino
Avatar-of-War
 
Posts: 153
Joined: 04 Nov 2014, 17:47
Has liked: 14 times
Been liked: 13 times
FAF User Name: Neutrino

Re: Idle engineer onscreen except ACU keybinding.

Postby nine2 » 15 Jan 2015, 15:12

ENGINEER TECH1 TECH2 TECH3 - doesn't work because you are asking for engineers that are t1 AND t2 and t3, which is nothing.

excludeAcu - you made this up.

ENGINEER BUILTBYTIER3FACTORY - this will pull t1 OR t2 OR t3 engies but not rover drone thingis

ENGINEER TECH1 - will just pull t1 engineers - not t2 or t3

I have F1 F2 F3 keys bound to select nearest idle t1/2/3 engineers.
Ctrl-FKey select all idle t1/2/3 engies
Ctrl-Alt-FKey select all t1/2/3 engies
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: Idle engineer onscreen except ACU keybinding.

Postby nine2 » 15 Jan 2015, 15:16

You see, you need to exclude the acu somehow and you do that by adding a category it doesnt have.

In first example I added the BUILTBYTIER3FACTORY category which excludes acus and drones and scus.

In second example I added TECH1 which excludes acu and t2, t3, scus, etc

I made a change to the codebase recently that (I hope) will be included in a release soon that lets you add negative categories... so you will be able to do this:

ENGINEER -COMMMAND

And it will get all engineers except those with command category (aka acus). Note this doesn't work today.
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: Idle engineer onscreen except ACU keybinding.

Postby Neutrino » 16 Jan 2015, 00:37

Many thanks, that worked perfectly.

select_all_idle_eng_onscreen = {
order = 18,
action = 'UI_SelectByCategory +inview +idle ENGINEER BUILTBYTIER3FACTORY',
category = 'selection'
},

select_all_eng_onscreen_except_acu = {
order = 18,
action = 'UI_SelectByCategory +inview ENGINEER BUILTBYTIER3FACTORY',
category = 'selection'
},
User avatar
Neutrino
Avatar-of-War
 
Posts: 153
Joined: 04 Nov 2014, 17:47
Has liked: 14 times
Been liked: 13 times
FAF User Name: Neutrino

Re: Idle engineer onscreen except ACU keybinding.

Postby Neutrino » 16 Jan 2015, 00:38

Incidentally is there a dev wiki or something where this sort of thing is documented?
User avatar
Neutrino
Avatar-of-War
 
Posts: 153
Joined: 04 Nov 2014, 17:47
Has liked: 14 times
Been liked: 13 times
FAF User Name: Neutrino

Re: Idle engineer onscreen except ACU keybinding.

Postby nine2 » 16 Jan 2015, 02:09

nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine


Return to Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest