Page 1 of 1
What happened to Callin 'widget:GameProgress'?
Posted: 04 Jul 2014, 00:55
by LEDZ
I had a working widget that told you what the game's live time was whilst you were loading to catch up (joined late as spectator or rejoined after crash perhaps).
It simply used GameProgress to retrieve the server's current frame and used that:
This Lua Callin seems to have been removed now.
Anyone have any info?
Or can suggest an alternative?
Re: What happened to Callin 'widget:GameProgress'?
Posted: 04 Jul 2014, 01:12
by Silentwings
Seems to have been removed
What has led you to think that? (It hasn't been removed, but note
http://springrts.com/mantis/view.php?id=4413.)
Re: What happened to Callin 'widget:GameProgress'?
Posted: 04 Jul 2014, 01:28
by LEDZ
I couldn't find it in any of the wiki documentation. I believe it was there once upon a time.
I just double-checked; GameProgress is not being called when I have rejoined a game in progress...
Here is small portion of code, similar to the example in the bug-tracker:
Code: Select all
function widget:GameProgress(serverFrameNum)
gameLiveFrame = serverFrameNum
Spring.Echo("serverFrameNum: "..serverFrameNum)
end
Re: What happened to Callin 'widget:GameProgress'?
Posted: 04 Jul 2014, 01:29
by Silentwings
So you can see from mantis that the bug is fixed, and you should use latest engine (springrts.com/dl/buildbot/default) to test GameProgress.
Re: What happened to Callin 'widget:GameProgress'?
Posted: 04 Jul 2014, 01:34
by LEDZ
Ohhhhhh!
I'm so sorry Silentwings. I looked at mantis and saw 98.0 as the current version (forgot that current is 96.0).
Thank you for your help!
Re: What happened to Callin 'widget:GameProgress'?
Posted: 04 Jul 2014, 05:14
by Silentwings
No problem :)