Forged Alliance Forever Forged Alliance Forever Forums 2017-02-03T18:37:47+02:00 /feed.php?f=41&t=13937 2017-02-03T18:37:47+02:00 2017-02-03T18:37:47+02:00 /viewtopic.php?t=13937&p=142945#p142945 <![CDATA[Re: Mod created to select category units]]>
jackherer wrote:
I can, dont play sera xD

Thanks man for your useful help :D
As usual I can count on you!

Statistics: Posted by Okpuck — 03 Feb 2017, 18:37


]]>
2017-02-03T15:49:17+02:00 2017-02-03T15:49:17+02:00 /viewtopic.php?t=13937&p=142938#p142938 <![CDATA[Re: Mod created to select category units]]>
.smartSelect("AIR HIGHALTAIR ANTIAIR -BOMBER")',

Statistics: Posted by nine2 — 03 Feb 2017, 15:49


]]>
2017-02-03T13:47:17+02:00 2017-02-03T13:47:17+02:00 /viewtopic.php?t=13937&p=142933#p142933 <![CDATA[Re: Mod created to select category units]]> I don't understand why I didn't think before....
I used this function UISelectionByCategory("ual0303, uel0303, etc", false,false,false,false)
It works perfectly! No issue on the seraphim race so that i can use random race :)

I confirm that it would have been more smart to use category instead of specific units but with the categories I can't make select only interceptors and ASFs (corsairs are also included). With my way, I choose exactly the units that I want to select/control.

Many thanks again for your solution.

Statistics: Posted by Okpuck — 03 Feb 2017, 13:47


]]>
2017-02-03T09:46:56+02:00 2017-02-03T09:46:56+02:00 /viewtopic.php?t=13937&p=142928#p142928 <![CDATA[Re: Mod created to select category units]]>
You don't need a mod at ALL to make your key bindings. You could just add new entries to your game.prefs file to make your selection keys, then bind them.

Statistics: Posted by nine2 — 03 Feb 2017, 09:46


]]>
2017-02-03T09:41:27+02:00 2017-02-03T09:41:27+02:00 /viewtopic.php?t=13937&p=142927#p142927 <![CDATA[Re: Mod created to select category units]]>
function OnScreenDirect()
UISelectionByCategory("ALLUNITS", false,false,false,false) SelectUnits(GetUnitsByType({'ual0303','uel0303','xel0305','url0303','xrl0305','xsl0303','ual0201','ual0202','xal0203','del0204','uel0201','uel0202','uel0203','drl0204','url0202','url0203','xsl0201','xsl0202','xsl0203','ual0106','uel0106','url0106','url0107'}, GetSelectedUnits()))
end

you should be able to just do this:

UISelectionByCategory("ual0303, uel0303, etc", false,false,false,false)

haven't actually check that it works though. my keybinding thread is here:

viewtopic.php?f=40&t=8230&hilit=+keybinding#p77553

The problem with just trying to select fighters is it will include corsair which is technically a fighter.

Re this: - select land fire except scout/engineers/mobileshield

You could smart select something like "DIRECT MOBILE LAND -IdOfScout1 -IdOfScout2 -IdOfShield"

Statistics: Posted by nine2 — 03 Feb 2017, 09:41


]]>
2017-02-03T09:34:11+02:00 2017-02-03T09:34:11+02:00 /viewtopic.php?t=13937&p=142926#p142926 <![CDATA[Re: Mod created to select category units]]>

['select_anti_air_fighters'] = {action = 'UI_Lua import("/lua/keymap/smartSelection.lua").smartSelect("AIR HIGHALTAIR ANTIAIR -BOMBER")', category = 'selection', order = 42,},


Using smart select you can select some categories and EXCLUDE others with minus symbol, which means you can make category shortcuts but exclude a few things by category/id

Statistics: Posted by nine2 — 03 Feb 2017, 09:34


]]>
2017-02-03T07:36:07+02:00 2017-02-03T07:36:07+02:00 /viewtopic.php?t=13937&p=142925#p142925 <![CDATA[Re: Mod created to select category units]]> I created a new version of this mod but it failed as soon as I'm seraphim race.
What is the approppriate function to select specific units?
Or How can I choose category units without specific units like (for example):
- select only ASF/interceptors
- select land fire except scout/engineers/mobileshield

Thanks in advance for your support.
Because of this issue, I can't be in random faction.

Statistics: Posted by Okpuck — 03 Feb 2017, 07:36


]]>
2017-02-02T12:26:37+02:00 2017-02-02T12:26:37+02:00 /viewtopic.php?t=13937&p=142885#p142885 <![CDATA[Re: Mod created to select category units]]>
There is already a option to select all air fighters, so maybe have a look at that how that's done and it might give you some clues.
https://github.com/FAForever/fa/blob/develop/lua/keymap/keyactions.lua#L336

Statistics: Posted by speed2 — 02 Feb 2017, 12:26


]]>
2017-02-02T02:41:11+02:00 2017-02-02T02:41:11+02:00 /viewtopic.php?t=13937&p=142879#p142879 <![CDATA[Re: Mod created to select category units]]> Statistics: Posted by jackherer — 02 Feb 2017, 02:41


]]>
2017-02-01T20:41:46+02:00 2017-02-01T20:41:46+02:00 /viewtopic.php?t=13937&p=142859#p142859 <![CDATA[Re: Mod created to select category units]]>

Statistics: Posted by Okpuck — 01 Feb 2017, 20:41


]]>
2017-01-29T16:24:21+02:00 2017-01-29T16:24:21+02:00 /viewtopic.php?t=13937&p=142722#p142722 <![CDATA[Re: Mod created to select category units]]> I had the issue until 10min as soon as ACU built the PD tech2, the issue disappear!
Unbelievable!!!

I ask to all MOD pro guys to explain me why the MOD that I've created , doesn't work. PLS!

Statistics: Posted by Okpuck — 29 Jan 2017, 16:24


]]>
2017-01-29T09:40:15+02:00 2017-01-29T09:40:15+02:00 /viewtopic.php?t=13937&p=142713#p142713 <![CDATA[Mod created to select category units]]>
I created a specific MOD to select specific units (see the MOD in attachment). You can select:
the LAND direct fire excep scout
the LAND indirect fire
the LAND anti air
the air Fighters
the Bombers
and so on.....
I put also in attchment my game.prefs for keypad affectation.
This works correctly with the AEON, CYBRAN and FTU race but failed for SERAPHIM race :(

Indeed, when I try to select LAND direct fire for instance or select whatever the specific units by my MOD, it selects everything instead of only land direct fire units. You can make a trial in the following replay 5727490 from 1min40 game play. It would seem that teh function "UISelectionByCategory" fails for SERAPHIM race.

Thanks in advance for your support.
If we succeed to fix this issue, I can share my MOD with FAF players :)

Statistics: Posted by Okpuck — 29 Jan 2017, 09:40


]]>