Search found 37 matches

by Kleon
28 Oct 2010, 05:28
Forum: Server Side Extension Development
Topic: Problem with native actionscript Array
Replies: 1
Views: 5068

Problem with native actionscript Array

Hello,

I use actionscript to develop my server side extension and use Array[] to collect users in special sequence.
How I use the array:
After some actions I delete an user from the array and add it again to the end of the array in a some time.

The problem:
When the server do it for 2000 users ...
by Kleon
27 Oct 2010, 07:24
Forum: Server Side Extension Development
Topic: StringIndexOutOfBoundsException: String index out of range
Replies: 3
Views: 8352

TiagoR wrote:http://www.lysator.liu.se/java/apidocs/java.lang.StringIndexOutOfBoundsException.html
Yes, I read this. But I don't make any manipulations with strings. Also it seems the error is processed within Smartfox internal environment.
by Kleon
27 Oct 2010, 05:48
Forum: Server Side Extension Development
Topic: StringIndexOutOfBoundsException: String index out of range
Replies: 3
Views: 8352

StringIndexOutOfBoundsException: String index out of range

Hello,

I have the error. Could you clarify me what it means?

Code: Select all

(ExtensionHandler.processEvent): Exception in ExtensionHandler: java.lang.StringIndexOutOfBoundsException: String index out of range: 90864
P.S. After this, nothing is working in my server side extension
by Kleon
19 Oct 2010, 09:06
Forum: SmartFoxServer 1.x Discussions and Help
Topic: _server.leaveRoom cause of Client API error
Replies: 5
Views: 8764

_server.createRoom(roomObj, user, sendUpdate, broadcastEvt, roomVars, varsOwner, setOwnership)

you need to specify true for sendUpdate - then the clients will receive the newly created room.
As far I understand if I specify true for sendUpdate, then all clients will recieve notifications about it ...
by Kleon
19 Oct 2010, 06:43
Forum: SmartFoxServer 1.x Discussions and Help
Topic: _server.leaveRoom cause of Client API error
Replies: 5
Views: 8764

BigFIsh wrote:When the room was created, did the clients received that new room prior to joining and leaving it? (It is required)
No. I just join the clients to the room in my extension. What should I do to notify clients API about it?
by Kleon
18 Oct 2010, 12:04
Forum: SmartFoxServer 1.x Discussions and Help
Topic: _server.leaveRoom cause of Client API error
Replies: 5
Views: 8764

_server.leaveRoom cause of Client API error

Hello,

I need to create a room and join users to it without update sending to other clients.

For this goal I do following:

//sendUpdate property = false
_server.createRoom(roomObj, null, false, false);

then I call "joinRoom":

//sendUpdate property = false
_server.joinRoom(user1, -1, false ...
by Kleon
13 Oct 2010, 07:01
Forum: Server Side Extension Development
Topic: Too much Dropped message after 500 connections
Replies: 27
Views: 34991

Hello Lapo,

Does this info helps?
Could you suggest us any tests to find a problem?
by Kleon
06 Oct 2010, 07:55
Forum: Server Side Extension Development
Topic: Too much Dropped message after 500 connections
Replies: 27
Views: 34991

The code I sent restores these features in course of time
It updates server user properties, then send response to client with new properties.
by Kleon
06 Oct 2010, 07:53
Forum: Server Side Extension Development
Topic: Too much Dropped message after 500 connections
Replies: 27
Views: 34991

You mean it is called once every 2 hours?
Can you explain what it does in short?
Yes, it is called once every 2 hours. Our chat application have few game features (gifts, carma) which can be used in chat several times, then features are blocked. The code I sent restores these features in course of ...
by Kleon
06 Oct 2010, 06:23
Forum: Server Side Extension Development
Topic: Too much Dropped message after 500 connections
Replies: 27
Views: 34991

The function which is called one time per 2 hours:

function reproduceResources() {
var zone = _server.getCurrentZone();
var room = zone.getRoomByName("Lobby");
var playersArray = room.getAllUsers();

for(var n = 0; n < playersArray.length; n++){
var user = playersArray[n];
var rtimeData ...
by Kleon
05 Oct 2010, 11:21
Forum: Server Side Extension Development
Topic: Too much Dropped message after 500 connections
Replies: 27
Views: 34991

Thanks... it's actually a bit difficult to interpret it, do you also have a more detailed view of that day?
Here is it:
http://img.skitch.com/20100929-cehyu4xbam3nj9ibrai5t1d3ch.jpg

On Friday we have tried to increase values "QueueSize" and "MaxAllowedDroppedPackets" to 10000000 and it helps us ...
by Kleon
04 Oct 2010, 05:27
Forum: Server Side Extension Development
Topic: Too much Dropped message after 500 connections
Replies: 27
Views: 34991


This 'Lobby' room, what does it do? Does it list down all game rooms? Does it dynamically update room variables? Sending information (such as room variables, user count, and so on) for 250 rooms to each user in the lobby can stack up quite quickly.

It's a one room which client connects first ...
by Kleon
01 Oct 2010, 13:34
Forum: Server Side Extension Development
Topic: Too much Dropped message after 500 connections
Replies: 27
Views: 34991

Hi,
BigFish mentioned the max number of Users per Room.
Sounds like this could be the problem. How do you distribute users in Rooms? Do they 500 users all access the same Room?
Yes. All users connect to the Lobby room first.

<Rooms>
<Room name="Lobby" isPrivate="false" isTemp="false" limbo ...
by Kleon
01 Oct 2010, 07:10
Forum: Server Side Extension Development
Topic: Too much Dropped message after 500 connections
Replies: 27
Views: 34991

One more question that I forgot to ask - in your AdminTool.swf, was it the dropped incoming messages or dropped outgoing messages in which the values are high?
It was outgoing dropped messages - 2-3k. The value of incoming dropped messages is 0.

Additionally, did you get any warnings in your log ...
by Kleon
30 Sep 2010, 10:26
Forum: Server Side Extension Development
Topic: Too much Dropped message after 500 connections
Replies: 27
Views: 34991

Yes, that's correct. Clients (that has slow internet connection) are getting dropped due to the fact that they can't keep up with the incoming messages from the server. The max allowed drop messages is defined in the config.xml file. A tight max allowed drop message value keeps all clients in sync ...