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

    Creating new Hotkeys / Shortcuts error

    Scheduled Pinned Locked Moved Game Issues and Gameplay questions
    5 Posts 4 Posters 143 Views 1 Watching
    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.
    • W Offline
      wolfred
      last edited by

      Hi everyone,

      I’m currently creating new shortcuts/hotkeys by modifying the Game.prefs file located at \AppData\Local\Gas Powered Games\Supreme Commander Forged Alliance. The changes work perfectly, but after pressing the shortcuts around the 7th or 8th time, the game crashes. Has anyone encountered this issue or know what might be causing it?

      UserKeyActions = {
          ['Select Nearest Air Scout'] = {
      	order = 1,
      	action = 'UI_SelectByCategory +nearest + AIR INTELLIGENCE',
      	category = 'Custom Keys'
         },
         ['Select Artillery Units On Screen'] = {
            order = 1,
            action = 'UI_SelectByCategory +inview + ARTILLERY',
            category = 'Custom Keys'
        },
        ['Select Direct Fire Units On Screen'] = {
            order = 1,
            action = 'UI_SelectByCategory +inview + DIRECTFIRE',
            category = 'Custom Keys'
        },
        ['Select Indirect Fire Units On Screen'] = {
            order = 1,
            action = 'UI_SelectByCategory +inview + INDIRECTFIRE',
            category = 'Custom Keys'
        },
        ['Select Antiair Fire Units On Screen'] = {
            order = 1,
            action = 'UI_SelectByCategory +inview + ANTIAIR',
            category = 'Custom Keys'
        },
        ['Select Defense Units On Screen'] = {
            order = 1,
            action = 'UI_SelectByCategory +inview + DEFENSE',
            category = 'Custom Keys'
        },
        ['Select Shield Units On Screen'] = {
            order = 1,
            action = 'UI_SelectByCategory +inview + SHIELD',
            category = 'Custom Keys'
        },
      }
      

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • IndexLibrorumI Offline
        IndexLibrorum Global Moderator
        last edited by

        I've not experienced this, but why adjust the hotkeys manually in the first place? There's the hotkey menu in game, which you can open by pressing F1 while in a game.

        Not sure why doing it manually would result in crashes, but give the menu a go perhaps?

        "Design is an iterative process. The required number of iterations is one more than the number you have currently done. This is true at any point in time."

        See all my projects:

        W 1 Reply Last reply Reply Quote 0
        • W Offline
          wolfred @IndexLibrorum
          last edited by wolfred

          @indexlibrorum Im creating new hotkeys that are not actually in the F1 menu.

          As you can see i created hotkeys to select my Shield mobile units on screen, antoher one to select AA land units on screen, etc. And they work fine but the the game crashes when i press my newly created hotkesy for the 8th or 7th time.

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

            For mine i have different order numbers for those in the same category. Can't remember if this was because it caused problems or not but worth a try.

            1 Reply Last reply Reply Quote 0
            • S Offline
              StormLantern Team Lead
              last edited by

              Perhaps the selection of these units is conflicting with a UI mod? Try disabling all ui mods and see whether the problem persists

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