Metal reclaim widget

Metal reclaim widget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Metal reclaim widget

Post by Wombat »

hello. i was wondering if someone considered making widget which allows you to reclaim metal only (on maps like altair). I see many players talking about this who would like to have widget like this. I belong to this group :D So question is - if someone, who knows how to create widget, could make one. I think it would be extremely usefull, especially on maps like altair or when you want to reclaim metal laying in group of trees. I know its kinda lame to ask someone to make something for me but im mega newb in widgets :]
thx and cya
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Metal reclaim widget

Post by Google_Frog »

Already done by aegis. I haven't used it in a while but I remember it working.
Attachments
unit_smart_area_reclaim.lua
Smart Area Reclaim.
(4.86 KiB) Downloaded 24 times
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Metal reclaim widget

Post by manolo_ »

Google_Frog wrote:Already done by aegis. I haven't used it in a while but I remember it working.
its working
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: Metal reclaim widget

Post by Wombat »

WOOT
didnt know that, many thanx, this gonna be extremely usefull widget.
thx thx thx ^^
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Metal reclaim widget

Post by manolo_ »

use the spring downloader, there are a lot of useful widgets
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Metal reclaim widget

Post by Jazcash »

No, Aegis's widget is fuxored. Sometimes it will take the longest routes possible to reclaim.

Somebody made that widget where if you reclaim one building and drag the reclaim area over all other buildings, it will reclaim all the buildings of that type.

Would would be cool is if you could set modes on reclaimers to which they need to reclaim, Energy or Metal.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Metal reclaim widget

Post by Google_Frog »

Somebody made that widget where if you reclaim one building and drag the reclaim area over all other buildings, it will reclaim all the buildings of that type.
I made that one, it even does mobiles and enemy units. http://spring.jobjol.nl/show_file.php?id=2048
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: Metal reclaim widget

Post by Niobium »

JAZCASH wrote:No, Aegis's widget is fuxored. Sometimes it will take the longest routes possible to reclaim.
It depends, do you want to go closest to closest (Fast algorithm, easy to code, but can result in 'bad' last few) or shortest overall (Hard algorithm, traveling salesperson, etc), a lot of the time it depends on personal preference / how fast do you need the resource / is there a chance of hostiles.

The widget google made/linked to does allow area reclaim of a unit type, but doesn't do anything in way of optimization (Except for minimum commands) by the way.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Metal reclaim widget

Post by Jazcash »

Google_Frog wrote:
Somebody made that widget where if you reclaim one building and drag the reclaim area over all other buildings, it will reclaim all the buildings of that type.
I made that one, it even does mobiles and enemy units. http://spring.jobjol.nl/show_file.php?id=2048
I just recently started using it, but have had to disable it cause of some bugs.

I wanted to reclaim some rocko wrecks so I dragged a reclaim circle around them, and instead they started to reclaim my alive rockos as well as the wrecks.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Metal reclaim widget

Post by aegis »

iirc my widget was only optimized for stationary reclaimers... never got around to implementing a proper tsp... also should've been optimized with a single command feeding into more commands instead of just adding all of the reclaim commands to the queue...
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Metal reclaim widget

Post by Google_Frog »

JAZCASH wrote:
Google_Frog wrote:
Somebody made that widget where if you reclaim one building and drag the reclaim area over all other buildings, it will reclaim all the buildings of that type.
I made that one, it even does mobiles and enemy units. http://spring.jobjol.nl/show_file.php?id=2048
I just recently started using it, but have had to disable it cause of some bugs.

I wanted to reclaim some rocko wrecks so I dragged a reclaim circle around them, and instead they started to reclaim my alive rockos as well as the wrecks.
I made the widget to reclaim alive units so if you needed some extra M you could easily reclaim a group. It is suppose to reclaim all the alive units of that type. Wrecks already have an area command and why do you want to reclaim a type of wreck?
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Metal reclaim widget

Post by Jazcash »

Google_Frog wrote:I made the widget to reclaim alive units so if you needed some extra M you could easily reclaim a group. It is suppose to reclaim all the alive units of that type. Wrecks already have an area command and why do you want to reclaim a type of wreck?
I didn't want to reclaim a type of wreck, I just drew a circle in where a load of wrecks were to reclaim and instead of reclaiming the dead metal like it would with default, your widget made it reclaim my alive units...
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Metal reclaim widget

Post by Google_Frog »

JAZCASH wrote:
Google_Frog wrote:I made the widget to reclaim alive units so if you needed some extra M you could easily reclaim a group. It is suppose to reclaim all the alive units of that type. Wrecks already have an area command and why do you want to reclaim a type of wreck?
I didn't want to reclaim a type of wreck, I just drew a circle in where a load of wrecks were to reclaim and instead of reclaiming the dead metal like it would with default, your widget made it reclaim my alive units...
If the middle of the reclaim circle is over a unit when the mouse is released all units of that type will be reclaimed instead of wrecks. You've just got to make sure that you don't reclaim over live units when you want to reclaim wrecks.

If you are reclaiming over wrecks or emty space and it reclaims live units then that is a bug.
Post Reply

Return to “Lua Scripts”