Unit Auto Repair Widget
Moderator: Moderators
- thesleepless
- Posts: 417
- Joined: 24 Oct 2007, 04:49
Unit Auto Repair Widget
ok, just made a Unit Auto Repair Widget
http://spring.jobjol.nl/show_file.php?id=1654
any unit with repair ability in the vicinity of a damaged unit will repair it, even if it's moving, but not if it's building something.
Known Issues
If the repair unit is set to repeat it'll repeat the repair order forever, not sure how to fix this... I need to remove the order somehow after the repair is completed.
Selection of which unit to repair is currently just based on distance, it should probably be based on the value and health of the damaged unit
But this means you can send con/repair units with your main attack force and they'll repair any combat units that get damaged as they go
It'd be nice to be able to add an AutoRepair toggle button for the unit, is this easy to do?
http://spring.jobjol.nl/show_file.php?id=1654
any unit with repair ability in the vicinity of a damaged unit will repair it, even if it's moving, but not if it's building something.
Known Issues
If the repair unit is set to repeat it'll repeat the repair order forever, not sure how to fix this... I need to remove the order somehow after the repair is completed.
Selection of which unit to repair is currently just based on distance, it should probably be based on the value and health of the damaged unit
But this means you can send con/repair units with your main attack force and they'll repair any combat units that get damaged as they go
It'd be nice to be able to add an AutoRepair toggle button for the unit, is this easy to do?
Re: Unit Auto Repair Widget
oh wow, why hasnt this been made before? thanks mate.
Re: Unit Auto Repair Widget
this is great, the toggle would be ideal but this works just fine
this kind of functionality should be built in, but meh
this kind of functionality should be built in, but meh
- thesleepless
- Posts: 417
- Joined: 24 Oct 2007, 04:49
Re: Unit Auto Repair Widget
fixed a little bug which was causing it to kill itself when units died
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Unit Auto Repair Widget
I'd like to stick this into CA. It would complement the retreat widget since I can take out the functionality that makes cons repeat+arearepair when placed in a retreat zone (which was annoying at times). Nice work.
- thesleepless
- Posts: 417
- Joined: 24 Oct 2007, 04:49
Re: Unit Auto Repair Widget
cool, go for it, i've noticed it dies during gameplay sometimes but haven't had time to debug it properly, but welcome to use and mod however you see fit
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Unit Auto Repair Widget
Don't worry, I'll debug it for you as I play and you can keep pulling it out of CA.thesleepless wrote:cool, go for it, i've noticed it dies during gameplay sometimes but haven't had time to debug it properly, but welcome to use and mod however you see fit
Fix #1: http://trac.caspring.org/changeset/3884
Re: Unit Auto Repair Widget
Car, you weren't on for me to yell at you earlier. This thing needs to not give orders to nanos. Especially orders out of reach.
Re: Unit Auto Repair Widget
It needs to ignore nanos completely, we have smart nanos for that.
Re: Unit Auto Repair Widget
+1
it causes nanos on patrol to repair units/reclaim wrecks 50 miles away from them
it causes nanos on patrol to repair units/reclaim wrecks 50 miles away from them
Re: Unit Auto Repair Widget
I fixed it in the CA version, it ignores nanos now
Re: Unit Auto Repair Widget
How is this better than setting my cons to repeat on + area repair?
Re: Unit Auto Repair Widget
Area repair doesn't work so hot on cons mixed into battle groups.
Re: Unit Auto Repair Widget
The widget sees everything, and does everything very fast, you don't
- thesleepless
- Posts: 417
- Joined: 24 Oct 2007, 04:49
Re: Unit Auto Repair Widget
hmm this is what i originally designed it to do, what's the problem?lurker wrote:Area repair doesn't work so hot on cons mixed into battle groups.
Re: Unit Auto Repair Widget
i think he was defending your widget saying that ordinary area repair isnt efficient
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: Unit Auto Repair Widget
Widget is nice but I often have problems with builders stopping their normal build-task to repair some nearby units. Is this intended? I thought only idle builders would be affected by this widget?
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Unit Auto Repair Widget
That shouldn't be, I assume. There will be kinks to work out.very_bad_soldier wrote:Widget is nice but I often have problems with builders stopping their normal build-task to repair some nearby units. Is this intended? I thought only idle builders would be affected by this widget?
Re: Unit Auto Repair Widget
This. Love the widget and will still use it despite this, but fix please!!very_bad_soldier wrote:Widget is nice but I often have problems with builders stopping their normal build-task to repair some nearby units. Is this intended? I thought only idle builders would be affected by this widget?
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Unit Auto Repair Widget
I'll fix it tonight.