Search found 82 matches

by rav
24 Feb 2011, 12:00
Forum: SFS2X Questions
Topic: player's id generator
Replies: 6
Views: 10394

You can't change the "user id". This is assigned by SmartFoxServer. The "player id" is something different as tchen pointed out. Please check the doc. On server I operate with database ids, so what is the best way to access User? May be keep users names in Map<userDbId, userName...
by rav
24 Feb 2011, 08:06
Forum: SFS2X Questions
Topic: player's id generator
Replies: 6
Views: 10394

How to change id which is using in getUserById(int userId) (in SFSApi, Zone, Room)?
Should I implement IPlayerIdGenerator and add this class in admin tool?
by rav
24 Feb 2011, 07:35
Forum: SFS2X Questions
Topic: who and how keeps users in SFS2X?
Replies: 2
Views: 4912

who and how keeps users in SFS2X?

I just interesting in where and how list of users is kept. I suppose UserManager keeps entire list of users. Is it right? Do you use Map, List, Array or something else? Seems you don't use Map (or use several Maps) because there are a couple of methods to get User(in IUserManager, api, zone, room) v...
by rav
17 Feb 2011, 13:41
Forum: SFS2X Questions
Topic: serialization hidden problems
Replies: 10
Views: 10917

Can you provide the details of the error and a way to reproduce it?. AS: public class PersonInfo implements SerializableSFSType { private var _birthdate :Number; public function PersonInfo():void { } public function get birthdate():Number { return _birthdate; ...
by rav
15 Feb 2011, 12:33
Forum: SFS2X Questions
Topic: serialization of Map<Object, Object>
Replies: 10
Views: 13214

Lapo wrote:SFSObject supports only Strings for keys.

Lapo, will SFS2x support other types for Map? may be in the future
by rav
15 Feb 2011, 12:09
Forum: SFS2X Questions
Topic: serialization hidden problems
Replies: 10
Views: 10917

serialization hidden problems

Is it true that serialization of some types works only in one way?
F.e. I've found that Java Long->AS3 Number works well, but Number->Long serialization causes on server side some kind of exception while reading socket
by rav
13 Feb 2011, 17:49
Forum: SFS2X Questions
Topic: serialization of Map<Object, Object>
Replies: 10
Views: 13214

Honestly though, when you get to the point of worrying about key encoding on a hashmap sent over a network, you're sending too much over the wire. And what is yours suggestion of sending Map<Integer, Object>? This collection was chosen because on server I permanently operate with database keys and ...
by rav
13 Feb 2011, 08:36
Forum: SFS2X Questions
Topic: serialization of Map<Object, Object>
Replies: 10
Views: 13214

I don't really see where the problem is, you just have to convert your integer into a string. Integer == 4 bytes each character in UTF8 string == 2bytes f.e. Integer is 'id' field in database and it reaches eight-digit number, so you send 16bytes vs 4bytes for each map entry multiply by map size, b...
by rav
12 Feb 2011, 20:09
Forum: SFS2X Questions
Topic: serialization of Map<Object, Object>
Replies: 10
Views: 13214

Lapo wrote:SFSObject supports only Strings for keys.



Will SFS2X support others types? Might be worth to add Integer?
by rav
11 Feb 2011, 10:57
Forum: SFS2X Questions
Topic: serialization of Map<Object, Object>
Replies: 10
Views: 13214

serialization of Map<Object, Object>

Could I serialize Map<Object, Object> on the server and parse it on the client? Seems I can use ONLY Map<String, Object> because 'key' has String type in AS3


Code: Select all

var spells:Object

var key:String;
for (key in spells)
   trace(spells[key]);
by rav
20 Jan 2011, 18:01
Forum: SFS2X Questions
Topic: prohibit some user requests
Replies: 5
Views: 7375

have a list of users in the extension and check against that list may be for some kind of user requests this method will work, but if user calls AddBuddyRequest server will recive SFSEvent.BUDDY_ADD post factum, so prohibition isn't working properly Or may be is there a way to catch on server some ...
by rav
20 Jan 2011, 05:48
Forum: SFS2X Questions
Topic: prohibit some user requests
Replies: 5
Views: 7375

appels wrote:..or create your own system server side.


could you explain it a bit?
by rav
18 Jan 2011, 18:39
Forum: SFS2X Questions
Topic: prohibit some user requests
Replies: 5
Views: 7375

seems I can use "User Privilege Manager" via admin tool. Is this right and single way to prohibit any user requests?
by rav
18 Jan 2011, 17:35
Forum: SFS2X Questions
Topic: prohibit some user requests
Replies: 5
Views: 7375

prohibit some user requests

Can I prevent performing of some embedded user reguests on the server, f.e. AddBuddyRequest? may be ignore this requests in server extension or prohibit this requests in admin tool
by rav
17 Jan 2011, 05:45
Forum: SFS2X Questions
Topic: BuddyList questions
Replies: 4
Views: 7277

seems method described in my first post works well, but how to prohibit AddBuddyRequest for users? because server adds all of whom will not be asked

Go to advanced search