What happened to Callin 'widget:GameProgress'?

What happened to Callin 'widget:GameProgress'?

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

Moderator: Moderators

Post Reply
LEDZ
Posts: 66
Joined: 27 Jun 2011, 13:43

What happened to Callin 'widget:GameProgress'?

Post 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?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: What happened to Callin 'widget:GameProgress'?

Post 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.)
LEDZ
Posts: 66
Joined: 27 Jun 2011, 13:43

Re: What happened to Callin 'widget:GameProgress'?

Post 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
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: What happened to Callin 'widget:GameProgress'?

Post 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.
LEDZ
Posts: 66
Joined: 27 Jun 2011, 13:43

Re: What happened to Callin 'widget:GameProgress'?

Post 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!
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: What happened to Callin 'widget:GameProgress'?

Post by Silentwings »

No problem :)
Post Reply

Return to “Lua Scripts”