blitzmax & steamworks [SOLVED]
BlitzMax Forums/BlitzMax Programming/blitzmax & steamworks [SOLVED]
| ||
| how to integrate blitzmax code with steamworks SDK.. my plan is just only use it to achievement feature thanks |
| ||
| Do you have a product to distribute on Steam? |
| ||
| @JoshK: yes i do, my game already passed steam greenlit |
| ||
| MadJack could help here a little. He's the creator of Tank Universal (in Blitz3D) and he's using some Steamish features like Achievements. May he's got some hints :-) Oh, and hello Board :-) |
| ||
You have to create a C++ DLL for BMX to interface with, but here's how I did it: void Steamworks::SetAchievement(const std::string& name)
{
steamuserstats->SetAchievement(name.c_str());
}
void Steamworks::IncrementAchievementProgress(const std::string& name)
{
int data;
if (steamuserstats->GetStat(name.c_str(), &data))
{
steamuserstats->SetStat(name.c_str(), data+1);
}
}I think you need to make some other calls for the achievements to sync up right away. I haven't figured those out quite yet. |
| ||
| thanks all for your answers :) i've found the solution from here |