Oldes / FRESteamWorks

SteamWorks Flash runtime extension
39 stars 8 forks source link

Errors when calling methods on ANE #1

Open sasmaster opened 12 years ago

sasmaster commented 12 years ago

Hi.First thanks for the great work you have done here.I downloaded your source recompiled it to DLL using VS2012 with VS10 compiler.Packed it into ANE according to the rules.However,once I run the demo project I am getting this : Error #3500: The extension context does not have a method with the name AIRSteam_Init.

I can't understand why it happens.Added __declspec(dllexport) to all the AIR related method you exposed and again ,it seems like the actionscript side can't find the methods on dll.Have you experienced anything familiar ?

Thanks.

blufiro commented 11 years ago

I'm also having this issue. I did a clean simple ANE and dll on my own in Windows and it works, so I think it has to do with the project set up or placement of steam_api.dll that is the problem.

@sasmaster you don't need to expose any of the AIR related methods, except the Initializer and Finalizer functions. AIR uses strings to determine which functions to call.

Has anyone managed to solve this issue?

blufiro commented 11 years ago

Ok I've managed to solve this issue on my end. The problem I had was that I needed to copy steam_api.dll to the Air Debug Launcher folder, or Export Release Build. Basically the ANE dll could not find and load steam_api.dll. More info here: http://stackoverflow.com/questions/9823504/how-to-use-external-dll-in-air-native-extension

fred1024 commented 9 years ago

Hello, I got the Exception fault: ArgumentError: Error #3500: The extension context does not have a method with the name AIRSteam_Init is there a clear guideline on what to do (with a chance of not recompiling the ane provided) ?, I got FDT , I packaged the ane and even the dlls with my apps copied dlls in adl directory. Ii doesn't seem to help.. don't know what to try next

blufiro commented 9 years ago

Have you checked out Ventero's fork? His project is more recent than this one. https://github.com/Ventero/FRESteamWorks I've seen this error before but I've not touched this for such a long time, I don't remember anything about it, sorry.