Anyone know how to implement XFire...?

I thought that this would have been asked, but I was wrong I guess.

But anyways, I was just wondering how can you go about getting XFire in your game?

I know that their SDK was written in C++, and that they allow you to freely download and put in, but I know that this doesn't work.

Anyways, just wondering if anyone has tried?

If not, oh well, Later, Justin W.

By the way, this might help...

http://www.xfire.com/cms/xf_game_sdk/

Also, if you actually make a .unitypackage for me, so I can see it "implemented" than that'd be instant win. But yeah, even if it's untested. =).

First of all i like to mention that i don't have used xFire before but i finally got it working. GBStudios is right, you need to register your game / project at xFire before it's recognised by xFire.

I've copied the sample plugin from the Unity page and build a small C++ plugin for Unity. Actually it's just a wrapper dll for those functions the xFire SDK offers to you. I've packed the C++ project, a sample scene and a C# interface script into a zip and put it on a free file hoster. (btw. can you upload files in a better way to include them here in a post?) I used the UTF8 version of xFire to set the string data. I'm not sure if the ASCII or WideStr functions will work but the UTF8 works fine, even with special characters.

You can trick xFire by replacing a known game with your Unity-build. I used the minesweeper for testing ;)

Here is the project zipped and ready to use:

http://www14.zippyshare.com/v/11326820/file.html(file removed)

https://rapidshare.com/files/4113700512/xFire.zip
alternate mirror

If you have trouble implementing it just ask (but i'm not that frequently online, so plz be patient ;) )


And that's how it look's like: xFire test

Before you can use the SDK, your game has to be detected by Xfire. For more information on how to add support for your game in Xfire, please send a brief email describing your project & and your position with the team to:

gamesdev@xfire.com