(Sorry I should have added that this is for Tier 2 in the title.)
I thought it was easy to add the steam API to AGK's windows 2015 32bit template.
1> Make sure Steam is running and you are logged into the account where you paid your Product Submission Fee.
2> Download the steam SDK and extract it into your template folder. It should add a folder called "sdk".
3> Open Template's Program Properties and Add These Settings:
in "CC++/General/Additional Include Directories" add: sdk\public\steam
in "Linker/General/Additional Library Directories" add: sdk\redistributable_bin
in "Linker/Input/Additional Dependencies" add: steam_api.lib
4>Add "steam_api.dll" in the template directory. It is located in "sdk\redistributable_bin"
5>Create a text file called "steam_appid.txt" and type your app id number. Save this file and place it in the directory that will contain the compiled .exe file.
6>Edit template.c to the following: (this will test steam by displaying your username and id)
// Includes
#include "template.h"
#include "steam_api.h"
#include <string>
// Namespace
using namespace AGK;
using namespace std;
app App;
bool bResult = false;
void app::Begin(void)
{
agk::SetVirtualResolution (1024, 768);
agk::SetClearColor( 151,170,204 ); // light blue
agk::SetSyncRate(60,0);
agk::SetScissor(0,0,0,0);
bResult = SteamAPI_Init();
}
int app::Loop (void)
{
if (bResult)
{
agk::Print("Success...");
string sSteamName = SteamFriends()->GetPersonaName();
CSteamID steamId = SteamUser()->GetSteamID();
int iSteamID = steamId.GetAccountID();
agk::Print(sSteamName.c_str());
agk::Print(iSteamID);
}
else agk::Print("Failed...");
agk::Sync();
return 0; // return 1 to close app
}
void app::End (void)
{
SteamAPI_Shutdown();
}