Search found 84 matches

by trueicecold
30 Nov 2017, 09:50
Forum: SFS2X Questions
Topic: Can't create a room in JS Server API
Replies: 1
Views: 535

Can't create a room in JS Server API

Hey there, I'm trying to do something very simple: open a room in the zone extension: Server code: function init() { addRequestHandler("FindRoom", onFindRoom); } function onFindRoom(event, sender) { var cfg = new CreateRoomSettings(); cfg.setName("232323s"); cfg.setGame(true); cf...
by trueicecold
22 Nov 2017, 11:20
Forum: SFS2X Questions
Topic: can't connect to sfs2x from work computer
Replies: 12
Views: 2171

Re: can't connect to sfs2x from work computer

I just replied above you with the problem I had :)

Might be worth mentioning to other developers, although in a production that shouldn't be an issue (unless you use Ad Muncher in a production server ;))
by trueicecold
22 Nov 2017, 11:01
Forum: SFS2X Questions
Topic: can't connect to sfs2x from work computer
Replies: 12
Views: 2171

Re: can't connect to sfs2x from work computer

FOUND IT!

The culprit is the Ad-Muncher. as soon as it's activated (even if disabled!) I can't connect to sfs anymore. quitting it completely fixed it...

PHEW...

FYI
by trueicecold
22 Nov 2017, 10:10
Forum: SFS2X Questions
Topic: can't connect to sfs2x from work computer
Replies: 12
Views: 2171

Re: can't connect to sfs2x from work computer

I assume that if firewall was the case I wouldn't be able to connect to it using telnet or web interface at all. seems only websocket protocol fails... Also, like I stated, turning on Fiddler or Charles Proxy (without ssl decryption enabled) seems to fix it... EDIT: oddly enough, chrome and firefox ...
by trueicecold
21 Nov 2017, 14:51
Forum: SFS2X Questions
Topic: can't connect to sfs2x from work computer
Replies: 12
Views: 2171

Re: can't connect to sfs2x from work computer

It is using the WS binary protocol.

My web server settings is as follows:

Image
by trueicecold
21 Nov 2017, 14:23
Forum: SFS2X Questions
Topic: can't connect to sfs2x from work computer
Replies: 12
Views: 2171

Re: can't connect to sfs2x from work computer

I'm using the latest version (2.13.0)

Again, it works on my home computer, but not on the work computer..
by trueicecold
21 Nov 2017, 13:35
Forum: SFS2X Questions
Topic: can't connect to sfs2x from work computer
Replies: 12
Views: 2171

Re: can't connect to sfs2x from work computer

This is soooo weird...

When a proxy software such as fiddler or charles proxy is opened, I'm able to connect!
as soon as I close them, it fails.

BTW, I'm using a windows system, but I've also tried running sf2x from a linux VM, and it still didn't work, with the same error...
by trueicecold
21 Nov 2017, 09:36
Forum: SFS2X Questions
Topic: can't connect to sfs2x from work computer
Replies: 12
Views: 2171

can't connect to sfs2x from work computer

Hello, I'm getting an error connecting to sfs using the javascript client api: sfs2x-api-1.7.6.js:10 WebSocket connection to 'ws://127.0.0.1:8080/BlueBox/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400 using my home computer this works just fine, but on my work com...
by trueicecold
20 Nov 2017, 20:09
Forum: SFS2X Questions
Topic: Is sfs2x using socket.io or its own proprietry code?
Replies: 2
Views: 587

Re: Is sfs2x using socket.io or its own proprietry code?

Thanks Lapo, was just making sure you're not using the open source socket.io lib.
by trueicecold
20 Nov 2017, 15:20
Forum: SFS2X Questions
Topic: Is sfs2x using socket.io or its own proprietry code?
Replies: 2
Views: 587

Is sfs2x using socket.io or its own proprietry code?

I'm planning on creating a mobild card game using sf2x.

Should we expect socket.io issues and bugs, or is sfs2x using its own implementation of websocket client library?
by trueicecold
31 Oct 2014, 06:32
Forum: SFS2X Questions
Topic: How would you suggest implementing Facebook custom login?
Replies: 6
Views: 2784

Re: How would you suggest implementing Facebook custom login

Hey,

I found out what I was doing wrong. I used "user.setVariable" instead of sfsApi.setUserVariables, so it didn't fire the event to the client.

Took it from here:

viewtopic.php?f=18&t=16496&p=71001&hilit=setVariable#p71001

Thanks :)
by trueicecold
30 Oct 2014, 20:28
Forum: SFS2X Questions
Topic: How would you suggest implementing Facebook custom login?
Replies: 6
Views: 2784

Re: How would you suggest implementing Facebook custom login

Hey Lapo, So I've managed to perform fb call in the USER_LOGIN stage, and verify it against the database to get the chips count etc... Since there is no user yet, I put the data retrieved from the database inside the session properties, and in the USER_JOIN_ZONE phase, I turn the session properties ...
by trueicecold
29 Oct 2014, 21:05
Forum: SFS2X Questions
Topic: How would you suggest implementing Facebook custom login?
Replies: 6
Views: 2784

Re: How would you suggest implementing Facebook custom login

Open graph action - going to a https url on facebook's domain, passing the auth token from the login operation so that it can provide the user data from that :)

Thanks for the HttpClient reference, is there a usage example to it? couldn't find it in the sfs page you put in your response :)
by trueicecold
29 Oct 2014, 21:03
Forum: SFS2X Questions
Topic: Any way of interacting sfs2x using php?
Replies: 6
Views: 2643

Re: Any way of interacting sfs2x using php?

Cool, that saves a php call, syncs the data and the sfs could update the db :)

Thanks!
by trueicecold
29 Oct 2014, 20:54
Forum: SFS2X Questions
Topic: Any way of interacting sfs2x using php?
Replies: 6
Views: 2643

Re: Any way of interacting sfs2x using php?

so I get an encrypted token from Facebook, send it to sfs, and sfs decodes it and checks against facebook api?

Go to advanced search