Search found 36 matches

by Zelek
25 Feb 2013, 08:11
Forum: SFS2X C# API
Topic: SFS + Web Player, PrefetchSocketPolicy
Replies: 3
Views: 6420

SFS + Web Player, PrefetchSocketPolicy

I am using Unity 4 and SFS on an Amazon ec2 instance. Everything works fine in standalone, but the web build is not able to connect to SFS. I have a call to "Security.PrefetchSocketPolicy", but it always returns false (and I'm not sure if it's even necessary in the current SFS with Unity 4...
by Zelek
26 Sep 2011, 04:14
Forum: SFS2X Questions
Topic: Removing idle rooms
Replies: 1
Views: 3281

Removing idle rooms

Is there API support for removing a dynamic room that is idle for at least X amount of time? None of the SFSRoomRemoveMode constants quite work in my specific situation. I suppose I could track timestamps for when a room became empty, and create a scheduled task that iterates over all of the rooms a...
by Zelek
15 Sep 2011, 03:55
Forum: SFS2X C# API
Topic: Sending/receiving classes
Replies: 18
Views: 56190

It took me a while to figure that out as well. My current setup (which works) consists of a "Scripts/serializable" folder in Unity. I enclose my classes in that folder with "namespace serializable {". In Java, for the server, I have a "serializable" package that is adja...
by Zelek
13 Sep 2011, 04:02
Forum: SFS2X Questions
Topic: setUserVariables vs. sendExtensionResponse
Replies: 1
Views: 3448

setUserVariables vs. sendExtensionResponse

Currently, my client-server architecture is using a mix of serialized objects, user variables, and extension responses. I'm thinking about simplifying and streamlining everything by refactoring so that it only uses extension responses, but I want to be sure I'm not de-optimizing by doing so. Do I lo...
by Zelek
08 Sep 2011, 06:00
Forum: SFS2X C# API
Topic: Serialization of nested classes
Replies: 3
Views: 7045

The PartyMember object: public class PartyMember implements SerializableSFSType { public String name; public int portrait; public int type; // Necessary for serialization public PartyMember() { } public PartyMember(String name, int portrait, int type) { this.name ...
by Zelek
06 Sep 2011, 02:58
Forum: SFS2X C# API
Topic: Serialization of nested classes
Replies: 3
Views: 7045

Serialization of nested classes

Is there anything special that has to happen to enable nested serialization of objects? I have a Party object on the server, and it contains an array of PartyMember objects. When I send the Party object to the client, Unity's OnExtensionResponse never gets triggered. I don't receive any exceptions o...
by Zelek
06 Sep 2011, 01:42
Forum: SFS2X C# API
Topic: Sending/receiving classes
Replies: 18
Views: 56190

Re: Sending/receiving classes

ThomasLund wrote:Some important notes to get this working:
1. Only non-generic ArrayList and Hashtable work in C#
2. Hashtable can have only use string type as the key

These two requirements are making my code somewhat unpleasant to work with. Do you think this might change in a future release?
by Zelek
05 Sep 2011, 16:31
Forum: SFS2X Questions
Topic: Outdated UserVariables when rejoining a room
Replies: 2
Views: 4142

I thought I had, but I just went through the process again and it fixed the issue. I think I must have missed the client API fix the first time. Thanks, rjgtav! :D
by Zelek
05 Sep 2011, 07:19
Forum: SFS2X Questions
Topic: Outdated UserVariables when rejoining a room
Replies: 2
Views: 4142

Outdated UserVariables when rejoining a room

I've noticed that when changing rooms with two clients, one client will have UserVariables that aren't up to date in a certain situation: 1) Player A and B are in the same room X. 2) Player B moves to room Y. 3) Player A has his User Variables updated by the server. 4) Player B returns to room X, bu...
by Zelek
01 Sep 2011, 02:32
Forum: SFS2X Questions
Topic: MySQL Query in USER_JOIN_ROOM = missing UV in Client?
Replies: 5
Views: 7281

This is the current flow you're doing: 1. User joins Zone 2. User joins a room - USER_JOIN_ROOM event fired on the server 3. (Client) trying to retrieve the variables, of course it returns null 4. Server sets the variables. Thanks for helping me to see this, rjgtav! I was expecting the client to tr...
by Zelek
31 Aug 2011, 14:06
Forum: SFS2X Questions
Topic: MySQL Query in USER_JOIN_ROOM = missing UV in Client?
Replies: 5
Views: 7281

I am using SFS2x RC3. The SQL doesn't throw an exception - everything appears correct on the server side. I am able to see the variable on the user in the server monitor. I am using Unity on the client side. I have a pretty standard ROOM_JOIN event. smartFox.AddEventListener(SFSEvent.ROOM_JOIN, ...
by Zelek
31 Aug 2011, 04:42
Forum: SFS2X Questions
Topic: MySQL Query in USER_JOIN_ROOM = missing UV in Client?
Replies: 5
Views: 7281

MySQL Query in USER_JOIN_ROOM = missing UV in Client?

I've run into a strange issue where executing a MySQL query of any sort in the USER_JOIN_ROOM event on the server is causing the client not to receive UserVariables in the SFSEvent.ROOM_JOIN callback. I've put trace statements all through the server code, and everything executes normally and the cor...
by Zelek
24 Aug 2011, 03:05
Forum: SFS2X Questions
Topic: Disable Binary logging
Replies: 3
Views: 6032

Thanks for pointing me in the right direction, Mente. It looks like this guy is the offender: log4j.category.com.smartfoxserver=INFO,consoleAppender,fileAppender Unfortunately, I have to set it to WARN to get rid of the log spam. I guess that's OK for now while I'm most interested in the trace outpu...
by Zelek
23 Aug 2011, 18:48
Forum: SFS2X Questions
Topic: Disable Binary logging
Replies: 3
Views: 6032

Disable Binary logging

How can I disable the binary information that gets written to the server log files? It makes it difficult to visually parse the logs while debugging, and I don't need that information at the moment. I do still want the other [INFO] level messages, though.
by Zelek
17 Aug 2011, 05:04
Forum: SFS2X Questions
Topic: DBLogin - Potential bug in sample
Replies: 5
Views: 7745

A big thanks to MrMooMoo for pointing this bug out, and so clearly explaining the work-around. It seems the fix was never uploaded, and I wasted a decent amount of time debugging things before coming here to make a very similar post. However, even though the server side seems ironed out, I still can...

Go to advanced search