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?
What happened to Callin 'widget:GameProgress'?
Moderator: Moderators
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: What happened to Callin 'widget:GameProgress'?
What has led you to think that? (It hasn't been removed, but note http://springrts.com/mantis/view.php?id=4413.)Seems to have been removed
Re: What happened to Callin 'widget:GameProgress'?
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:
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
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: What happened to Callin 'widget:GameProgress'?
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'?
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!
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!
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: What happened to Callin 'widget:GameProgress'?
No problem :)