Connecting server with playfab
I am trying to realtime cloud server with playfab (JavaScript API).Using appID generated by playfab, I can get Photon Authentication Token, but I have no idea how to setCustomAuthentication. Below code...
View ArticleWhere can I learn to use Photon plugin for Construct 2?
There isn't a great deal of documentation or support available and I'm wondering how I can learn it. I'm struggling every step of the way.Please help.Thanks!
View ArticleConnecting to Photon Cloud from Node.js or .Net Core
Hi,As much as I searched I couldn't find the JavaScript Client SDK to download, even though there were links on the Photon website.Also I was wandering if anybody tried to use this SDK from Node.js....
View ArticleGet photon for JS using npm
Hello,is it possible (or will be) to get photon for JavaScript using npm (https://www.npmjs.com/) ?I can't find it there...Thank you
View ArticleError logging in with facebook in the SDK demos
Hello, I'm trying to develop multiplayer for a HTML5 game and I'm just testing stuff in photon; the examples are great and everything seemed ready to go until I tried to login via FaceBook.So I set up...
View ArticlePrefer connecting to peers on local network
I am new to networking and the Photon JavaScript SDK, and I haven't been able to find previous discussions on this:I want two clients on the same local network to prefer connecting to eachother instead...
View ArticleRoomProperty with Construct2
I can't get custom properties to work, maybe I missed something.When a player joins or leave I do:Set custom property "team1" of my room to Team1CountSet custom property "team2" of my room to...
View Articleweird ERROR => "1002+Master peer connect failed:...
I'm on Construct2 and this error is only happening when I'm trying to export my game with node.js . Because yes , as an html file or as an app (apk/android) it work , but not when I'm exporting with...
View ArticleWhy addResponseListener callback not work?
It's right to get response data in ResponseListener's callback function ? Or I think wrong ?here is my code : const addListener = (client) => { client.addResponseListener(CODE,(e) => {...
View ArticlePlayfab integration
I have problem on API request for GetPhotonAuthenticationToken, I don't know what to put on X-Authentication, and I got this error. code : 401error : "NotAuthenticated"errorCode : 1074errorMessage :...
View ArticleFetch cached events with Node.js
My plan is to implement an anti-cheat into my game that's not constantly running, but players would report sketchy behaviour to my server alongside with the room id, region etc. The server should then...
View ArticleCustom Authentication with PlayFab fails
I am using Photon's JavaScript SDK.From around January 26th, custom authentication with PlayFab came to fail.Previously it worked fine.The following appears on the console.Client: Error: 3101...
View ArticleCreating an IO Game, Authoritative Server Logic and Server Setup Help!
Its our first time making a multiplayer and we're currently making an IO type of game (where there are 100 people in a room) and we thought of using Photon because of the nice API features and the...
View ArticleFailure: Failed to parse message header for protocol Json
Why always i get the error message using websocket?Failure: Failed to parse message header for protocol Json
View ArticleCan a native(c++) client and a web(JavaScript) client enter one room?
Two native clients can enter the room "test_room". Two web clients also see each other in this room.But the native client and the web can not see each other's friends. Why is that?
View ArticleJavaScript SDK - myRoomActors has bugs?!
in DemoLoadBalancing.prototype.onJoinRoom = function(){...}call PhotonService.myRoomActors()the first player got correct result..but, the 2nd player get the result: (top 2 actor in map is ok,but there...
View ArticleonRoomListUpdate roomsAdded always [undefined]
may be there is a bug:Photon-Javascript_SDK.js line:3354://roomsAdded.push(r);roomsAdded.push(ri);And I find that after 2 players leave a room, and one of them create a new room, the 2nd of them can't...
View Article[Solved] WWS not working in cocos
Edit: Never mind, it turns out we need a file named cacert.pem to make it work.Basically we're using Photon JS SDK with coco2d-x for our web client and then also use it to build for Android. The code...
View ArticleCross platform (Unity & JS) not working
Hi,we've developed a simple game using Photon for Unity, which is working fine. We'd like to add support for cross platform HTML clients using JavaScript. Unfortunately, we can't seem to get the...
View Articleis there rejoin or reconnect in js-sdk?
when everyone is ready, main logic start, and set setIsOpen(false);when some one offline, and i want him rejoin back. and call joinroom, but can't join because the game is closed.if i can't set...
View Article