Page 1 of 1

import com.smartfoxserver.v2.util.JSONUtil; Spacewars example

Posted: 12 Sep 2016, 01:32
by Trixer
Im trying to work off the space wars example and start customizing the server extension. The issue is that it seems like the json utility was taken out of a recent version of the api?

Is there anyway I can get this utility back or do you guys have a better way of doing this now?

Re: import com.smartfoxserver.v2.util.JSONUtil; Spacewars example

Posted: 12 Sep 2016, 07:56
by Bax
What version of SFS2X are you using?

Re: import com.smartfoxserver.v2.util.JSONUtil; Spacewars example

Posted: 12 Sep 2016, 22:51
by Trixer
Bax wrote:What version of SFS2X are you using?



The newest one. What version is the example targeted in? I felt like it was a versioning issue but I couldnt figure out which one the spacewars example was built on.


Its the server side api and I cant seem to find where to even download other versions!


*Edit*
In case you met this.. I am using the community edition.

Re: import com.smartfoxserver.v2.util.JSONUtil; Spacewars example

Posted: 12 Sep 2016, 23:14
by Trixer
I patched and now have the correct version! Thanks!

Re: import com.smartfoxserver.v2.util.JSONUtil; Spacewars example

Posted: 13 Sep 2016, 07:04
by Bax
The latest version of the SpaceWar example is available in the Flash and Unity 5 examples packs on this page:
http://www.smartfoxserver.com/download/sfs2x#p=examples

Using the latest version of SFS2X is always recommended; the latest patch is available here:
http://www.smartfoxserver.com/download/sfs2x#p=updates