Search found 8 matches
- 10 Dec 2015, 09:50
- Forum: SFS2X Questions
- Topic: Matching users and working with threads
- Replies: 5
- Views: 6086
Re: Matching users and working with threads
Let me try to explain it to you with below example: Imagine that player clicks 'Play' button in Menu screen. Afterwards, he will see a MatchMaking screen that will join him to lobby room. Then, MatchMaking screen will present 'Waiting for a game...' text and a 'Cancel' button. Server, periodically, ...
- 10 Dec 2015, 08:42
- Forum: SFS2X Questions
- Topic: Matching users and working with threads
- Replies: 5
- Views: 6086
Re: Matching users and working with threads
You just need to call JoinRoom and the client will be auto-removed from the previous Room, while joined in the new one. If the player has already left in the meantime, nothing bad will happen and the User will joined in the game Room anyways. Yeah, but imagine that user "leave" occurs bec...
- 09 Dec 2015, 13:44
- Forum: SFS2X Questions
- Topic: Matching users and working with threads
- Replies: 5
- Views: 6086
Matching users and working with threads
Hi, I was reading Game API docs and wonder how to use Match Expressions and avoid multi-threading problems. Let assume that players joins LobbyRoom and MatchMaking task periodically matches them and moves them to game rooms. Such task could look like this: List<User> matchingUsers = sfsApi.findUsers...
- 02 Oct 2015, 11:25
- Forum: SFS2X Questions
- Topic: Order of ObjectMessageRequests
- Replies: 5
- Views: 5904
Re: Order of ObjectMessageRequests
This depends on how your game works and if it requires absolutely sequential execution or not. The vast majority either doesn't or it is resilient to minor changes of order. Ok. I don't know how to be "resilient to order changes" yet, but at least now I have some idea how to approach this...
- 02 Oct 2015, 07:44
- Forum: SFS2X Questions
- Topic: Order of ObjectMessageRequests
- Replies: 5
- Views: 5904
Re: Order of ObjectMessageRequests
Hi, Is it true that the order of object messages may not be preserved ? Yes. The default protocol used by SmartFox is TCP/IP, which guarantees order of delivery. Ehmm ? :? I'm interpreting your answer as "yes it may not be preserved; yes it is preserved because TCP/IP guarantees this"... ...
- 30 Sep 2015, 09:41
- Forum: SFS2X Questions
- Topic: Order of ObjectMessageRequests
- Replies: 5
- Views: 5904
Order of ObjectMessageRequests
Hi, Is it true that the order of object messages may not be preserved ? Let's assume that userA sends msg1 and msg2 one after another to userB. As far as I know server receives them both in order (because of TCP order guarantee), but then sends them to two separate worker threads for processing. And...
- 02 Jun 2015, 07:32
- Forum: SFS2X iPhone / iPad / OSX API
- Topic: [BUG] iOS SDK classes are missing prefixes
- Replies: 3
- Views: 9974
Re: [BUG] iOS SDK classes are missing prefixes
Yes, I understand, but at the same time SmartFox is a blocker that prevents other libraries from being used. In my opinion it is a bug that needs to be fixed. I have a 3rd party lib that also defines Data class and I don't see any way to overcome this problem manually. Xcode compiler treat it as a d...
- 28 May 2015, 07:55
- Forum: SFS2X iPhone / iPad / OSX API
- Topic: [BUG] iOS SDK classes are missing prefixes
- Replies: 3
- Views: 9974
[BUG] iOS SDK classes are missing prefixes
Hi,
Most SmartFox classes in iOS SDK doesn't have any prefix.
Why ?
It is so essential in obj-c libraries...
I've just encountered another SDK with Data class and can't use it.
Can you add prefixes to all your SDK classes?
Most SmartFox classes in iOS SDK doesn't have any prefix.
Why ?
It is so essential in obj-c libraries...
I've just encountered another SDK with Data class and can't use it.
Can you add prefixes to all your SDK classes?