Search found 32 matches

by truongps
12 Jul 2016, 09:24
Forum: SFS2X Questions
Topic: Error when many client bot do login.
Replies: 6
Views: 8666

Re: Error when many client bot do login.

All clients is the same code. 80 clients connect to server. But 65 clients connect OK. What happen to other clients when I run 80 clients at the same time?
by truongps
12 Jul 2016, 00:38
Forum: SFS2X Questions
Topic: Error when many client bot do login.
Replies: 6
Views: 8666

Error when many client bot do login.

Hi, I have a server. And I create 80 clients (write in Java) connect to server, login, join game room and play game. I have 80 clients but I see 65 current users on Dashboard. Please give me a hand. When I run client I meet 2 errors: 558 [Thread-175] ERROR sfs2x.client.core.sockets.TCPSocketLayer - ...
by truongps
10 Jul 2016, 00:00
Forum: SFS2X Questions
Topic: How do I insert ignore duplicate-key?
Replies: 1
Views: 3445

How do I insert ignore duplicate-key?

Hi, I already have 10 user in DB with username: test1, test2, ... test10 After, I execute auto insert test users (test0, test1, ... test100) to DB with: Connection conn = dbManager.getConnection(); String sqlString = "INSERT IGNORE INTO `" + TABLE_NAME + "`"; sqlString += " ...
by truongps
04 Jul 2016, 22:53
Forum: SFS2X Questions
Topic: Cannot receive message from server when change Unity scene.
Replies: 1
Views: 3256

Cannot receive message from server when change Unity scene.

Hi, On my server, in room extension I handle SFSEventType.USER_JOIN_ROOM. In this event: 1. Update UserVariables 2. Send a message A to client. When Unity client received SFSEvent.ROOM_JOIN: 1. I change the scene to play game. 2. sfs.RemoveAllEventListeners (); In new scene I add: sfs.AddEventListen...
by truongps
20 Jun 2016, 23:32
Forum: SFS2X Questions
Topic: How to log one match one log file for debug game play?
Replies: 1
Views: 3471

How to log one match one log file for debug game play?

Hi,

My game have a lot game rooms. And I want to log one match of a room on a file for debug game play. How can I do this? Can I use log4j or I need to do this by write file?

Thanks.
by truongps
09 Jun 2016, 23:03
Forum: SFS2X Questions
Topic: Null zone instance when enter a room.
Replies: 3
Views: 4784

Re: Null zone instance when enter a room.

Hi Lapo,
So, I cannot save an extension to use for all other extension? I only can save a model object to use for all extension? Is it right?
by truongps
09 Jun 2016, 00:01
Forum: SFS2X Questions
Topic: Null zone instance when enter a room.
Replies: 3
Views: 4784

Null zone instance when enter a room.

Hi, I meet a problem with null pointer. I have a ZoneExtension like public static SFSExtension instance; @Override public void init() { trace(TAG + " - init " + BUILD_VERSION); instance = this; } And I create a RoomExtension. When I join the RoomExtension, I call ZoneExtension.instance and...
by truongps
06 Jun 2016, 00:09
Forum: SFS2X Questions
Topic: How can my server do join a room for a client?
Replies: 1
Views: 3416

How can my server do join a room for a client?

Hi,
My game have a lot game rooms. But I don't want my user select room to play. When my user tap on game, client send a message to server. My server detect the money of the user, and put the user to a suitable room. How can I do it?

Thanks.
by truongps
23 May 2016, 04:46
Forum: SFS2X Questions
Topic: Custom login with facebook.
Replies: 2
Views: 4925

Custom login with facebook.

Hi, I use custom Facebook login. This flow: Step 1. Client get access token from Facebook app. Step 2. Send token to server. Step 3. Server call Facebook API to check the token. Step4. Server check OK. Send login OK to client. Now, It run OK. But I want to ask about step 3. I should call Facebook AP...
by truongps
12 May 2016, 16:38
Forum: SFS2X Questions
Topic: sfs2x on nitrous free account
Replies: 7
Views: 9523

Re: sfs2x on nitrous free account

Hi,
I run ./sfs2x-service start
After I run ./sfs2x-service stop
And I run ./sfs2x.sh

But this bug still available.
by truongps
12 May 2016, 16:26
Forum: SFS2X Questions
Topic: sfs2x on nitrous free account
Replies: 7
Views: 9523

Re: sfs2x on nitrous free account

Hi, I have the same problem. But I want to use ./sfs2x.sh for adding debug info. How can I fix it? 23:29:47,733 INFO [SFSWorker:Sys:1] v2.SmartFoxServer - SmartFoxServer 2X (2.9.0) READY! java.io.IOException: Cannot read file: modules/npn/npn-1.7.0_60.mod at org.eclipse.jetty.start.Modules.registerM...
by truongps
30 Oct 2015, 16:40
Forum: SFS2X Java / Android API
Topic: Activate code in Sign Up Assistant component
Replies: 8
Views: 13333

Re: Activate code in Sign Up Assistant component

Hi, I think It must have 4 or 6 on mobile game. But now, SFS2x don't support. How can I custom this to work with 6 number?
by truongps
23 Oct 2015, 16:13
Forum: SFS2X Questions
Topic: LoginAssistantComponent for guest user
Replies: 3
Views: 4840

Re: LoginAssistantComponent for guest user

Thanks for your support. The best solution is to auto-assign a guest username and password to users that require it . Do you mean I auto assign a username and password in client side? I want make it on server side. Can you give me a start point to do that? Now, I am trying to use this.addEventHandle...
by truongps
22 Oct 2015, 18:02
Forum: SFS2X Questions
Topic: LoginAssistantComponent for guest user
Replies: 3
Views: 4840

LoginAssistantComponent for guest user

Hello, I config LoginAssistantComponent. But It don't call public void execute(LoginData loginData) when I login with empty username and empty password. How can I config it to work with guest account. Please, give me a hand. Thanks. lac = new LoginAssistantComponent(this); lac.getConfig().preProcess...

Go to advanced search