Is there any updated Photon Tutorial?

Hello,

I am looking for updated version of Photon starter kit or updated Photon Tutorial…

Thank you!

Hi @Ketan_ATA,

This thread might be able to help.

@Gabriel_Dobrzynski Thank you for reply… But it is old version i am unable to make it work…

So asking for updated version. If anybody tried something with it…

Personally no, I haven’t tried it. Maybe one of the dev’s like @yaustar has?

We haven’t done much with Photon and that link is from the community.

@Ketan_ATA Have you tried using that project and updating it for the latest version?

@yaustar The build is with sdk and works fine But when dig deep inside project few files are missing in that project…

Where to get those files, He mention to refer git : https://github.com/utautattaro/Photon-for-PlayCanvas

And he also mentioned to download sdk from : https://www.photonengine.com/sdks#sdkrealtimejavascript

But i guess Photon updated there sdk as well.

I try to implement as he explained it on git but no luck so far…

Stuck with this error…

Stuck with this error…

Is the launch tab on HTTPS/are the network requests to HTTPS?

@yaustar I tried both way but does not work…

After some search i found working Photon project (DEC 13, 2019) here : https://playcanvas.com/project/654895/overview/1213photonplaycanvas

Seems like playcanvas Japan is different user who have this photon project : https://playcanvas.com/playcanvasjp

Will do some experiments with it…

Hey @Ketan_ATA,

Check out this thread on photon setup, it may assist you - It's hard to create multiplayer games?.

Additionally, I would recommend creating a project from scratch in the method detailed in this tutorial - https://utautattaro.github.io/Photon-for-PlayCanvas/. From personal experience of creating several Photon projects, forking the starter project does not work as well, but instead you will need to configure it to your requirements, which the tutorial explains brilliantly.

1 Like

@DevilZ I would like to see your readymade project…

I guess you already solved the issue. Can you please share the solution here…? So it will help to them those who are struggling…

Thanks in advance!

Hi @Ketan_ATA,

Unfortunately this project has now progressed to a further state than in that post, and we are in talks with a client, so for now I can’t really show the source.

I’d be glad to do this though! As I had mentioned in my previous post, you’ll have to create the project from scratch using the method detailed in the documentation. Ensure you have the scripts in the correct order, otherwise it will not work. Next, parse the app.js script and enter your own photon credentials which you should get from the photon developer dashboard. This should initialize photon into the project. After this, add a photon controller script to root that contains the ‘joinroom’ and ‘leaveroom’ functions in update so players and enter and leave the lobby. Finally, you can use the ‘sendmessage’ and ‘receivemessage’ functions appropriately in your scripts to send and receive messages between players.

Hope this helps!

3 Likes