Unable to connect to appwarp s2 server.

0 votes

I've installed the s2 server and the server is completely running on the LAN system 

screen1

Well, after creating the zone I am getting a zone number and then 

I am trying to communicate through Unity the same thing, but I am unable to establish the connection between s2 server and Unity. Here is the screenshot for better understanding, Can you guide me if I am having any wrong parameters ?

Unity Screenshot

---------------------------------------------- EDIT 1 -----------------------------------------------------

I am using these code from the Vikings Demo 

void Start () {
        WarpClient.initialize(appKey,ipAddress);
        listen = GetComponent<mainScriptListener>();
        WarpClient.GetInstance().AddConnectionRequestListener(listen);
        
        username = System.DateTime.UtcNow.Ticks.ToString();
        WarpClient.GetInstance().Connect(username"");
        Debug.Log("Connection Request");

}

and listener is having 

//ConnectionRequestListener
        public void onConnectDone(ConnectEvent eventObj)
        {
            if(eventObj.getResult() == 0)
            {
                WarpClient.GetInstance().SubscribeRoom(m_mainScript.roomid);
            }
            Log ("onConnectDone : " + eventObj.getResult());
            Debug.Log("onConnectDone : " + eventObj.getResult());
            
        }

And I am not getting the log statement onConnectDone. 

I've also checked with the dll its : AppWarpS2Unity.dll file

asked Mar 24, 2014 in AppWarpS2 by marine.modi (62 points)
edited Mar 24, 2014 by marine.modi

1 Answer

0 votes
 
Best answer
I guess you are trying to run AppWarpS2 Unity Viking Demo. Make sure you are using the desktop version not mobile version.

 

What exactly are you getting the error??? Please provide more details.

 

Also, trying using 127.0.0.1 as IP address and running the sample on same PC as server.
answered Mar 24, 2014 by Suyash Mohan (900 points)
selected Mar 24, 2014 by marine.modi
Thank you @Suyash for reply. I've added more content for understanding in EDIT 1 section of the Question.
Make sure, your both scripts are derived from MonoBehaviour. Most importantly also make sure both scripts are attached to same object.
I've attached both the scripts on same object. https://www.dropbox.com/s/k9hj0lekyxbp0m9/3.png image would show the same.
Are you calling update() function of warpclient. This is an essential method, without it you won't be getting any updates.

void Update()
{
        WarpClient.getInstance().Update();
}

Also, check if your getting handleAddUserRequest() on zone adapter in your server side code.
Ok. Got it working, as update function for WarpClient was not being Called. Thank you for your help.
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
...