FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    UI mod idea: Custom select all

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 206 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? Offline
      A Former User
      last edited by

      There are hotkeys to select all ground, all air, all naval units. The hotkeys are useful, but often there are types of units you don't want to select:

      • ground: scouts, mobile t3 artillery, scathis
      • air: transports, scouts, spy planes
      • naval: sonars

      Could be useful to be able to turn off these types of units from select-all hotkeys

      1 Reply Last reply Reply Quote 0
      • N Offline
        Nex
        last edited by

        you can always make your own hotkeys in your game.prefs file
        https://forums.faforever.com/viewtopic.php?f=40&t=8230

        1 Reply Last reply Reply Quote 0
        • R Offline
          Reckless_Charger
          last edited by Reckless_Charger

          Yes you probably want to use smartselect. Here's an example:

                      ['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'
                      },
          

          Put that in your game.prefs file in the UserKeyActions section (back up before you edit it in case you mess it up). You should then be able to define a key in game. Ideally you don't want identical order values in the same category (I think this might cause issues but I'm not 100% sure).

          You can also use the 'idle' descriptor and you can also add or eliminate specific units using a portion of their unit name e.g. -ura0401 eliminates the soul ripper from the selection. There is more info in the link Nex provided.

          In order to make your own you may need to look at this file:

          https://github.com/FAForever/fa/blob/master/engine/Core/Categories.lua

          which lists all the categories, and perhaps extract (unzip) the unit.nx2 file which can be found in C:\ProgramData\FAForever\gamedata (or whatever drive you have FAForever on). You can then find the categories for all units in their blue prints (.bp files). Or use a text editor which can search within files such as Notepad++ or VScode (or a command line utility) to find all the units which match a specific category you are interested in.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post