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)
I tryed to get the viking demo working but no success !!!


the AppWarp service is not working even on the viking demo from github ???

here is the Error any idea please ?
 

NullReferenceException: Object reference not set to an instance of an object
com.shephertz.app42.gaming.multiplayer.client.WarpClient.initUDP ()
AssemblyCSharp.Listener.onConnectDone (com.shephertz.app42.gaming.multiplayer.client.events.ConnectEvent eventObj) (at Assets/appwarp/Listener.cs:50)
com.shephertz.app42.gaming.multiplayer.client.WarpClient.fireOnConnectEvent (Byte code)
com.shephertz.app42.gaming.multiplayer.client.WarpClient+<execute>d__3.MoveNext ()
com.shephertz.app42.gaming.multiplayer.client.WarpClient+<WaitForRequest>d__0.MoveNext ()

Kindly
Mooldi
i get  onConnectDone : 5 i belive it means this byte CONNECTION_ERR = 5;  

Please help
Yes! 5 is the connection error. Have you updated API key and Secret Key correctly?
yap that's not the problem i got this errors on testing (key and secret are fines
here is the Error any idea please ?
 

NullReferenceException: Object reference not set to an instance of an object
com.shephertz.app42.gaming.multiplayer.client.WarpClient.initUDP ()
AssemblyCSharp.Listener.onConnectDone (com.shephertz.app42.gaming.multiplayer.client.events.ConnectEvent eventObj) (at Assets/appwarp/Listener.cs:50)
com.shephertz.app42.gaming.multiplayer.client.WarpClient.fireOnConnectEvent (Byte code)
com.shephertz.app42.gaming.multiplayer.client.WarpClient+<execute>d__3.MoveNext ()
com.shephertz.app42.gaming.multiplayer.client.WarpClient+<WaitForRequest>d__0.MoveNext ()

Kindly
Mooldi
Can you send me your project at support@shephertz.com I will need to debug it to see what is causing NullReferenceException. If you don't want to share your full project you can create a new project with just AppWarp code and send it to us.
sure i'll do that, just please when could i get an answer ?
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
...