Search found 36 matches

by Zelek
20 Nov 2013, 09:20
Forum: SFS2X Questions
Topic: ArrayList fastRemove exception
Replies: 3
Views: 1628

Re: ArrayList fastRemove exception

Here's the stack trace: 19 Nov 2013 | 20:26:41,421 | ERROR | com.smartfoxserver.v2.controllers.ExtensionController-3 | v2.controllers.ExtensionController | | java.lang.ArrayIndexOutOfBoundsException: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Exception: java.lang.ArrayInd...
by Zelek
20 Nov 2013, 05:45
Forum: SFS2X Questions
Topic: ArrayList fastRemove exception
Replies: 3
Views: 1628

ArrayList fastRemove exception

I am getting an ArrayIndexOutOfBoundsException in my RequestHandler, and it's apparently happening in ArrayList.fastRemove(). This is the offending code in my extension: if (_playerHashMap.containsKey(location)) { List<Entity> playerList = _playerHashMap.get(location); if (playerList.contains(player...
by Zelek
31 Oct 2013, 03:27
Forum: SFS2X Questions
Topic: One Account for Multiple Servers
Replies: 4
Views: 1704

Re: One Account for Multiple Servers

That makes sense, and I was able to get things up and running. Thanks, Lapo!
by Zelek
27 Oct 2013, 17:52
Forum: SFS2X Questions
Topic: One Account for Multiple Servers
Replies: 4
Views: 1704

Re: One Account for Multiple Servers

2) Use a separate Login Server that just works as a Lobby and redirection system. With this second option you could literally use two separate connections, one for the Lobby server and one for the Game server. For this option, how does authentication work for the Game server? Does the Lobby server ...
by Zelek
27 Oct 2013, 07:40
Forum: SFS2X Questions
Topic: One Account for Multiple Servers
Replies: 4
Views: 1704

One Account for Multiple Servers

I have a system set up where multiple games run simultaneously, and each game has its own SmartFox server instance in Amazon EC2. What I'd like to do is have a single "Account" database that's shared between these multiple server instances. The basic flow would be something like this: 1) U...
by Zelek
28 Jul 2013, 05:27
Forum: SFS2X Questions
Topic: Multiple Rooms Mandatory?
Replies: 3
Views: 1135

Re: Multiple Rooms Mandatory?

2- Using a Room but disabling many (if not all) the broadcast type events. You can check the documentation on how to configure the various events when creating a Room (this feature is server side only) In the Room Configuration Settings, I've removed everything from the "Permissions and events...
by Zelek
04 Jul 2013, 04:09
Forum: SFS2X Questions
Topic: DB query execution lengths
Replies: 1
Views: 622

DB query execution lengths

I am noticing some strange behavior where roughly 1 in every 30 or 40 MySQL queries made by the server takes about 10 times as long as normal. For example, the query normally takes ~20ms to execute, but sporadically will take ~200ms. This happens even when I test with localhost, so network lag can b...
by Zelek
18 May 2013, 20:41
Forum: SFS2X Questions
Topic: Sending low priority messages in bulk
Replies: 1
Views: 561

Sending low priority messages in bulk

I have a TaskScheduler that routinely sends an update to every user connected to the server. This message is low priority, meaning that it doesn't need to be sent/received right away. I don't want it to interfere with other higher priority, time-sensitive messages that are being sent. Is there a bes...
by Zelek
01 May 2013, 06:33
Forum: SFS2X Questions
Topic: Multiple Rooms Mandatory?
Replies: 3
Views: 1135

Multiple Rooms Mandatory?

Is it feasible to have a single zone with a single room, if my SFSExtension.send(...) calls are always sending data to very small subsets of users (around 20)? Or does having 1000-2000 users in a room kill performance, even if I'm not explicitly sending data between all of them? I notice that connec...
by Zelek
17 Apr 2013, 06:28
Forum: SFS2X C# API
Topic: OnExtensionResponse sequence
Replies: 1
Views: 1190

OnExtensionResponse sequence

I am finding that I frequently need to send a batch of messages from the server that must be executed sequentially on the client. Let's say I do something like this on the server: SFSExtension.send("Message1", ...); SFSExtension.send("Message2", ...); SFSExtension.send("Mess...
by Zelek
07 Apr 2013, 17:20
Forum: SFS2X Questions
Topic: Sending bulk data: how much is too much?
Replies: 2
Views: 708

Re: Sending bulk data: how much is too much?

That's great to hear :). Thanks, Lapo!
by Zelek
07 Apr 2013, 07:23
Forum: SFS2X Questions
Topic: Sending bulk data: how much is too much?
Replies: 2
Views: 708

Sending bulk data: how much is too much?

I realize this is a pretty subjective question, but I'd really appreciate anyone's opinion. I've created a very large world in which the server keeps track of each player's exploration. Ideally, I'd like to send all of this exploration data to the player when they log in, and in the worst case scena...
by Zelek
28 Feb 2013, 05:08
Forum: SFS2X C# API
Topic: Detecting when server is unreachable
Replies: 3
Views: 1470

Re: Detecting when server is unreachable

Well, well...maybe I'm not crazy after all! I just went through the connector example line by line, which successfully calls "OnConnection" even when the server is unavailable. The only difference in my project is that I'm using a more recent version of the Unity plugin (2-9-2013). Sure en...
by Zelek
28 Feb 2013, 04:24
Forum: SFS2X C# API
Topic: Detecting when server is unreachable
Replies: 3
Views: 1470

Detecting when server is unreachable

Very basic question here, I fear I'm probably missing something obvious. How can the client detect when the server is unreachable (perhaps it's down or hasn't been started)? SmartFox.Connect() gets called, but the OnConnection event listener is never triggered. Is there some other event I can listen...
by Zelek
26 Feb 2013, 03:38
Forum: SFS2X C# API
Topic: SFS + Web Player, PrefetchSocketPolicy
Replies: 3
Views: 1889

Re: SFS + Web Player, PrefetchSocketPolicy

This is the error I found in the web player logs (with replaced IP): SocketPolicyClient2: Incoming GetPolicyStreamForIP SocketPolicyClient2: About to BeginConnect to 123.456.78.90:843 SocketPolicyClient2: About to WaitOne SocketPolicyClient2: WaitOne timed out. Duration: 3002.1718 SocketPolicyClient...

Go to advanced search