Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello!! Thank you and nice work on your plugin, however I seem to have a problem.

I am trying to use plugin command 'Get Steam ID' which wants me to assign a variable to store the data.

However, when the plugin command executes, it fills it with [object Object]

When I try doing the script (SteamworksAPIManager.getSteamId) the same thing happens.

When I use console.log() it seems to report a lot of data, however I just want to grab the SteamID if possible.

Hi, this is the part where I wrote the wrong code and put the following in line 3066

SteamworksAPIManager.getSteamId = function (variablesId) {
    if (!this.isSteamClientRun()) { return false; }
    if (variablesId) {
        $gameVariables.setValue(Number(variablesId),
this.greenworksCore.getSteamId());
    }
    return this.greenworksCore.getSteamId(); }
}

Change to

SteamworksAPIManager.getSteamId = function (variablesId) {
    if (!this.isSteamClientRun()) { return false; }
    var steamInfo = JSON.stringify(this.greenworksCore.getSteamId());
    if (variablesId) {
        $gameVariables.setValue(Number(variablesId), JSON.parse(steamInfo).steamId);
    }
    return JSON.parse(steamInfo).steamId; }
}; }

Ah wonderful, excellent work on this! 

I am excited for Steamworks PLUS! o7