Search found 25 matches

by king3200
24 Dec 2012, 06:55
Forum: SFS2X Questions
Topic: JoinZone extension block
Replies: 3
Views: 5899

Re: JoinZone extension block

Hi,
The extension stops responding because all the ExtensionsController threads are busy, running that infinite loop.
If your application/game starts experiencing issues like this, you can increase the ExtensionsController pool size by small increments at a time, around 2-3, from the ...
by king3200
21 Dec 2012, 11:18
Forum: SFS2X Questions
Topic: JoinZone extension block
Replies: 3
Views: 5899

JoinZone extension block

I wrote a endless loop test in USER_JOIN_ZONE extension:
@Override
public void handleServerEvent(ISFSEvent evt) throws SFSException {

User user = (User) evt.getParameter(SFSEventParam.USER);
Zone zone = (Zone) evt.getParameter(SFSEventParam.ZONE);

trace(user + " join zone");
if(UserUtils ...
by king3200
18 Jul 2012, 17:17
Forum: SFS2X C# API
Topic: About u3d api connect
Replies: 6
Views: 13185

About u3d api connect

Hello there:
Here is a issue we met when we trying to use the unity3d with sfs.

We are using the latest plugin, with sfs 2.1.0, when client is disconnected by the server(if the client doing nothing) for idling reason, then we try to connect to the server again,but we found the IsConnected property ...
by king3200
02 Jul 2012, 02:22
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Unable to load properties file
Replies: 3
Views: 6615

Re: Unable to load properties file

I created a tool jar file for my java extension...and put it in "...\jre\lib\ext" folder, but the tool jar have to load a config properties file.
I should be in which folder let it can be loaded?
by king3200
29 Jun 2012, 08:37
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Unable to load properties file
Replies: 3
Views: 6615

Unable to load properties file

hello~~~I met a problem~~
I create a jar and put it into "jre\lib\ext" folder, but it must loading a properties file~~~Where shall I put it?
thanks a lot~~~
by king3200
26 Jun 2012, 17:23
Forum: SFS2X ActionScript 3 API
Topic: Can't get user variables update message~
Replies: 1
Views: 5577

Can't get user variables update message~

hello~~~here is my server code~~~

try {
dbManager.executeUpdate(sql, sqlPara);

List<UserVariable> variables = new ArrayList<UserVariable>();
variables.add(new SFSUserVariable(Constans.PLAYER_NICK, newNick));
getApi().setUserVariables(sender, variables, true, false);

} catch (SQLException ...
by king3200
09 May 2012, 03:08
Forum: SFS2X Questions
Topic: room variables is null~
Replies: 6
Views: 9472

Re: room variables is null~

yes, I did it in joinRoom event~~~here is all my test client code~~~

public class Main extends Sprite
{
var sfs:SmartFox;
var myUser:User;
var currentRoom:Room;

public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}

private function ...
by king3200
08 May 2012, 15:32
Forum: SFS2X Questions
Topic: room variables is null~
Replies: 6
Views: 9472

Re: room variables is null~

I checked client debug trace just now, and I found room variables message came back by JoinRoom event~~~but I can't use room.getvariables() to get any variable yet...
here is the trace log:

[SFS - INFO] JoinRoom { Message id: 4 }
{ Dump: }

(sfs_array) r:
(int) 153
(utf_string) room:152
(utf ...
by king3200
08 May 2012, 14:51
Forum: SFS2X Questions
Topic: room variables is null~
Replies: 6
Views: 9472

Re: room variables is null~

Hi.
Has the client joined those rooms whose variables you're trying to access?
Remember that for receiving variables from a room by just joining its Room Group, you have to set those variables as global.

thank you ~~~ I change my cods like this

List<RoomVariable> variables = new ArrayList ...
by king3200
07 May 2012, 17:48
Forum: SFS2X Questions
Topic: room variables is null~
Replies: 6
Views: 9472

room variables is null~

hello~~
I created 100 rooms into 8 groups when Zone extension has been initalized~~~and every room has 2 variables~~~I create them like this:
List<RoomVariable> variables = new ArrayList<RoomVariable>();
variables.add(new SFSRoomVariable("btnPoint", serverType.getRoomButtomPoint()));
variables ...
by king3200
13 Jan 2012, 02:14
Forum: SFS2X Questions
Topic: Some idle users can not be disconnected
Replies: 2
Views: 4900

Some idle users can not be disconnected

Here are some users had connected more than 10 hours, and Write data never changed at all...I think they are all disconected, but user instance still there, is any other met this problem? :(
I have to create a thread to check user whio logined more than 10 hours...
ps: user max idle time is 300 ...
by king3200
16 Dec 2011, 04:01
Forum: SFS2X Questions
Topic: Ghost room
Replies: 5
Views: 7793

Lapo wrote:Sounds strange, does this happen in your local environment?
never happen in local environment...
by king3200
15 Dec 2011, 01:18
Forum: SFS2X Questions
Topic: Ghost room
Replies: 5
Views: 7793

Is this something that can be reproduced at will?
If so, please list the steps to see it in action.
Read this, in order to send us a complete bug report:
http://smartfoxserver.com/support.php

It's hard to reproduced...... in the test environment, it works all right~~
my normal program flow:
1: a ...
by king3200
14 Dec 2011, 06:11
Forum: SFS2X Questions
Topic: Ghost room
Replies: 5
Views: 7793

Ghost room

http://img165.poco.cn/mypoco/myphoto/20111214/14/6457160520111214141309015.jpg
http://img165.poco.cn/mypoco/myphoto/20111214/14/6457160520111214144924071.jpg
:cry:
this problem cropped up every day... and when I use zone.getRoomByName() , but only get one of them. I try to get one and destory ...
by king3200
29 Nov 2011, 10:26
Forum: SFS2X Questions
Topic: Can't monitor user state in adminTool
Replies: 9
Views: 11534

rjgtav wrote:How are you joining the users? Remember that you also have to use the SFSApi to join them.
yes,I use this method:
getApi().joinRoom(sender, room, "", isSpector, null, true, true);
but ghost user appear not much, I will keep eye on this problem~~
thanks