Search found 4504 matches

by Bax
11 Apr 2020, 10:32
Forum: SFS2X C# API
Topic: InitCrypto Intermittently Fails
Replies: 13
Views: 1329

Re: InitCrypto Intermittently Fails

That useful error message ("An error occurred while sending the request") is returned by the exception raised when the connection to initialize encryption is attempted by this code inside the API: try { var req = await httpClient.PostAsync ("", formContent); req.EnsureSuccessStat...
by Bax
11 Apr 2020, 10:16
Forum: SFS2X C# API
Topic: InitCrypto Intermittently Fails
Replies: 13
Views: 1329

Re: InitCrypto Intermittently Fails

You are right, sorry, my fault. The parameter is "errorMessage".
by Bax
10 Apr 2020, 14:31
Forum: SFS2X C# API
Topic: InitCrypto Intermittently Fails
Replies: 13
Views: 1329

Re: InitCrypto Intermittently Fails

evfaca wrote:@Bax - The error message I posted above is the errorMessage, trying to echo out evt.Params["errorMsg"] returns a key not found exception


Pay attentions to the key: it's errorMsg, not errorMessage.
by Bax
10 Apr 2020, 10:19
Forum: SFS2X C# API
Topic: InitCrypto Intermittently Fails
Replies: 13
Views: 1329

Re: InitCrypto Intermittently Fails

When the CRYPTO_INIT event is fired, you have access to two parameters: "success" and "errorMsg".
What error message are you getting?
by Bax
04 Apr 2020, 16:52
Forum: SFS2X Questions
Topic: How to cancel the avatar border?
Replies: 3
Views: 8062

Re: How to cancel the avatar border?

There isn't a "function" to do so. You have to rethink all the example, removing the MMORoom-related features.
by Bax
04 Apr 2020, 16:44
Forum: SFS2X Questions
Topic: How to cancel the avatar border?
Replies: 3
Views: 8062

Re: How to cancel the avatar border?

Sorry, I don't understand... what you want to remove is actually what the demo wants to shows.
Did you read the related tutorial? It should clarify your ideas.
http://docs2x.smartfoxserver.com/ExamplesJS/simple-mmo
by Bax
03 Apr 2020, 13:15
Forum: SFS2X Questions
Topic: MMO game HTML5
Replies: 12
Views: 965

Re: MMO game HTML5

Josh8787 wrote:Image
How can I see the errors?

What if you check the "Show debug" checkbox?
I'd like to see what messages are printed on the screen.
by Bax
23 Mar 2020, 11:29
Forum: SFS2X HTML5 / JavaScript API
Topic: [NEW] API v1.7.17 released
Replies: 0
Views: 485

[NEW] API v1.7.17 released

We just released v1.7.17 of the SFS2X JavaScript client API. In this release we fixed an issue with JavaScript's Strict Mode and a bunch of issue in our experimental TypeScript declarations file. You can find the new version on the download page as usual: https://www.smartfoxserver.com/download/sfs2...
by Bax
23 Mar 2020, 11:25
Forum: SFS2X HTML5 / JavaScript API
Topic: TypeScript declarations bug
Replies: 14
Views: 4226

Re: TypeScript declarations bug

All reported errors should be fixed by the latest 1.7.17 version of the API.
by Bax
24 Feb 2020, 15:55
Forum: SFS2X HTML5 / JavaScript API
Topic: ReferenceError: DataStream is not defined in wechat
Replies: 7
Views: 2740

Re: ReferenceError: DataStream is not defined in wechat

Currently our JavaScript API are targeted at main desktop and mobile browsers. It is hard for us to test other environments. If you like we can provide the API source code. Maybe manually importing the DataStram library in your project is enough? If you want to give it a try, please contact us by em...
by Bax
10 Feb 2020, 11:22
Forum: SFS2X C# API
Topic: Unity, FirstPersonShooter example issues
Replies: 2
Views: 888

Re: Unity, FirstPersonShooter example issues

It seems your Unity doesn't "see" the classes in the API dll. I suggest to remove all content of the /Assets/Plugins folder, then download the latest version of our C# API and follow the instructions provided here based on the platforms you want to support: http://docs2x.smartfoxserver.com...
by Bax
10 Feb 2020, 08:25
Forum: SFS2X HTML5 / JavaScript API
Topic: TypeScript declarations bug
Replies: 14
Views: 4226

Re: TypeScript declarations bug

As you may understand, it is almost impossible for us to test all combinations of frameworks, package managers, development tools and what more, in particular speaking of TypeScript. Our API package is the most simple NPM package you can think of: 1 JavaScript file with no dependancies. It is hard t...
by Bax
29 Jan 2020, 09:14
Forum: SFS2X HTML5 / JavaScript API
Topic: TypeScript declarations bug
Replies: 14
Views: 4226

Re: TypeScript declarations bug

We are in the process of releasing a new minor update to the JavaScript API. If would be great if you could provide a feedback on my last message, so that if changes are needed, we can make them available in the coming release. Thank you.
by Bax
22 Jan 2020, 11:42
Forum: SFS2X HTML5 / JavaScript API
Topic: TypeScript declarations bug
Replies: 14
Views: 4226

Re: TypeScript declarations bug

One more thing. Could you please try the following? In the project configuration in which you get those TypeScript transpile errors, go to the node_modules/sfs2x-api folder and edit the type definitions file. Try substituting all occurrences of "{array}" with "{Array}". Do the er...
by Bax
22 Jan 2020, 10:23
Forum: SFS2X HTML5 / JavaScript API
Topic: TypeScript declarations bug
Replies: 14
Views: 4226

Re: TypeScript declarations bug

Could you send a very basic project example showing the TypeScript transpile errors? Possibly the whole project folder, including node modules and all. We tried updating all the tools used to generate our API final package and we'd like to test it. I don't think anything changed in this regards but....

Go to advanced search