Search found 139 matches

by marsoups
10 Apr 2018, 21:13
Forum: SFS2X HTML5 / JavaScript API
Topic: SFSErrorCodes documentation appears incorrect
Replies: 2
Views: 213

SFSErrorCodes documentation appears incorrect

Using the examples from the documentation : http://docs2x.smartfoxserver.com/api-docs/jsdoc/client/SFSErrorCodes.html results in an error : function someMethod() { SFS2X.ErrorCodes.setErrorMessage(13, "Le Groupe demandé n'est pas disponible - Salle: {0}; Groupe: {1}"); } TypeError: Cannot ...
by marsoups
04 Apr 2018, 16:23
Forum: SFS2X HTML5 / JavaScript API
Topic: Convert SFSObject to js normal object?
Replies: 6
Views: 1048

Re: Convert SFSObject to js normal object?

Hey Lapo, In Angular JS, you can for example produce a table by simply pointing a row to a JS array. Angular JS will handle the display part of updating the content. So in this situation it's efficient to produce native JS objects. Here is a bit of code that I wrote that has helped me with this task...
by marsoups
03 Apr 2018, 22:01
Forum: SFS2X HTML5 / JavaScript API
Topic: Convert SFSObject to js normal object?
Replies: 6
Views: 1048

Re: Convert SFSObject to js normal object?

There is one situation where this would be helpful to be able to dump to a JS object - and that is using a JS library such as angular JS, where the SFSArray and SFSObject type don't work well when looping and accessing properties. I've tried to make a few functions to loop through on each object in ...
by marsoups
01 Dec 2015, 01:34
Forum: SFS2X Questions
Topic: Bluebox slow to activate on Android and iOS in C# / Unity
Replies: 4
Views: 1440

Re: Bluebox slow to activate on Android and iOS in C# / Unit

It would be good if SFS clients where more aware of any delays and don't adhere simply to the timeouts - waiting for 2 minutes is a very long time and enough time for players to close the app. Perhaps if the client C# notices that there is a very lengthy wait, it can attempt bluebox and see what ret...
by marsoups
13 Nov 2015, 01:25
Forum: SFS2X Questions
Topic: Bluebox slow to activate on Android and iOS in C# / Unity
Replies: 4
Views: 1440

Bluebox slow to activate on Android and iOS in C# / Unity

Hi, In our Unity project, we are finding that bluebox is very slow to activate on Android and iOS. These tests where run by disabling port 9933 on the firewall. In iOS , it's taking roughly 1 minute, 15 seconds to login via Bluebox when port 9933 is disabled. On Android, it's taking a whole 5 minute...
by marsoups
15 Oct 2015, 06:28
Forum: SFS2X Questions
Topic: Connecting to the database from JSP page
Replies: 5
Views: 1213

Re: Connecting to the database from JSP page

Ok I figured out the problem - need to use SmartFoxServer, I don't think SmartFox exists as a class definition ? This solved the issue: <%@ page import="com.smartfoxserver.v2.*,com.smartfoxserver.v2.entities.*,com.smartfoxserver.v2.db.*" %>
by marsoups
15 Oct 2015, 05:55
Forum: SFS2X Questions
Topic: Connecting to the database from JSP page
Replies: 5
Views: 1213

Re: Connecting to the database from JSP page

How can the JSP load the SFS classes ? Getting an error even with importing the relevant classes : <%@ page import="com.smartfoxserver.v2.SmartFoxServer,com.smartfoxserver.v2.entities.SFSZone,com.smartfoxserver.v2.db.SFSDBManager" %> <% SmartFox sfs = SmartFoxServer.getInstance(); Zone myZ...
by marsoups
07 Oct 2015, 02:05
Forum: 2X Features Wish List
Topic: Smartfox extension / addon plugin market
Replies: 1
Views: 1990

Smartfox extension / addon plugin market

Hi, It's just a thought, but I was wondering what Smartfox thinks of having a sort of plugin market available for SFS2X. For example, a feature such as handling Push Notifications for mobile devices is a common feature that I am sure various developers have written API's for. Sure there are places w...
by marsoups
10 Sep 2015, 11:23
Forum: SFS2X Questions
Topic: Connecting to the database from JSP page
Replies: 5
Views: 1213

Re: Connecting to the database from JSP page

Fantastic! Thank you :)
by marsoups
10 Sep 2015, 01:33
Forum: SFS2X Questions
Topic: Connecting to the database from JSP page
Replies: 5
Views: 1213

Connecting to the database from JSP page

Hi,

Does anyone know if it would be possible to connect to the database from Jetty using JSP page, by referring to zone settings somehow ?

We have Jetty acting as a load balancer and would like it if we can make quick connections to the database to check a parameter, is this possible ?


Thanks
by marsoups
18 Aug 2015, 14:51
Forum: SFS2X Questions
Topic: Serverside Room Variable updates not detected by client
Replies: 1
Views: 625

Serverside Room Variable updates not detected by client

Hi, Have a problem here where we're setting a room variable update on a room on the server end. Client (which is Unity C#) connects to this room and has a RoomVarUpdate listener attached. However the RoomVar event is not detected on the clientside and the room var is not updated on the clientside ei...
by marsoups
21 Jul 2015, 00:52
Forum: SFS2X C# API
Topic: 64 bit C# class for iOS (unity)
Replies: 3
Views: 2207

Re: 64 bit C# class for iOS (unity)

Info on publishing 64 bit iOS from Unity. http://blogs.unity3d.com/2015/01/29/unity-4-6-2-ios-64-bit-support/ Scripting Backend in the Configuration has to be set to IL2CPP Once I set it to IL2CPP and try to build, that's when I get the build error "Switching the scripting backend to IL2CPP unl...
by marsoups
21 Jul 2015, 00:51
Forum: SFS2X C# API
Topic: 64 bit C# class for iOS (unity)
Replies: 3
Views: 2207

Re: 64 bit C# class for iOS (unity)

stdout; Fatal error in Mono CIL Linker Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'SmartFox2X, Version=1.5.3.0, Culture=neutral, PublicKeyToken=null' at Mono.Linker.LinkContext.Resolve (IMetadataScope scope) [0x00000] in <filename unknown>:0 at Mono.Linker.Steps.ResolveFrom...
by marsoups
21 Jul 2015, 00:37
Forum: SFS2X C# API
Topic: 64 bit C# class for iOS (unity)
Replies: 3
Views: 2207

64 bit C# class for iOS (unity)

In the latest iOS builds, apparently apple requires 64 bit version of all plugins. The latest C# unity client fails however, and since we are trying to get out app out there, we tried downloading the client off the Unity asset store. This appears to work with the build. I can get more error messages...

Go to advanced search