How to: Make new keyboard shortcuts

Need help? This is the right place!
Note, reporting bugs and issues should be in the Tech Support forum!

Moderator: PhilipJFry

Re: How to: Make new keyboard shortcuts

Postby Nojoke185 » 25 Jan 2019, 01:32

I get them from the unit database:

http://direct.faforever.com/faf/unitsDB/

select a unit (for example UEF T2 engy), when clicked it loads the unit detail page:

http://direct.faforever.com/faf/unitsDB/?id=UEL0208

look at the top where it says UEL0208
if you click this part you get the unit blue print
in this you can see unit categories etc

you can do this for each unit, then its just a case of finding which categories will uniquely identify your unit and exclude all others
User avatar
Nojoke185
Contributor
 
Posts: 38
Joined: 02 Jul 2012, 21:52
Has liked: 0 time
Been liked: 6 times
FAF User Name: Nojoke

Re: How to: Make new keyboard shortcuts

Postby theblearyeyed » 25 Jan 2019, 02:05

That opens up so many possibilities!
I'd looked on the unit database and hadn't spotted the link under the name.

Thanks for the help. Much appreciated.
theblearyeyed
 
Posts: 5
Joined: 24 Jan 2019, 19:47
Has liked: 1 time
Been liked: 0 time
FAF User Name: theblearyeyed

Re: How to: Make new keyboard shortcuts

Postby nine2 » 25 Jan 2019, 05:49

The challenge is usually it selects too many things, like you might try and select gunships and you get soulripper too. There is no easy way to work it out.
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: How to: Make new keyboard shortcuts

Postby theblearyeyed » 27 Jan 2019, 02:36

Anihilnine wrote:The challenge is usually it selects too many things, like you might try and select gunships and you get soulripper too. There is no easy way to work it out.

Very true.
Out of the 40 or so custom keys, creating a selection shortcut that combined 'all inview indirect fire land units' with 'all inview mobile shields' was the one that took the most tries to get right.
Also I remember 'all inview mobile anti air' for some reason didn't work as intended the first few tries.

Remembering them all in-game can be challenging too.
theblearyeyed
 
Posts: 5
Joined: 24 Jan 2019, 19:47
Has liked: 1 time
Been liked: 0 time
FAF User Name: theblearyeyed

Re: How to: Make new keyboard shortcuts

Postby R_Charger » 10 May 2020, 22:09

Begging to differ re gunships and the soulripper, you can use:

Code: Select all
                ['Select gunships on screen'] = {
                    order = 3,
                    action = 'UI_Lua import("/lua/keymap/smartSelection.lua").smartSelect ("+inview AIR GROUNDATTACK -ura0401")',
                    category = 'All air onscreen'
                },


So if you use smartSelect you can subtract out any unit using its name viewable in the unit blueprints (just unzip the units.nx2 file somewhere and search within the files using Notepad++ or similar program for the unit common name. This should find the file (with the name of the unit you need). You can of course also use a category for negative selection also if you can find a specific one (e.g. -GROUNDATTACK EXPERIMENTAL AIR).
R_Charger
Avatar-of-War
 
Posts: 141
Joined: 30 Jul 2016, 16:27
Has liked: 9 times
Been liked: 14 times
FAF User Name: Reckless_Charger

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron