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

    Completely customizable hotkeys mod

    Scheduled Pinned Locked Moved Modding & Tools
    14 Posts 3 Posters 1.4k 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.
    • Ctrl-KC
      Ctrl-K
      last edited by

      ... will allow you to customize your hotkeys programatically. You will need to write code to change it, but it has a fairly easy to understand structure to it...

      Any program for user is hard. Don't rely on user's understanding how code works. There is only one case that user may do something - a config file. Create some kind of parser that parses config user can edit.

      “Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
      — Steve Jobs.
      My UI Mods
      Support me

      FreadyFishF 1 Reply Last reply Reply Quote 1
      • N
        Nex
        last edited by

        You might wanna take a look at the hotbuild code since that's doing the same, but is limited to build commands currently. (maybe you already did)
        It also features hotkey creation from a simplified config file and allows allows adding keys later on (via mods for example).
        You may wann check out the cycling preview it shows for your multi-stage hotkeys.
        Maybe you also want to implement this or parts of this into the base FAF hotbuild, since in the long run it makes sense to have hotbuild be expanded to handle more different kinds of commands instead of only build commands.

        FreadyFishF 1 Reply Last reply Reply Quote 1
        • FreadyFishF
          FreadyFish Global Moderator @Ctrl-K
          last edited by

          @azath0th Yeah I hear you, it's a good idea. I'll see what I can do. PS: big fan, I stole a lot of your code 😏

          Ctrl-KC 1 Reply Last reply Reply Quote 0
          • FreadyFishF
            FreadyFish Global Moderator @Nex
            last edited by

            @nex Haven't looked at that code in detail but I have thought about those previews. I'll check it out when I get there. Implementing it into core is more than I ever imagined but I can see it working. So much to do though, would prefer some help with that to get it right. I'll think about opening up a suggestion on github when I'm done with the proof of concept version and see who's interested. Thanks!

            1 Reply Last reply Reply Quote 0
            • Ctrl-KC
              Ctrl-K @FreadyFish
              last edited by

              @freadyfish stealing code isn't good idea at all. Put the license on top of each file you copied or use directly from mods.

              “Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
              — Steve Jobs.
              My UI Mods
              Support me

              FreadyFishF 1 Reply Last reply Reply Quote 0
              • FreadyFishF
                FreadyFish Global Moderator @Ctrl-K
                last edited by

                @azath0th Ehm you don't have a license file and you leave the copyright field empty? Or am I wrong in assuming you are 4z0t? Otherwise, yes, ofc. Even though I do not understand at all why anyone would copyright a mod. Very lame 🙄

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

                  @freadyfish said in Completely customizable hotkeys mod:

                  Ehm you don't have a license file and you leave the copyright field empty?

                  That'd mean you aren't allowed to copy anything from the mod and publish it, without getting approval from the author first, as is explained on the github licensing page for example.
                  https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository#choosing-the-right-license

                  Sure it'd be nicer if everyone put a nice license for fair use with credit to the original author, but if the mod author is active you should ask if you can copy stuff or at least credit them for what you copied in your work. (aside from copy pasting singular lines or something)

                  FreadyFishF 1 Reply Last reply Reply Quote 0
                  • FreadyFishF
                    FreadyFish Global Moderator @Nex
                    last edited by

                    @nex Aaah. Yes. You are right actually. I assumed too much. In @Azath0th case he does have the MIT license on his github repo so I will include that license for any of my releases and all should be fine. For everyone else, just sue me (that's a joke!)

                    1 Reply Last reply Reply Quote 0
                    • Ctrl-KC
                      Ctrl-K
                      last edited by

                      You don't have to put any license if you just import required functions from a mod. About license for each mod: I will add these, but there are too many mods for update, it should come one by one. Thanks for pointing.

                      “Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
                      — Steve Jobs.
                      My UI Mods
                      Support me

                      1 Reply Last reply Reply Quote 1
                      • Ctrl-KC
                        Ctrl-K
                        last edited by

                        @FreadyFish have you got any progress yet? 😛 https://github.com/4z0t/FAF-UI-Mods/blob/dev/aka_v01/mods/AKA/Main.lua

                        “Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
                        — Steve Jobs.
                        My UI Mods
                        Support me

                        FreadyFishF 1 Reply Last reply Reply Quote 0
                        • FreadyFishF
                          FreadyFish Global Moderator @Ctrl-K
                          last edited by

                          @zer0d4y I have completely missed this! Been busy with an OpenRA mod of mine, so no unfortunatelly I didnt do much at all. Barely even played (shameful)

                          What about you? Any new ideas? Seems like a good start! 😁👍

                          1 Reply Last reply Reply Quote 0
                          • Ctrl-KC
                            Ctrl-K
                            last edited by

                            @FreadyFish It is being integrated https://github.com/FAForever/fa/pull/5755

                            “Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
                            — Steve Jobs.
                            My UI Mods
                            Support me

                            FreadyFishF 1 Reply Last reply Reply Quote 1
                            • FreadyFishF
                              FreadyFish Global Moderator @Ctrl-K
                              last edited by

                              @ctrl-k

                              Hey, want to get your thoughts on some further ideas here.

                              I'm thinking to create a dialog, possibly opened from a new button in the default hotkeys page. From there I imagine a set of tabs for the different contexts, like for engineers or factories selected. In each tab it's possible to create commands for that context, even chain link several commands to run in sequence (for example: select all TML + Group scatter + enter launch mode). In the end you can create a set of finely tuned hotkeys from all possible default hotkeys commands.

                              As the next step i imagine an import function where users can share their hotkeys either for all or specific contexts. Maybe someone likes my engineer hotkeys, and your factory hotkeys - should be possible to mix. When importing it would be nice to be able to convert between different keyboard layouts (languages) so it gets the same placement.

                              I think it will be an awesome project, worthy of integration. It would be great to get your help. You in on giving it a try?

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