The imported type `SimpleJSON.JSON' is defined multiple times

0 votes

Not sure why I'm getting this error, just started playing around with app42 warp and can't even get it so there's no errors , I took this code right from the sample and not sure why I'm getting an error.

 

public void onChatReceived (ChatEvent eventObj)
        {
            Log(eventObj.getSender() + " sended " + eventObj.getMessage());
            SimpleJSON.JSONNode msg =  SimpleJSON.JSON.Parse(eventObj.getMessage());
            
            //msg[0
            if(eventObj.getSender() != appwarp.username)
            {
                appwarp.movePlayer(msg["x"].AsFloat,msg["y"].AsFloat,msg["z"].AsFloat);
                //Log(msg["x"].ToString()+" "+msg["y"].ToString()+" "+msg["z"].ToString());
            }
        }

 

also getting the error 

 Cannot implicitly convert type `SimpleJSON.JObject' to `SimpleJSON.JSONNode'

asked Mar 22, 2014 in AppWarp by JoeCrill (25 points)

1 Answer

0 votes
Hi - can you tell us which sample is this?

This error was there in our older SDK versions as the JSON name clashed when using both App42 and AppWarp assets in the same unity project.

I recommend you try out the Viking Demo sample described in the following post

http://blogs.shephertz.com/2013/09/27/multiplayer-unity-viking-demo-with-appwarp-2/
answered Mar 22, 2014 by dhruvc (1,099 points)
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
...