Forged Alliance Forever Forged Alliance Forever Forums 2020-07-29T12:54:13+02:00 /feed.php?f=3&t=19639 2020-07-29T12:54:13+02:00 2020-07-29T12:54:13+02:00 /viewtopic.php?t=19639&p=185977#p185977 <![CDATA[Re: Bug; Toggle All Unit Abilities Hotkey]]>
Until now I only briefly looked through the .prefs file. Following your advice I tried to examine the .prefs file in more detail. This led me to find the following:
Userkeyactions all have a dedicated order number. I searched the .prefs file for 'order = 15' (since the 'toggle all unit abilities' order number is 15).

I found out that for orders #1 - #30, two different entries existed. The second order for each respectively, originated from the UI_party mod. The function to split groups and the orders associated with these actions were called upon by using an ordernumber already occupied by the game.

Example of problem:
Code:
['Disable UI-Party'] = {
                    order = 1,
                    action = "UI_Lua import('/mods/UI-Party/modules/UI-Party.lua').ToggleEnabled()",
                    category = 'UI Party'
                },


Conflicting with:
Code:
['toggle_repeat_build'] = {
                    order = 1,
                    action = 'UI_Lua import("/lua/gaz_ui/modules/keymapping.lua").ToggleRepeatBuild()',
                    category = 'orders'
                },


Having first saved my original .prefs I started to rearrange the order numbers for the UI_party actions. I made changes to each order up until number 30.
Possible Solution:
Code:
['Disable UI-Party'] = {
                    order = 501,
                    action = "UI_Lua import('/mods/UI-Party/modules/UI-Party.lua').ToggleEnabled()",
                    category = 'UI Party'
                },


I set up a test match and to my surprise, the 'toggle all unit abilities' hotkey worked. I will have to do some more testing to see if this change will last but for now I am content.
Something that I don't quite understand is why these actions (UI_party) were not removed when I uninstalled all my Supcom & Faf files. I deleted all mods and did not install them until after i did some test matches.
I don't know how the creator of UI_party put these orders in, for some reason they only conflicted on my system and it does not seem to be a common issue, but it could be a good idea to rearrange the orders in the mod to not conflict with original game orders.

Thanks to Uveso & Charger!
glhf

Statistics: Posted by Stealth — 29 Jul 2020, 12:54


]]>
2020-07-28T20:08:29+02:00 2020-07-28T20:08:29+02:00 /viewtopic.php?t=19639&p=185960#p185960 <![CDATA[Re: Bug; Toggle All Unit Abilities Hotkey]]> Statistics: Posted by R_Charger — 28 Jul 2020, 20:08


]]>
2020-07-28T19:26:37+02:00 2020-07-28T19:26:37+02:00 /viewtopic.php?t=19639&p=185959#p185959 <![CDATA[Re: Bug; Toggle All Unit Abilities Hotkey]]>
I looked at the files and I indeed found those lines were present in both keyactions.lua & misckeyaction.lua.
If you take a look at my gamelog you can see that debugline show up however, it does not translate to any actions in-game.

Are there other things I should try?

Statistics: Posted by Stealth — 28 Jul 2020, 19:26


]]>
2020-07-28T16:54:37+02:00 2020-07-28T16:54:37+02:00 /viewtopic.php?t=19639&p=185958#p185958 <![CDATA[Re: Bug; Toggle All Unit Abilities Hotkey]]>
i checked the function and its working.

I assigned the toogle all function to the [CTRL]+[TAB] key:
game.prefs:
Code:
['Ctrl-Tab'] = 'toggle_all',


This function will call this keyaction:
Code:
['toggle_all'] = {action = 'UI_Lua import("/lua/keymap/misckeyactions.lua").toggleAllScript()',
Code inside keyactions.lua:
https://github.com/FAForever/fa/blob/develop/lua/keymap/keyactions.lua#L316


This keyaction will call the function toggleAllScript() inside the file misckeyactions.lua
Code:
https://github.com/FAForever/fa/blob/develop/lua/keymap/misckeyactions.lua#L76

I build a tech2 shield, massextractor and a masscreator. Selected them all, pressed [CTRL]+[TAB] and the toogle works.

The keypress has a output to the game.log.
So every time you are pressing the [CTRL]+[TAB] keys, this debugline should show up:
Code:
info: UI_Lua import("/lua/keymap/misckeyactions.lua").toggleAllScript()

Statistics: Posted by Uveso — 28 Jul 2020, 16:54


]]>
2020-07-28T15:20:55+02:00 2020-07-28T15:20:55+02:00 /viewtopic.php?t=19639&p=185957#p185957 <![CDATA[Bug; Toggle All Unit Abilities Hotkey]]>
I seem to be unable to use hotkeys for any 'toggle' function. I have tried to search for other people experiencing the same problem and have found one post on this forum (unsolved) that seems to revolve around the same issue /viewtopic.php?f=3&t=17228&p=171986&hilit=bug+toggle+abilities#p171986 .

All orders, selection, hotbuild etc. hotkeys work as expected except for a few which i will list in part here:

- toggle all unit abilities (& similar 'toggle' functions)
- factory infinite repeat toggle

sidenote: I am able to turn infinite build on by using the 'stop all orders' command however, I am not able to turn it off after.

I have tried a lot of different combinations to make sure it was not the key itself, none of them worked.
I did a test match earlier today, you can follow the chat where I describe my actions. All mods are disabled.

Match ID : 12269341

I attached the logs of this game and the client log. I would really appreciate it if someone could take a look at this because it is frustrating.

The following line is present in my game.prefs: ['Ctrl-Tab'] = 'toggle_all'.

thank you for your attention,

EDIT: just to get ahead, I have seen this post /viewtopic.php?f=3&t=12321&p=125855&hilit=bug+toggle+abilities#p125855. Although the first issue seems similar, the problem I am experiencing is not due to lag or delay. It simply doesn't function at all.

Statistics: Posted by Stealth — 28 Jul 2020, 15:20


]]>