Starting With SamartFoxServer

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

shravan.yadav
Posts: 15
Joined: 18 Jun 2012, 07:56

Starting With SamartFoxServer

Postby shravan.yadav » 18 Jun 2012, 08:05

Hi All,

I want to port one of my game with SmartFoxServer,So that I It would be available for android as wel as device to play. What should I do for the same.

I am new so please help me .

Thanks
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Starting With SamartFoxServer

Postby rjgtav » 18 Jun 2012, 19:45

Hello.
I suggest you to start by reading the documentation at http://docs2x.smartfoxserver.com/, to better understand what is SFS2X and how does it work. There are also some Android Examples, which you ay check for better understand how to integrate your project with SFS2X.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
shravan.yadav
Posts: 15
Joined: 18 Jun 2012, 07:56

Re: Starting With SamartFoxServer

Postby shravan.yadav » 19 Jun 2012, 06:53

Thanks For reply,

I reading doc .My question is only that if i have some game and i want it as multiplayer game through sfs2x could it possible ? I want to my few game that would be on server and user can play it as multiplayer game ,Ialso want to creat the data base for the player. Could itpossible ?

Thanks
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Starting With SamartFoxServer

Postby rjgtav » 19 Jun 2012, 07:48

Yes, as I like to say, everything is possible. Now depending on your game's complexity, the harder will be the integration with a multiplayer environment (regardless of which multiplayer server you use).
SFS2X also supports multiple databases, you'll find more information about it on the documentation.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
shravan.yadav
Posts: 15
Joined: 18 Jun 2012, 07:56

Re: Starting With SamartFoxServer

Postby shravan.yadav » 19 Jun 2012, 10:46

Hi Rjgtav,

I am trying to run the android connector example which is given .But i am getting "org.jboss.netty.channel.ChannelException: Failed to open a socket" exceptio when connect to sfs2x server. Can u help me.
Code is here :

SmartFox sfsClient;
private void connectToServer(final String ip, final int port)
{


showDialog(DIALOG_CONNECTING_ID);


final SmartFox sfs = sfsClient;
new Thread() {
@Override
public void run() {
try{
sfs .connect(ip, port);
}catch(Exception e){
Log.v("Shravan Tag exception", e.toString());
}

}
}.start();
}

Thanks
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Starting With SamartFoxServer

Postby rjgtav » 19 Jun 2012, 22:25

Can you show the exact Exception you're getting? Plus the stack trace?
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
shravan.yadav
Posts: 15
Joined: 18 Jun 2012, 07:56

Re: Starting With SamartFoxServer

Postby shravan.yadav » 20 Jun 2012, 05:02

exception=>org.jboss.netty.channel.ChannelException: Failed to open a socket.
exception.getcause()==> java.net.SocketException: socket failed: EACCES (Permission denied)
getmessage()==> failed to open socket

getStaktrace()==>[ Ljava.lang.StackTraceElement;41307160
shravan.yadav
Posts: 15
Joined: 18 Jun 2012, 07:56

Re: Starting With SamartFoxServer

Postby shravan.yadav » 20 Jun 2012, 10:44

Hi,

Now this problem is shotout . user permission was required in manifest file .But now socketlayer error is coming.I am trying to run simple connecter exampl ewhich is given by sfs2x site.

Thanks
User avatar
Lapo
Site Admin
Posts: 21639
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Starting With SamartFoxServer

Postby Lapo » 26 Jun 2012, 09:47

Again please post the full details of the error.
Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 30 guests