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 nine2 » 20 Oct 2017, 23:15

Only smart select can do subtractive categories.

So he can do it.

He wants to select all land except scouts.
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 ZeRenCZ » 09 Nov 2017, 21:01

I made shortcut for selection UEF drone if anyone want:

['Select UEF drones on screen'] = {
order = 32,
action = 'UI_SelectByCategory +inview STATIONASSISTPOD',
category = 'Custom Keys'
},


['Select all UEF drones'] = {
order = 33,
action = 'UI_SelectByCategory STATIONASSISTPOD',
category = 'Custom Keys'
},
User avatar
ZeRenCZ
Crusader
 
Posts: 29
Joined: 05 Jul 2014, 21:10
Has liked: 3 times
Been liked: 5 times
FAF User Name: ZeRen

Re: How to: Make new keyboard shortcuts

Postby R_Charger » 10 Feb 2018, 21:37

For the mobile direct fire units -scout :

Spoiler: show
['Select mobile land direct fire units on screen'] = {
order = 8,
action = 'UI_Lua import("/lua/keymap/smartSelection.lua").smartSelect ("+inview +excludeengineers MOBILE LAND DIRECTFIRE OVERLAYDIRECTFIRE -SCOUT")',
category = 'All land onscreen'
},
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

Re: How to: Make new keyboard shortcuts

Postby Nojoke185 » 03 Nov 2018, 00:26

Hi

Hopefully the below will be of use to someone…?

I took the principal of these unit selections commands and have created a bunch of my own unit selection presets
These allow selection of all sorts of individual unit/structure types, or groups of similar units/structures
The main groupings/categories I have used to try to keep this organized are:

• All Builders – (all units)
o T1/T2/T3 engy (idle or busy)
o ACU
o Hive/Kennel & Pods
o SACU (idle or busy)
o Select all power users (stealth/shield/sensors/fabs/optics)

• On screen Builders (as above but only for units currently in view)

• All Factories (all)
o All factories
o T1 Factories
o T2 HQ’s
o T3 HQ’s
o T2/T3 Support Factories
o Gateways
o Idle factories

• Land Factories (in current view)
o T1
o T2 HQ
o T2 Support
o All T2 Factories (HQ and Support)
o T3 HQ
o T3 Support
o All T3 Factories (HQ and Support)
o All Land factories

• Air Factories (in current view) – same as per land above

• Naval Factories (in current view) – same as per land above

• Land units (in current view)
o Scouts/labs
o Direct fire (T1/T2/T3/All)
o Arty (T1/T3)
o Rangebot
o Mobile AA (T1/Flak/Mobile SAM/All)
o MML
o Sniper
o Absolver
o Mobile shield (T2/T3)
o Mobile stealth
o Mobile bomb
o All T1 land (not engineer)
o All T2 Land (not engineer)
o All T3 Land (not engineer)
o All Land (not engineer)

• Air Units (in current view)
o T1 Scouts (includes units not in current view)
o T3 Scouts
o All Scouts
o T1 Fighters
o T2 Fighters
o T3 Fighters
o All Fighters
o T1 Bombers
o T2 Bombers
o T3 Bombers/Strats
o All Bombers
o T1 Gunships
o T2 Gunships
o T3 Gunships
o All Gunships
o T2 Torp bomber
o T3 Torp bomber
o All Torp bombers
o Mercy
o T1 Transports (includes units not in current view)
o T2 Transports (includes units not in current view)
o T3 Transports (includes units not in current view)
o All Transports (includes units not in current view)
o All T1 Air
o All T2 Air
o All T3 Air
o All Air

• Naval Units (in current view)
o Frigates
o Destroyers/Battlecruiser
o Cruisers/T1 AA Ship
o T1 Subs
o T2/T3 Subs
o All Subs
o Nuke Subs
o Battleships
o Support ships (stealth boat/shield boat/missile ship)
o Carriers
o All T1 Navy
o All T2 Navy
o All T3 Navy
o All Navy

• Buildings (ECO) – All units
o T1 Mex
o T2 Mex
o T3 Mex
o All Mex
o T1 Power/Hydro
o T2 Power
o T3 Power
o Energy storage
o Mass storage
o T2 Mass Fab
o T3 Mass Fab
o All Mass Fab
o Paragon

• Buildings (Weapons) – all units
o T1 PD
o T2 PD
o T3 PD
o All PD
o TML
o Nuke
o Artillery
o T3 Artillery

