Search found 32 matches

by truongps
03 Jul 2017, 04:25
Forum: 2X Features Wish List
Topic: Update Private User Variables
Replies: 1
Views: 8949

Update Private User Variables

Hi SmartFox,

This variable maintain between client and server. It don't update/send to other client in the same room.

Can you add more type to support it.

Thank you.
by truongps
02 Nov 2016, 04:42
Forum: SFS2X Questions
Topic: How to server check player money in SFSEvent.SPECTATOR_TO_PLAYER?
Replies: 1
Views: 3864

How to server check player money in SFSEvent.SPECTATOR_TO_PLAYER?

Hi, My case is: 1. Client send SpectatorToPlayerRequest 2. Server handle SFSEvent.SPECTATOR_TO_PLAYER and check user money. If user not enough money, I throw exception: throw new SFSUserException("You don't have enough money to play game."); 3. Client don't receive SFSEvent.SPECTATOR_TO_PL...
by truongps
31 Oct 2016, 05:20
Forum: SFS2X Questions
Topic: Problem with creating game room on server side.
Replies: 3
Views: 6004

Re: Problem with creating game room on server side.

Hi, Thank you for your response. I have 2 Extension, Zone and Room. I listen on Room, and when the last user leave room, I don't receive SFSEventType.USER_LEAVE_ROOM. But, I can receive this event, when I put it in Zone extension. Now, I fix it by move SFSEventType.USER_LEAVE_ROOM to Zone extension....
by truongps
30 Oct 2016, 15:17
Forum: SFS2X Questions
Topic: Problem with creating game room on server side.
Replies: 3
Views: 6004

Problem with creating game room on server side.

Hi, I meet a problem with creating game room on server side. I cannot receive SFSEventType.USER_LEAVE_ROOM when I set roomSettings.setDynamic(true); What is the problem? I put all my code below. Please, give me a hand. Thank you. CreateRoomSettings roomSettings = new CreateRoomSettings(); roomSettin...
by truongps
27 Oct 2016, 20:05
Forum: SFS2X Questions
Topic: How can I user Datastax with Smartfox DBManager?
Replies: 1
Views: 3692

How can I user Datastax with Smartfox DBManager?

Hi,
I want to user Datastax with DBManager. Can I do this? And I need more details about it. Please give me a hand.

Thank you.
by truongps
04 Oct 2016, 10:24
Forum: SFS2X Questions
Topic: Client handle dropped messages.
Replies: 10
Views: 11371

Re: Client handle dropped messages.

Hi Lapo, thank you very much for your collaboration. This is a turn-based game (poker game) and it is always reproduced in the following steps: Step 1: start 90 client instances (actually they are bots) Step 2: 90 bots will connect to the smartfox server at the same time Step 3: they join rooms whic...
by truongps
04 Oct 2016, 04:34
Forum: SFS2X ActionScript 3 API
Topic: Sometimes Flash doesn't receive response from server.
Replies: 10
Views: 21388

Re: Sometimes Flash doesn't receive response from server.

Hi,

I meet the same log [SFS2X INFO] Data Read: Size > 1024, dump omitted. What happen when I see the log? Do Client discard this data?
by truongps
04 Oct 2016, 02:17
Forum: SFS2X Questions
Topic: Client handle dropped messages.
Replies: 10
Views: 11371

Re: Client handle dropped messages.

Hi Lapo, I don't know what happen! I assume it could be one of such circumstances: dropped message or wrong message order or Smartfox client doesn't push some messages to my handler. Please, take a look in my log and explain this case to me. requestJoinJumpRoom OnRoomJoin: 62235f12-52c7-40fe-a986-ed...
by truongps
03 Oct 2016, 15:36
Forum: SFS2X Questions
Topic: Client handle dropped messages.
Replies: 10
Views: 11371

Re: Client handle dropped messages.

Hi Lapo,
I don't use this tool again. I run the game on ios device. It crashed and I check the log like above.

I think it because message order like the post http://www.smartfoxserver.com/forums/vi ... hp?t=18115
by truongps
03 Oct 2016, 11:02
Forum: SFS2X Questions
Topic: Client handle dropped messages.
Replies: 10
Views: 11371

Re: Client handle dropped messages.

Hi Lapo, I give you some log for detail. requestJoinJumpRoom OnRoomJoin: 62235f12-52c7-40fe-a986-ed2e9f3501f1 with players: test67, test40, test6, test0, test70, test79, 0079e69c-3d17-4561-8b36-17081fa8a975, test59, OnUserEnterRoom: [User: test8, Id: 8, isMe: False], players: test67, test40, test6, ...
by truongps
03 Oct 2016, 10:38
Forum: SFS2X Questions
Topic: Client handle dropped messages.
Replies: 10
Views: 11371

Re: Client handle dropped messages.

Hi, I read an article on http://docs2x.smartfoxserver.com/ExamplesFlash/battlefarm . And I read "Handling slower connections" section. "In case the client can't keep up with the server message speed rate (e.g. after a network congestion) older messages are discarded to keep up with th...
by truongps
30 Sep 2016, 14:34
Forum: SFS2X Questions
Topic: Client handle dropped messages.
Replies: 10
Views: 11371

Client handle dropped messages.

Hi, - I'm trying SFS2X with my game. And now I'm testing it with slow network. I change network to bad with Network Link Conditioner. http://www.smartfoxserver.com/forums/download/file.php?mode=view&id=505 - And my game crash. It crashed because dropped messages. Case 1: When I join room to play...
by truongps
24 Sep 2016, 07:11
Forum: SFS2X Questions
Topic: How to scale my game to world?
Replies: 3
Views: 5469

How to scale my game to world?

Hi, I made a game like Poker, the game have many rooms and tours. I want to place my server games on many places like Singapore, American, ..., and all my user can play together. So, what is a good architecture to achieve this? Now, I'm writing the server with SFS2x and MySQL. Please give me some id...
by truongps
12 Jul 2016, 15:35
Forum: SFS2X Questions
Topic: Error when many client bot do login.
Replies: 6
Views: 8596

Re: Error when many client bot do login.

I run this code with 60 clients, It work OK without any error. Are there any setting around this?
by truongps
12 Jul 2016, 15:13
Forum: SFS2X Questions
Topic: Error when many client bot do login.
Replies: 6
Views: 8596

Re: Error when many client bot do login.

Here is bot code. After a Bot connect Ok, it will send login to server. public static void main(String[] args) { Random random = new Random(); int val = 0; BasicBot b = null; ArrayList<BotMain> botList = new ArrayList<>(); for (int i = 0; i < 80; i++) { val = random.nextInt(3); if (val == 0) { b = n...

Go to advanced search