AppWarp interfering with FaceBook SDK for unity please help

0 votes

Hi,

I've migrated to this service due to the good reputation about the support services, after reading a little bit and watching some vid here i'm .

Well my problem is i'm trying to Connect to AppWarp service with 

WarpClient.initialize(warpkey, warpsecret,"54.xxx.xxx.xxx"); 

But no success i got the folowing error and i have no clue what's causing the problem, please help  !

I have to mention that i have the FB SDK initialized and fire an event that everything is done with the FB Service, then i call Connect which is the following 
 

public void Connect()
    {
        
        WarpClient.GetInstance().Connect(username);
        onConnect(true);
        Connected = true;
        
       
    }
and the error that i keep getting is the following :

NullReferenceException: Object reference not set to an instance of an object
App42.Connect () (at Assets/ArchitectureGame/Networking/App42.cs:79)
LoadingScreen.onFBConnectedHandler (Boolean isConnected) (at Assets/ArchitectureGame/Logic_Game/LoadingScreen.cs:62)
FBK.APICallback (.FBResult result) (at Assets/ArchitectureGame/Networking/FBK.cs:131)
Facebook.AsyncRequestString+<Start>c__Iterator0.MoveNext ()

Screenshot of the current error :


Regards
Mooldi


 

asked Jan 29, 2015 in AppWarp by Nouri Mouldi (15 points)
edited Jan 29, 2015 by Nouri Mouldi

1 Answer

0 votes
Hi Mooldi,

Thanks for giving our services a try. We will also try our best to give you as much support as we can.

Firstly you should not specify IP address directly. Instead use setGeo API to set the server location.

After calling Connect() method you are directly assuming that you have connected which is not true. AppWarp's all APIs are asynchronous. So when you call connect method, you will get the result in onConnectDone callback of ConnectionRequest Listener.

You need to define listeners that will contain callbacks for each method. Please read our getting started guide here http://appwarp.shephertz.com/game-development-center/unity3d-game-developers-home/unity3d-usage-guide/ and our sample walkthrough here http://blogs.shephertz.com/2013/09/27/multiplayer-unity-viking-demo-with-appwarp-2/

Thanks
answered Jan 29, 2015 by Suyash Mohan (900 points)
We will debug it as soon as possible. AppWarp Service and Unity SDK is working fine from our side. The issue might be because of inappropriate usage. Therefore we will need to see your code.
Hi! Is your problem solved?
Hi,

not really, i'm removing some of the dependencies to get the project ready and send it to you .

Thanks
I sent the project to support@shephertz.com i hope you guys can find the problem
Thanks Mouldi for sending us the project. I am looking into it
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...