Wintermute Engine > Scripts, plugins, utilities, goodies

Steam plugin

<< < (6/6)

HanaIndiana:
Thanks Dan!!

hubertMichael:
Hello,

I have a problem with this plugin. I've copied wme_steam.dll and steam_api.dll to WME DevKit folder. At the begining of game.script I added line
--- Code: ---global g_Steam = new SteamAPI();
--- End code ---
in base.script I have
--- Code: ---global a_ship_escape;
--- End code ---
and in my scene.init script where I want to unlock achievment I have:
--- Code: ---if(a_ship_escape == null)
{
g_Steam.SetAchievement("a_ship_escape");
a_ship_escape = true;
}
--- End code ---

Problem is that I can't compile my game because I got error:
Method is called for 'g_Steam' which is not defined
Error applying filter to file [my scene.ini path here]

In project settings/plugins I turned on wme_steam.dll

I really need a help


PROBLEM SOLVED

I have forgot to initialize "global g_Steam;" at my scene.init :D

Navigation

[0] Message Index

[*] Previous page

Go to full version