Search found 68 matches

by COB
01 Jul 2011, 07:29
Forum: SFS2X Questions
Topic: How can I send message from server to all users?
Replies: 10
Views: 18322

How can I send message from server to all users?

I'm trying to send message from server to users which has to be originated from the server. I need this because I would like to have some objects in the game that are controlled only by the server. My idea is to use: public void sendObjectMessage(Room targetRoom, User sender, ISFSObject message,...
by COB
20 Jun 2011, 17:34
Forum: SFS2X C# API
Topic: Clearing user variable
Replies: 8
Views: 13045

I have Debug.Log("something") as the first line in OnUserVarsUpdate. For sure I see this log when I set "localRobotId". I see also that it appears in admin tool for the specific user. On the other hand when I set "localRobotId" to null for this player it disappears in a...
by COB
20 Jun 2011, 09:45
Forum: SFS2X C# API
Topic: Clearing user variable
Replies: 8
Views: 13045

So, I should get the notification. Maybe server deletes variable (I can see this in admin tool) and doesn't pass any information to the clients then?
by COB
20 Jun 2011, 05:16
Forum: SFS2X C# API
Topic: Clearing user variable
Replies: 8
Views: 13045

Clearing user variable

I'm trying to clear some user variable with such code: List<UserVariable> userVars = new List<UserVariable>(); userVars.Add( new SFSUserVariable("localRobotId",null)); smartFox.Send ( new SetUserVariablesRequest(userVars) ); However, I don't observe ...
by COB
18 May 2011, 04:29
Forum: SFS2X Questions
Topic: userVariablesUpdate docs
Replies: 7
Views: 9335

by COB
16 May 2011, 19:00
Forum: SFS2X C# API
Topic: How to use user variables
Replies: 13
Views: 23043

This code is taken from different scripts and indeed, there is some inconsistency in naming of variable that represents smartfox connection. As you said code seemed not to work at the beginning and I am observing now probably similar thing. I use Unity editor (lets name it User A) and WebPlayer (Use...
by COB
16 May 2011, 16:34
Forum: SFS2X Questions
Topic: Custom login issue
Replies: 7
Views: 9678

By "not in this case" you mean that it should be called somewhere else?
As we progress with our tests this issue is becoming more serious. We use 2 to 3 logged users at a time and after a few login attempts I have to restart server because extension stops responding...
by COB
16 May 2011, 16:15
Forum: SFS2X Questions
Topic: userVariablesUpdate docs
Replies: 7
Views: 9335

In fact this bug still exists in the example concerning setting user variables in documentation: List<UserVariable> userVars = new List<UserVariable>(); [b]roomVars[/b].Add( new SFSUserVariable("avatarType", "SwedishCook") ); [b]roomVars[/b].Add( new S...
by COB
16 May 2011, 15:25
Forum: SFS2X C# API
Topic: How to use user variables
Replies: 13
Views: 23043

After some additional tests I noticed that user variables work well in WebPlayer (the same code as in Unity Editor). However, still I am not able to read "my own" variables. Only ones from other users. In Editor with the same code I can't see both "mine" and other users variables...
by COB
16 May 2011, 13:09
Forum: SFS2X C# API
Topic: How to use user variables
Replies: 13
Views: 23043

I thought that I already know how to use user variables, but unfortunately I have some problems. I use this code to set variables: List<UserVariable> userVars = new List<UserVariable>(); userVars.Add( new SFSUserVariable("email1", email1) ); userVars.Add( new SF...
by COB
16 May 2011, 12:06
Forum: SFS2X Questions
Topic: Custom login issue
Replies: 7
Views: 9678

At the moment we have only:

Code: Select all

void OnApplicationQuit() {
smartFox.Disconnect();
}

Are you saying that we should also add:

Code: Select all

smartFox.Send(new LogoutRequest());
?
by COB
14 May 2011, 08:18
Forum: SFS2X Questions
Topic: SmartFoxServer 2X Release Candidate 2
Replies: 50
Views: 75884

Is it normal that AdminTool queue realtime monitor isn't showing anything when logging level is not set to INFO in SFS2X/config/log4j.properties?
by COB
14 May 2011, 08:10
Forum: SFS2X Questions
Topic: Custom login issue
Replies: 7
Views: 9678

It's a SFS2X RC2 on Windows machine. It's not easy to reproduce this issue "on demand", but we observe it very often. After a few loggin attemts suddenly login extension stops responding. However, other extensions work fine, like for example registration. Login is most often used, so we ob...
by COB
12 May 2011, 10:16
Forum: SFS2X Questions
Topic: Custom login issue
Replies: 7
Views: 9678

Custom login issue

After a few minutes/hours of running SFS a Custom Login Extension (this one from doc) is stuck. Since that time other users cannot login to the zone. Other extension works fine. Error appears much later - on the image. What might be causing this error? Greetings, Adam. http://img20.imageshack.us/img...
by COB
10 May 2011, 14:59
Forum: SFS2X C# API
Topic: SFS Islands demo - is there a bug?
Replies: 0
Views: 3387

SFS Islands demo - is there a bug?

I use SFS Islands scripts as a base for the network communication in my project. Some time ago I have migrated to SFS2X. Now my NetworkTransformReceiver looks like this: using UnityEngine; using System.Collections; using System; using Sfs2X; using Sfs2X.Core; using Sfs2X.Entities; using Sfs2X.Entiti...

Go to advanced search