Forged Alliance Forever Forged Alliance Forever Forums 2019-09-28T01:20:40+02:00 /feed.php?f=41&t=18207 2019-09-28T01:20:40+02:00 2019-09-28T01:20:40+02:00 /viewtopic.php?t=18207&p=178596#p178596 <![CDATA[Re: how to enable hotbuild with my mod]]>
[edit] and a note for those that might follow ... unit ids must be lower case (or converted to lower case in unitkeygroups.lua)

Statistics: Posted by Axle — 28 Sep 2019, 01:20


]]>
2019-09-27T19:35:59+02:00 2019-09-27T19:35:59+02:00 /viewtopic.php?t=18207&p=178590#p178590 <![CDATA[Re: how to enable hotbuild with my mod]]>
i have no clue about hotbuild, so i only view the scripts without testing.

All keygroups with unitID are saved inside unitkeygroups.lua:
https://github.com/FAForever/fa/blob/develop/lua/keymap/unitkeygroups.lua


For adding new hotkeys make a new (empty) file inside your mod:
Code:
YOURMOD\hook\lua\keymap\unitkeygroups.lua


Now, if you want to add a new unit to the T2_Fighter/Bomber hotkey as example, add this to your empty file:
Code:
unitkeygroups = {
    ["T2_Fighter/Bomber"] = {
        "dea0202",
        "dra0202",
        "xsa0202",
        "YOUR NEW UNIT ID",
    },
}


In case you want to add completly new keyactions you need to modify the file keyactions.lua
(same like unitkeygroups.lua)
https://github.com/FAForever/fa/blob/develop/lua/keymap/keyactions.lua


More help can be found here:
http://forums.faforever.com/viewtopic.php?f=2&t=13817

Greetings, Uveso.

Statistics: Posted by Uveso — 27 Sep 2019, 19:35


]]>
2019-09-27T16:37:13+02:00 2019-09-27T16:37:13+02:00 /viewtopic.php?t=18207&p=178582#p178582 <![CDATA[how to enable hotbuild with my mod]]>
So my question is ... how to enable hotbuild with the new units in my mod? Do I add a magic tag to the "categories" key in the units' blueprint? Do I need to hook some particular lua file and programatically add a keybinding for each unit?

Please help me out I can't play my mod without hotbuild I love hotbuild too much!

Alex

Statistics: Posted by Axle — 27 Sep 2019, 16:37


]]>