Search found 38 matches

by ganquan
25 Jul 2015, 12:07
Forum: SFS2X Questions
Topic: User leave room in one minute
Replies: 1
Views: 621

User leave room in one minute

Hi, I create a MMORoom in client, and also create 3 NPC in the room. And I send request to server to update NPC's UserVariable every 100ms. And also call EnableLagMonitor (true) at client. But after 1 minute when room created, I was kicked out of the room by server, the log is below: 19:49:02,900 IN...
by ganquan
21 Jul 2015, 14:53
Forum: SFS2X Questions
Topic: How to get server ip on server side
Replies: 1
Views: 478

How to get server ip on server side

Hi
how to get the server ip and port in room extension?
by ganquan
21 Jul 2015, 08:56
Forum: SFS2X Questions
Topic: Looking for a server communication example
Replies: 15
Views: 2979

Re: Looking for a server communication example

I try to use client API in server extension, try to new SmartFox when server is ready: @Override public void init() { addEventHandler( SFSEventType.SERVER_READY , OnServerReadyHandler.class ); } public void initSmartFoxClient( ) { mSfsClient = new SmartFox( true ); } but i got an error: 16:45:27,644...
by ganquan
20 Jul 2015, 08:46
Forum: SFS2X Questions
Topic: Looking for a server communication example
Replies: 15
Views: 2979

Re: Looking for a server communication example

I just want to separate the lobby and games into different servers, and transfer user info between them. I'm not familiar with socket-based communication, so if smartfox client API works on server side, that would be a quick way for me. And, about cluster multiple SFS2X, is there a possible to relea...
by ganquan
19 Jul 2015, 09:26
Forum: SFS2X Questions
Topic: Looking for a server communication example
Replies: 15
Views: 2979

Re: Looking for a server communication example

Flying_Banana wrote:I am also interested in a quick way for different smart fox servers to communicate with each other. Connecting as a client is a little messy for me with all the server and client api getting mixed up and all that...



Is connecting as a client work?
by ganquan
19 Jul 2015, 09:19
Forum: SFS2X Questions
Topic: NPC not show in MMO Demo
Replies: 9
Views: 1822

NPC not show in MMO Demo

Hi I download the mmo demo, and run the server and client, but in client, i not see any npc. And when 2 clients login, they do not see each other in client. Is there anything else need to set? server log is below: 17:09:08,450 INFO [SFSWorker:Sys:1] v2.SmartFoxServer - SmartFoxServer 2X (2.9.0) READ...
by ganquan
16 Jul 2015, 08:41
Forum: SFS2X Questions
Topic: Looking for a server communication example
Replies: 15
Views: 2979

Looking for a server communication example

Hi
Is there an example to show how smartfox server talk to the other smarfox server?
by ganquan
15 Oct 2014, 10:17
Forum: SFS2X C++ API
Topic: Multiplatform cards game example available
Replies: 5
Views: 8723

Re: Multiplatform cards game example available

i make a VS 2012 project , update cocos2dx to 3.x, download link: http://pan.baidu.com/s/1mgxD4xy
there are bugs when gaming, but login, start game and send message works.
boost and smartfoxserver api not included, your should change the project setting to where your boost and smart fox api are.
by ganquan
16 Jul 2013, 12:35
Forum: SFS2X C++ API
Topic: CONNECTION_LOST is never triggered
Replies: 11
Views: 4040

Re: CONNECTION_LOST is never triggered

i add log in SmartFox::EnquenueEvent , print the evt->ToString. when disconnect, EnquenueEvent receive "connectionLost [ null]" twice. after click the reconnect, receive nothing, but i try new mSmartFox and add event listener again after connect lost, it can receive the next connect callba...
by ganquan
16 Jul 2013, 10:11
Forum: SFS2X C++ API
Topic: CONNECTION_LOST is never triggered
Replies: 11
Views: 4040

Re: CONNECTION_LOST is never triggered

the first time click connect, the client will call mSmartFox->Connect, and get the OnSmartFoxConnection called. and the server log below: 2013 | 17:10:47,956 | INFO | main | smartfoxserver.v2.SmartFoxServer | SmartFoxServer 2X (2.0.1) READY! 2013 | 17:10:57,372 | INFO | SocketReader | bitswarm.core....
by ganquan
14 Jun 2013, 09:35
Forum: SFS2X C++ API
Topic: 0.9.6 compile erro on IOS
Replies: 1
Views: 1497

0.9.6 compile erro on IOS

i got an link error when compile 0.9.6 on IOS Undefined symbols for architecture i386: "Sfs2X::Bitswarm::BBox::BBClient::SEP", referenced from: Sfs2X::Bitswarm::BBox::BBClient::EncodeRequest(boost::shared_ptr<std::string>, boost::shared_ptr<void>) in BBClient.o ld: symbol(s) not found for ...
by ganquan
11 May 2013, 06:17
Forum: SFS2X C++ API
Topic: Is there a event for connect time out?
Replies: 1
Views: 1274

Is there a event for connect time out?

i use a wrong ip to connect the server, and i found it after a long time waiting. I add listener for CONNECTION_LOST,DISCONNECT and CONNECTION, i didn't receive any event.

is there a event to handle this?
by ganquan
10 May 2013, 15:39
Forum: SFS2X C++ API
Topic: boost::lexical_cast question
Replies: 1
Views: 1089

boost::lexical_cast question

i compile game with 0.9.5 for android, and i get error in boost.
i don't know why, but the error is cause by boost::lexical_cast.
so i comment all the #include <boost/lexical_cast.hpp> in api and use atof instead, the compile success and the game work.
by ganquan
10 May 2013, 15:33
Forum: SFS2X C++ API
Topic: ConfigLoader::LoadConfig can not read the file in apk
Replies: 6
Views: 4253

ConfigLoader::LoadConfig can not read the file in apk

i try to run my cocos2dx game with api 0.9.5 on android, which work fine on iOS and win7, but it crash on android. and i found, in ConfigLoader::LoadConfig, using ifstream to open read file. my sfs-config.xml is in the assets, which pack into apk with other resource, and ifstream can not read the fi...

Go to advanced search