Search found 146 matches

by marsoups
25 Sep 2019, 06:47
Forum: SFS2X Questions
Topic: Old Taskscheduler still runs after auto reloading extensions
Replies: 3
Views: 1767

Re: Old Taskscheduler still runs after auto reloading extensions

Hi, yes my apologies. Are you able to move this thread?
by marsoups
24 Sep 2019, 09:13
Forum: SFS2X Questions
Topic: Old Taskscheduler still runs after auto reloading extensions
Replies: 3
Views: 1767

Old Taskscheduler still runs after auto reloading extensions

Hi, I have a question about the task scheduler (sfs.getTaskScheduler()). I have noticed that if I have some scheduled tasks running, and frequently have extensions reload (to smoothly update the software without requiring a restart), or during development, that sometimes some of the old tasks are st...
by marsoups
16 Sep 2019, 06:51
Forum: SFS2X Questions
Topic: Session Reconnection failure
Replies: 5
Views: 591

Re: Session Reconnection failure

Can I suggest that for a future upgrade, Smartfox moves to a sort of cookie based solution where the cookie identifies the user rather than the IP and connection ? It might help with development in this age where people are on phones and moving about so much. It will make retaining a connection so m...
by marsoups
16 Sep 2019, 06:49
Forum: SFS2X Questions
Topic: change username when logged in
Replies: 7
Views: 3185

Re:

Lapo wrote:You can change the name at login time.
See login tutorial:
http://docs2x.smartfoxserver.com/Gettin ... wtos#item3


My apologies, but this document seems to be missing or moved. I'm wondering how to go about changing the username from the java code at login time. Thanks!
by marsoups
29 Aug 2019, 02:12
Forum: SFS2X C# API
Topic: Disconnected while away
Replies: 6
Views: 1264

Re: Disconnected while away

Very interesting, those options above look quite good. My producer is saying that other games recognize disconnection events quite immediately. I think her test was to minimize the app, turn off wifi, and then reopen it. If it's possible to tell if there is that disconnection when the app is given f...
by marsoups
26 Aug 2019, 03:26
Forum: Server Side Extension Development
Topic: getUtfStringArray returns an error
Replies: 3
Views: 643

Re: getUtfStringArray returns an error

Hi, my version is 2.13.0 I have looked into this and found that you are indeed correct, and the example I provided is not sufficient to reproduce my error. I spent time trying to produce it as the actual code we have is more complicated, and finally managed to narrow it down to this : String[] STRIN...
by marsoups
24 Aug 2019, 02:24
Forum: Server Side Extension Development
Topic: getUtfStringArray returns an error
Replies: 3
Views: 643

getUtfStringArray returns an error

I think I have found a bug with the getUtfStringArray server code (Java). Here is how to reproduce. String[] STRING_ARRAY= new String[]{"test 1","test 2","test 3"}; ISFSObject testObj = new SFSObject(); testObj.putUtfStringArray("push", Arrays.asList(STRING_AR...
by marsoups
10 Apr 2018, 21:13
Forum: SFS2X HTML5 / JavaScript API
Topic: SFSErrorCodes documentation appears incorrect
Replies: 2
Views: 776

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: 13
Views: 2986

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: 13
Views: 2986

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: 2117

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: 2117

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: 1958

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: 1958

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...

Go to advanced search