• Buildings (Defense) – all units
o T1 Static AA
o T2 Static Flak
o SAMS
o All AA
o T1 Static Torp launchers
o T2 Static Torp launchers
o T3 Static Torp launchers
o All Static Torp launchers
o TMD
o SMD
o Stealth field
o T2 Shield
o T3 Shield
o All Shield
o Walls
o Air Staging

• Buildings (Sensors) – all units
o T1 Radar
o T2 Radar
o Omni
o All Radar
o T1 Sonar
o T2 Sonar
o T3 Sonar
o All Sonar
o Optics (Eye/Soothsayer)
o All Sensors

Problem with all of this is there are so many key combo’s to recall and allocate it becomes hard to remember them all
To address this I have done the below:

1 – created a key combo excel sheet to track which command is set to which keys (as per the in game F1 menu). This doesn’t include everything but does cover main new selection commands I have created (as per above list) and orders/abilities/game controls
2 – used a voice command program to allow your spoken voice to activate/execute these selections. I used https://voiceattack.com/Default.aspx. This can be purchased for around $10 or local equivalent (via steam or standalone)

The voice command application allows an extra degree of control, you can use it to execute the above commands, but in addition you can also combine functions/commands to perform multiple actions
Examples:

• Say pause engy. Command does : select all onscreen engy, pause 0.1 seconds then toggle the pause command on the selected units
• Say power save. Command does : selects and then toggles on/off : shield/stealth/fabs/sensors/optics

All of this with no mouse movement needed

You can play around with these settings and add more commands as you require
Unit/Structure orders and abilities can also be manipulated as per key assignments in F1 menu

Overall this is a very powerful suite and works with good accuracy
If it is of any interest to aid someone to get this setup, I have attached the below files to get you started (took me several days of testing/checking to get it all setup), It’s fairly easy to adapt or add to

1 – Voice Attack Prefs File.txt - a custom set of my selection commands in a text file which can be added/inserted into your own game.prefs file (separated into general categories as listed above). You will need to insert these individual commands into your own game.prefs file (https://www.dropbox.com/s/8p6w9nud4q7xi ... e.txt?dl=0)

2 – Voice Attack.xlsx - an excel sheet showing for each command/selection what key combo’s are allocated in the F1 game menu (or in voice attack program). Use this to log your own key bindings. Use the doc to tie the game key bindings into the voice attack commands (to ensure they match) (https://www.dropbox.com/s/9gi8dnn5ehj6w ... .xlsx?dl=0)

3 – Forged Alliance Forever-Profile.vap - an export of my voice attack forged alliance game profile (voice control software). Allows voice interaction with commands in game F1 menu allocation. You can import this into your own copy of the software (https://www.dropbox.com/s/ogbb4atn1j109 ... e.vap?dl=0)

Nojoke
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 nine2 » 03 Nov 2018, 00:34

epic
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 » 24 Jan 2019, 20:09

Anyone know how to create a shortcut that selects regular T2 Engineer without selecting Sparky?

I have working shortcut for Sparky and also for all T2 Engineers, but to build power etc, have to click through UI's 'Selection and Storage' to select ordinary T2 Engineer.
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 Nojoke185 » 25 Jan 2019, 00:09

havent tested it but maybe something like this:

['T2 Engy'] = {action = 'UI_SelectByCategory TECH2 LAND ENGINEER MOBILE RECLAIMABLE PRODUCTSC1 BUILTBYTIER2FACTORY', category = 'Builders', order = 1,},
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, 00:34

That worked! Thanks.
I couldn't work out how to exclude anything from the modifiers and categories, only how to include.
For future reference/learning, what part of the entry you posted actually excludes Sparky from selection?
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 Nojoke185 » 25 Jan 2019, 00:54

glad it worked

its PRODUCTSC1 BUILTBYTIER2FACTORY

they are categories present in all T2 engy blueprints but not part of sparky catergories
as such they exclude the sparky
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, 01:18

Is all the blueprint info publicly available? Seems like a good resource to have.

On the first page of this thread someone asked where they are found but got no reply as they found the info themselves.
theblearyeyed
 
Posts: 5
Joined: 24 Jan 2019, 19:47
Has liked: 1 time
Been liked: 0 time
FAF User Name: theblearyeyed

PreviousNext

Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest