NanoButtons Gadget - new version 1.1 - Page 3

NanoButtons Gadget - new version 1.1

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

Moderator: Moderators

User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Post by Pressure Line »

Saktoth wrote:Some problems with the gadget, in CA.

It reclaims, even when your storage is full. This does terrible things like waste the metal from corpses or sit reclaiming trees when you want it to help build. It should only reclaim when you are stalling or close to stalling. You could turn reclaim off but its better if this is managed more sensibly.
or have a user/modder definable (in the config file) threshold, so that behaviour like:

1) reclaiming metal sources while e-stalling
2) reclaiming energy sources while m-stalling
3) reclaiming while storage is full

doesnt happen

perhaps setting an upper and lower limit, like say 10% and 50%. it will (for example) switch to reclaiming metal if your current amount drops to below 10% of total, while also not starting any new metal reclaims if the current amount is over 50% of storage.
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Post by Saktoth »

They also repair things you are trying to reclaim (which immobilebuilders does too, but its best if it didnt).
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

Another proble is that turrets often try to repair fast unit (aircraft) and if it gets out of range they become stuck and stop assisting factory. (Sending it stop command usually fixes this).

Sometimes they even become completely frozen and even stop wont help - you can only destroy them.
User avatar
BigHead
Posts: 145
Joined: 12 Jul 2007, 18:55

Post by BigHead »

Another proble is that turrets often try to repair fast unit (aircraft) and if it gets out of range they become stuck and stop assisting factory.
I quite doubt that's causing the problem as there's a piece of code that checks if a unit gets out of range. Last time I saw this bug it was caused by a nano trying to reclaim a geothermal spot (which is a feature just like a tank corpse). I fixed that. Send me a replay + name of the player and time when this happens. I should be able to fix it if I see it happening.
It reclaims, even when your storage is full.
I first thought that this should be done by player manualy ... but I guess the idea of Spring is to focus on macro not micro so ok, I'll add this feature.
They also repair things you are trying to reclaim (which immobilebuilders does too, but its best if it didnt).
There was a discussion about this and the problem is that this would drag too much cpu power becouse there's no native support from Spring to see if a unit is being reclaimed by another unit. However I thought about it and came with a solution.
Now the only thing I need is time and will to do it :-)
User avatar
BlueTemplar
Posts: 314
Joined: 28 Oct 2007, 22:37

Post by BlueTemplar »

So you can't activate this widget if it's not included in a mod?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Its not a widget, its a gadget, a set of game rules.
Totbuae
Posts: 38
Joined: 14 Nov 2007, 08:22

Post by Totbuae »

Do you need anything else besides CA to have this functionality? I have CA r1005 at the moment and my nanotowers have the standard set of orders, not the improved ones from the gadget.
User avatar
quantum
Posts: 590
Joined: 19 Sep 2006, 22:48

Post by quantum »

We're waiting for the next version of the gadget.
Totbuae
Posts: 38
Joined: 14 Nov 2007, 08:22

Post by Totbuae »

Whoa, now that's what I call quick response time. Thanks for the info, quantum.
User avatar
quantum
Posts: 590
Joined: 19 Sep 2006, 22:48

Post by quantum »

#news for the win :-)
User avatar
BigHead
Posts: 145
Joined: 12 Jul 2007, 18:55

Post by BigHead »

... and I'm waiting for the replay as I lack the time to play Spring and find out myself.
I quite doubt that's causing the problem as there's a piece of code that checks if a unit gets out of range. Last time I saw this bug it was caused by a nano trying to reclaim a geothermal spot (which is a feature just like a tank corpse). I fixed that. Send me a replay + name of the player and time when this happens. I should be able to fix it if I see it happening.
Btw the version on my disk reclaims only if there is enough free storage and no longer repairs things you are trying to reclaim ..
Post Reply

Return to “Lua Scripts”