Search found 4362 matches

by Bax
19 Apr 2018, 10:06
Forum: SFS2X C# API
Topic: NullReferenceException and KeyNotFoundException thrown in EventDispatcher.DispatchEvent
Replies: 1
Views: 10

Re: NullReferenceException and KeyNotFoundException thrown in EventDispatcher.DispatchEvent

This is what the DispatchEvent method mentioned in the stack traces does: public void DispatchEvent(BaseEvent evt) { EventListenerDelegate dlg = listeners[evt.Type] as EventListenerDelegate; if (dlg != null) { evt.Target = this.target; try { dlg(evt); } catch (Exception ex) { throw new Exception(&qu...
by Bax
13 Apr 2018, 14:13
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X + Node.js
Replies: 0
Views: 9

SFS2X + Node.js

In a new article in our blog, today we describe how to integrate the SFS2X API for JavaScript in a Node.js application.
Check it ur at this URL: http://smartfoxserver.com/blog/sfs2x-and-node-js/
by Bax
13 Apr 2018, 08:31
Forum: SFS2X HTML5 / JavaScript API
Topic: [NEW] API v1.7.10 released
Replies: 0
Views: 11

[NEW] API v1.7.10 released

We just released v1.7.10 of the SFS2X JavaScript client API. Starting from this new version, we completely reviewed the build process of the API. This fixes some compatibility issues of the internal third-party libraries with module bundlers (like webpack ) and also brings: ⋅ reduced API f...
by Bax
11 Apr 2018, 08:37
Forum: SFS2X HTML5 / JavaScript API
Topic: SFSErrorCodes documentation appears incorrect
Replies: 2
Views: 12

Re: SFSErrorCodes documentation appears incorrect

Error fixed. Please download API v1.7.10.
We also fixed the documentation error; in fact you should use:

Code: Select all

function someMethod()
{
   SFS2X.SFSErrorCodes.setErrorMessage(13, "Le Groupe demandé n'est pas disponible - Salle: {0}; Groupe: {1}");
}
by Bax
11 Apr 2018, 07:07
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 1584

Re: SFS2X with Webpack

Actually I think you can import the library using the package name, instead of the file name.
We are using the following and it works fine (at least in webpack):

Code: Select all

import * as SFS2X from "sfs2x-api";
by Bax
10 Apr 2018, 16:21
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 1584

Re: SFS2X with Webpack

The new version of the API (1.7.10) is now available here: http://www.smartfoxserver.com/download/sfs2x#p=client
We also published the NPM package here: https://www.npmjs.com/package/sfs2x-api
by Bax
09 Apr 2018, 06:49
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 1584

Re: SFS2X with Webpack

Thank you for your feedback.
Both on their way.
by Bax
03 Apr 2018, 13:48
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 1584

Re: SFS2X with Webpack

We have fully modified the JS API build system, now hopefully preventing all the issues with Webpack.
If you are interested, we can send you a pre-release version that you can check (contact us by email).
If everything is ok, we might explore the creation of an official NPM package as you suggested.
by Bax
29 Mar 2018, 09:32
Forum: SFS2X Questions
Topic: JS Api Memory leak
Replies: 3
Views: 123

Re: JS Api Memory leak

Thank you for reporting this issue. We can confirm the memory leak, as MMOItems were incorrectly removed from the MMORoom.
You can get the updated API at the usual url: http://www.smartfoxserver.com/download/sfs2x#p=client
by Bax
28 Mar 2018, 12:43
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 1584

Re: SFS2X with Webpack

Thanks for the help, but is this final way or will we see a release so that we may not need to export (Zlib) the library separately??? Actually I don't know. Zlib is a third-party library which we simply merge with our API code in the final .js file. In fact it works as expected in browsers. Again,...
by Bax
28 Mar 2018, 10:39
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 1584

Re: SFS2X with Webpack

Actually I don't understand what is going on. In fact the Zlib library is already bundled inside our API and should be accessible as a global object. Not sure what Webpack does, preventing this from working.
by Bax
28 Mar 2018, 09:21
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 1584

Re: SFS2X with Webpack

Can you try to bundle the Zlib library separately in your web pack project?
You can get the library here: https://github.com/imaya/zlib.js (file "bin/zlib.min.js").
by Bax
26 Mar 2018, 12:24
Forum: SFS2X Questions
Topic: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Replies: 15
Views: 332

Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event

Great. Thank you for reporting the issue. We will now make the updated version ( v1.7.8 ) publicly available.
by Bax
26 Mar 2018, 09:30
Forum: SFS2X Questions
Topic: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Replies: 15
Views: 332

Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event

duylinh013 wrote:Hi Bax,
Could you please zip the file and send again?
Thanks

Did it... did you receive it?
by Bax
26 Mar 2018, 08:29
Forum: SFS2X Questions
Topic: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Replies: 15
Views: 332

Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event

Issue found and (possibly) fixed. If you send us an email, we can send you a prerelease version of the API to check. Thank you.

Go to advanced search