Ventero / FRESteamWorks

SteamWorks API for AIR applications
Other
83 stars 27 forks source link

[solved] Readme.md appears to be incomplete #48

Open paupmachine opened 5 years ago

paupmachine commented 5 years ago

Note: I figured out the answer while typing this up, but I figured I'd keep the post here for posterity. I'm sure more people will encounter this issue.

I followed the steps in readme.md, but it doesn't appear to be the full instructions to use this API.

This is my setup: I use Windows 10 and compile my project using Adobe Animate (formerly Flash Professional). My compilation target is AIR 32.0.0.116 for Desktop. And I'm using Extended Desktop and application with runtime embedded. I placed the .ANE file (v0.7) somewhere in my project folder and in Animate's AS3 settings added the .ANE as a Native Extension. I wrote simple class that so far just calls the init() function on a FRESteamWorks object.

When I try to run the project now through Debug > Debug Movie > In AIR Debug Launcher (Desktop) I get the following error:

ArgumentError: Error #3500: The extension context does not have a method with the name AIRSteam_Init. at flash.external::ExtensionContext/_call() at flash.external::ExtensionContext/call() at com.amanitadesign.steam::FRESteamWorks/init() at src.managers::StatsAndAchievements()[D:\Creativity\OrmoGame\src\managers\StatsAndAchievements.as:21] at src::Main/initialize()[D:\Creativity\OrmoGame\src\Main.as:98] at src::Main()[D:\Creativity\OrmoGame\src\Main.as:65]

I had to place steam_api.dll in C:\Program Files\Adobe\Adobe Animate CC 2019\AIR32.0\bin to get rid of the error.

talbenarie commented 2 years ago

Thanks for writing the solution, helps a lot!