Code: Select all
function widget:Initialize()
Spring.Echo ("game id:" .. tostring(Game.gameID) )
end
game id: 994b01c0833aee69ad13f3
it only shows
game id:
Without the tostring it doesnt work either.
Lua noob mistake?
Game.version works.
Moderator: Moderators
Code: Select all
function widget:Initialize()
Spring.Echo ("game id:" .. tostring(Game.gameID) )
end
Game.gameID still not working, its empty string AFTER start of the game... in frame 10 or later, too.SirMaverick wrote:FIXME -- loaded too early - not set yet
Code: Select all
function widget:AddConsoleLine(msg, priority)
if (string.find (msg, "GameID:") ~= nil) then
game_id = string.sub (msg, 9) -- "GameID: xxxxxxx"