Page 1 of 1

GameID() --> "gameID" - is it really working?

Posted: 12 Nov 2012, 23:37
by PepeAmpere
I would expect something in log file when using this:

Code: Select all

function widget:GameID(id)
    Spring.Echo("This is game ID: " .. id)
end
Am I doing something wrong or this is still not supported? (engine log says it is working since spring 89.0, but changelogs are strange fellows ;) )

Re: GameID() --> "gameID" - is it really working?

Posted: 12 Nov 2012, 23:59
by Licho
game id is not set at the start you must wait a bit until frame 1 or so.

Re: GameID() --> "gameID" - is it really working?

Posted: 13 Nov 2012, 00:02
by abma
https://github.com/spring/spring/blob/d ... g.txt#L220

->
https://github.com/spring/spring/commit ... c0d17d874e

seems to be a synced callin? afaik you need to add the callin to the gadgethandler, too.

Re: GameID() --> "gameID" - is it really working?

Posted: 13 Nov 2012, 00:55
by PepeAmpere
Licho wrote:game id is not set at the start you must wait a bit until frame 1 or so.
Its calling now (game action), not like before with old Game.gameID where (yes) it was needed to wait till first frames of game.