Build time calculator widget

Build time calculator widget

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

Moderator: Moderators

Post Reply
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Build time calculator widget

Post by KDR_11k »

Would be useful to have a widget that displays the time it would take to build something in seconds in the tooltip of the build pic. Just divide the buildtime entry by the workertime of the builder(s) you have selected and display that after the buildtime value.
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

This would be really handy.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

AF made the eta group AI that gave you etas of movement and building. basicly that but in the form of a convinent widget
CautionToTheWind
Posts: 272
Joined: 30 May 2006, 17:06

Post by CautionToTheWind »

Does that work with the new release?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

1v0ry_k1ng wrote:AF made the eta group AI that gave you etas of movement and building. basicly that but in the form of a convinent widget
I don't think that'll tell you the required time before you start building it, though. I want to know things like "this factory spits one mech out every 30 seconds".
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

Could it be made smart enough to adjust for assisting builders?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

Made this one a while ago, I've never gotten around to
cleaning it up, but yall can have it for what it is worth:

http://trepan.bzflag.bz/spring/gui_build_eta.lua
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

That displays the time remaining for a construction, what I want is just to make the tooltip say

Cost:
M: 30 E: 1200
Buildtime: 800 (0:14)
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

if you know the mod, buildtime is surely build time/ build power ?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Yeah but I can't be arsed to remember the workertime of every builder and factory in the mod, never mind calculate that division. I got better things to do, like play the game.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

My ETA AI needs recompiling. It showed ETA for numerous orders such as ETA to reaching weapons range on attackers or move commands etc, and it did handle building things using a method that took into account stalling and assisting builders.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

Can you convert it to lua? Or add lua which would enable AI?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I dont know much lua. So no.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Licho wrote:Can you convert it to lua? Or add lua which would enable AI?
I think the only way for that would be to rewrite it completely and again, I don't want an ETA for a running construction, I want to know e.g. how many Peewees my lab will churn out per minute before I settle on whether to buy Peewees or whatever else I'm considering.
Post Reply

Return to “Lua Scripts”