Page 1 of 1

Suggestion for Lua widget - Ghost timer.

Posted: 25 Jul 2007, 14:10
by Pendrokar
It would be usefull to know how old the info of the base ghost units are!
A small timer that starts as the ghost unit is created and the timer stays with it.
Maybe refresh after 5 secs!

PS. This widget should automatically disable if ghost units is off!!

Posted: 25 Jul 2007, 22:48
by Pendrokar
Neutrality in the air!!

Posted: 26 Jul 2007, 03:00
by AF
This would be a great widget

Posted: 26 Jul 2007, 16:52
by Lindir The Green
+1

Posted: 26 Jul 2007, 20:49
by Kloot
Here's one: http://spring.unknown-files.net/file/32 ... Timer.lua/

Note that the Game table does not contain an entry indicating whether ghosted buildings are enabled, so you'll have to manage the deactivation part yourself. ;)

Posted: 26 Jul 2007, 21:40
by Snipawolf
What is ghosting...?

I never noticed it before, but I have seen the checkbox thingy..

Posted: 26 Jul 2007, 22:54
by Pendrokar
Gj on that. Although sad that it only shows seconds not minutes when passed 60 secs and so on. What I mean : 54s - later - 1.1 min. - much much later - 1 .43 h.

Posted: 26 Jul 2007, 23:08
by Kloot
A new version is up which does show time in h:m:s format: http://spring.unknown-files.net/file/32 ... er-v2.lua/

Posted: 27 Jul 2007, 00:25
by Neddie
Kloot, I may steal one of AF's cookies for you.

Posted: 27 Jul 2007, 00:41
by ZellSF
delete this

Posted: 27 Jul 2007, 02:43
by AF
*AF goes into a nosedive, reaches into hsi backpack, and pulls out very large jar of napalm, drops the jar and rises upwards to see neddia burning*

Cookie mine I tell you! MINE!

Posted: 27 Jul 2007, 11:21
by Pendrokar
Kloot wrote:A new version is up which does show time in h:m:s format: http://spring.unknown-files.net/file/32 ... er-v2.lua/
Good, but I tried to place 100 solars and gave em to the enemy bot and flew over with a scout and the timers are not sync with game time or real time you can see this when changing gamespeed!(There is no real need em to refresh every second every fifth second would be enough)
+ I think timers which are set on buildings with ghost units which are seen in radar are destroyed timer should disappear!

Posted: 27 Jul 2007, 15:07
by Kloot
http://spring.unknown-files.net/file/33 ... er-v3.lua/ ;)

Syncs the timers and updates them only every 5 secs, etc.

Posted: 02 Aug 2007, 08:14
by Linebacker
Downloaded.

Posted: 02 Aug 2007, 19:35
by Pendrokar
It shows up on ghosts even in replay too!! That is not needed and it even doesn"t count time too, cause spectator sees it!

Posted: 02 Aug 2007, 21:26
by Kloot
Open it in a text editor and change line 114 from

Code: Select all

if (ghost[4]) then
to

Code: Select all

if (ghost[4] and ghost[2] > 0) then
And there's no need to shout.

Posted: 03 Aug 2007, 10:45
by Pendrokar
Gotch ya! :wink: