

Imo only idle const should repair stuff nearby... not even moving ones. (or put that as variable in widget file so we can easily change it?)
Moderator: Moderators
yep, it'd be best they didn't stop building to repair stuff,ginekolog wrote:nice if u fix it, i ll use it. ATM i cant as i order cons to build antinuke and he start reparing stuff first.. wtf![]()
![]()
Imo only idle const should repair stuff nearby... not even moving ones. (or put that as variable in widget file so we can easily change it?)
Okay, fixed here http://trac.caspring.org/changeset/3896thesleepless wrote:yep, it'd be best they didn't stop building to repair stuff,ginekolog wrote:nice if u fix it, i ll use it. ATM i cant as i order cons to build antinuke and he start reparing stuff first.. wtf![]()
![]()
Imo only idle const should repair stuff nearby... not even moving ones. (or put that as variable in widget file so we can easily change it?)
but it was intentional that they repair while moving
that's so you can grab a bunch of cons + combat units and move them at the enemy base and any combat units that get damaged will get repaired by the cons on the way, unfortunately it seems its not easy to order a con to repair something and keep moving while it does it
Edit: Still bugged, will need more testing.
ideally it should work the same way as attacking, if a combat unit encounters an enemy while it's moving then it'll attack it, if a repair unit encounters a damaged friendly while moving it should repair it
IMO nanospray should just a weapon like every other weapon, but target friendlies by default rather than enemies
Code from Idlebuilder widget:local function isIdleRepairer(unitID)
local udef = spGetUnitDefID(unitID)
local ud = UnitDefs[udef]
if not ud.canRepair then
return false
end
local _, _, _, _, buildProg = spGetUnitHealth(unitID)
if buildProg < 1 then
return false
end
local cQueue = spGetCommandQueue(unitID)
if cQueue[1] then
return false
end
return true
end
local function IsIdleBuilder(unitID)
local udef = Spring.GetUnitDefID(unitID)
local ud = UnitDefs[udef]
local qCount = 0
if ud.buildSpeed > 0 then --- can build
local bQueue = Spring.GetFullBuildQueue(unitID)
if not bQueue[1] then --- has no build queue
local _, _, _, _, buildProg = Spring.GetUnitHealth(unitID)
if buildProg == 1 then --- isnt under construction
if ud.isFactory then
return true
else
local cQueue = Spring.GetCommandQueue(unitID)
if not cQueue[1] then
return true
end
end
end
elseif ud.isFactory then
for _, thing in ipairs(bQueue) do
for _, count in pairs(thing) do
qCount = qCount + count
end
end
if qCount <= NEAR_IDLE then
QCount[unitID] = qCount
return true
end
end
end
return false
end
CarRepairer wrote:I have the feeling you're not using the updated version from CA which has some fixes.
We work and update on our repository. And it's not only ca-devs that put widget in wdb. A simple solution might be to put a link in to ca's repository in description if you add a widget in wdb.manolo_ wrote:the problem is, that ca-devs dont update the widgets in the wdb (if they just modified them)
Car updates CCC quite regularly.manolo_ wrote:the problem is, that ca-devs dont update the widgets in the wdb (if they just modified them)
Hm, that would make it impossible to use most of SD's widgets features. (One-click install, auto-updating, version tracking, etc.)SirMaverick wrote:We work and update on our repository. And it's not only ca-devs that put widget in wdb. A simple solution might be to put a link in to ca's repository in description if you add a widget in wdb.manolo_ wrote:the problem is, that ca-devs dont update the widgets in the wdb (if they just modified them)
Nope...very_bad_soldier wrote:Car updates CCC quite regularly.
This is what I do. He has more patience than me with the wdb app.very_bad_soldier wrote:How about this: When you update a widget you send a PM to me or manolo (with a changelog) and we will do the DB updates for you?
This widget has potential for specific use for me. I was using the latest version i think, since there is nothing newer than the one posted in this topic by you (http://trac.caspring.org/changeset/3896)CarRepairer wrote:Nope...very_bad_soldier wrote:Car updates CCC quite regularly.
This is what I do. He has more patience than me with the wdb app.very_bad_soldier wrote:How about this: When you update a widget you send a PM to me or manolo (with a changelog) and we will do the DB updates for you?
Back to topic though, even with some fixes in CA the widget still had issues and we had to disable it. We should probably remove it to prevent newbies from using it by accident.