Creating new Hotkeys / Shortcuts error
-
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!
-
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?
-
@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.
-
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.
-
Perhaps the selection of these units is conflicting with a UI mod? Try disabling all ui mods and see whether the problem persists