Suggestion for Lua widget - Ghost timer.
Moderator: Moderators
Suggestion for Lua widget - Ghost timer.
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!!
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!!
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.
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.

A new version is up which does show time in h
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)Kloot wrote:A new version is up which does show time in hs format: http://spring.unknown-files.net/file/32 ... er-v2.lua/
+ I think timers which are set on buildings with ghost units which are seen in radar are destroyed timer should disappear!
http://spring.unknown-files.net/file/33 ... er-v3.lua/ 
Syncs the timers and updates them only every 5 secs, etc.

Syncs the timers and updates them only every 5 secs, etc.
Open it in a text editor and change line 114 from
to
And there's no need to shout.
Code: Select all
if (ghost[4]) then
Code: Select all
if (ghost[4] and ghost[2] > 0) then