widget: CustomFormations v2.2 (17 Jan 08) *PLEASE UPGRADE*
Moderator: Moderators
no, you can't directly control the direction, but you know the movement vector of your units, so you easily can affect their final direction.
Also you still can use the default line formation on single units to change their direction.
And yup the gathermode isn't respected, but it isn't that easy to fix, so it has to wait for 75b3 (sorry).
And convex hull is very interesting (perhaps + a nearest unit detection, to minimize the movement distance). I will test how fast it is.
Also you still can use the default line formation on single units to change their direction.
And yup the gathermode isn't respected, but it isn't that easy to fix, so it has to wait for 75b3 (sorry).
And convex hull is very interesting (perhaps + a nearest unit detection, to minimize the movement distance). I will test how fast it is.
feature request/bug: When i have selected 3 diff unit types and draw formation, this widget will sort units by name along the line. This is unhandy as i would much more preffer random mix than groupings.
Lets say i have 5 golis 10 reapres and 10 samson. Widget would group units tohether leaving weak sams grouped together. Is random mix possible?
Lets say i have 5 golis 10 reapres and 10 samson. Widget would group units tohether leaving weak sams grouped together. Is random mix possible?
Re: widget: CustomFormations v2.1 (updated 4 Jan)
bug in 076:
select 2 units, right click on minimap (be near cener of map) and units wont got to minimapspot but to realmap spot.
This makes this awsome widget useless for me.
This issue was fixed be4 but in 76 i got it again. Ideas?
select 2 units, right click on minimap (be near cener of map) and units wont got to minimapspot but to realmap spot.
This makes this awsome widget useless for me.
This issue was fixed be4 but in 76 i got it again. Ideas?
Re: widget: CustomFormations v2.1 (updated 4 Jan)
its not possible to recieve Minimap clicks within LuaUI, so it is impossible to fix any minimap issues.
Btw do you use IceUI?
Btw do you use IceUI?
Re: widget: CustomFormations v2.1 (updated 4 Jan)
Either jK is lying, mistaken, too lazy to check; or this doesn't work.
IIRC, I've even discussed this 'feature' with him in the past.
NOTE: middle mouse clicks are not captured
IIRC, I've even discussed this 'feature' with him in the past.
NOTE: middle mouse clicks are not captured
Code: Select all
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: minimap_click.lua
-- brief: eat minimap clicks
-- author: Dave Rodgers
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "MinimapClick",
desc = "MinimapClick",
author = "trepan",
date = "Jan 05, 2008",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true -- loaded by default?
}
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:MousePress(x, y, button)
if (button < 0) then
Spring.Echo("CLICK", x, y, button)
return true -- eat minimap clicks
end
return false
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Re: widget: CustomFormations v2.1 (updated 4 Jan)
You said it isn't possible, except I would use SlaveMiniMap().
But yeah, it seems that LuaUI receives the MousePresses before the engine minimap-handler
But yeah, it seems that LuaUI receives the MousePresses before the engine minimap-handler

Re: widget: CustomFormations v2.1 (updated 4 Jan)
Could you make the widget work on the minimap? As a dual screen user I could definitely use it. 

Re: widget: CustomFormations v2.1 (updated 4 Jan)
not using ice. And this WORKS for 1 unit, it only fails with more units so it should be correctable. gljK wrote:its not possible to recieve Minimap clicks within LuaUI, so it is impossible to fix any minimap issues.
Btw do you use IceUI?
Re: widget: CustomFormations v2.1 (updated 4 Jan)
plz fix this :)
Re: widget: CustomFormations v2.1 (updated 4 Jan)
Hi !
Do you plan some support for multi-units formations ? Because this widget is good for a line of same units, but less usable for several types of units (hide artillery behind bulldogs and so). Maybe its possible to do the same using groups (and guard command), but it requires micromanagement.
Btw it would be nice too if units can be sorted in lines (preferably sorted by type - tanks in the front and so) and not so crowded in one short line.
But anyway - nice work !
Do you plan some support for multi-units formations ? Because this widget is good for a line of same units, but less usable for several types of units (hide artillery behind bulldogs and so). Maybe its possible to do the same using groups (and guard command), but it requires micromanagement.
Btw it would be nice too if units can be sorted in lines (preferably sorted by type - tanks in the front and so) and not so crowded in one short line.
But anyway - nice work !

Re: widget: CustomFormations v2.1 (updated 4 Jan)
Is this perhaps fixed yet?ginekolog wrote:bug in 076:
select 2 units, right click on minimap (be near cener of map) and units wont got to minimapspot but to realmap spot.
This makes this awsome widget useless for me.
This issue was fixed be4 but in 76 i got it again. Ideas?
Re: widget: CustomFormations v2.1 (updated 4 Jan)
ginekolog wrote:Is this perhaps fixed yet?ginekolog wrote:bug in 076:
select 2 units, right click on minimap (be near cener of map) and units wont got to minimapspot but to realmap spot.
This makes this awsome widget useless for me.
This issue was fixed be4 but in 76 i got it again. Ideas?
jK fixed that i will include the new widget with BA again, but for now you can get it out of CA i guess.
Re: widget: CustomFormations v2.2 (17 Jan 08) *PLEASE UPGRADE*
i can confirm that this widget works great again. Minimap works and it even randomizes units at destination. Great, thanx.
Ps. I pulled it out of CA but guess the one on first page should be ok too.
Ps. I pulled it out of CA but guess the one on first page should be ok too.