[PUN2] Most current docs?
Options
I'm new to Photon but not to networking in general. I want to test Photons performance and capabilities for real time games.
Looking at the docs https://doc.photonengine.com/en-us/realtime/current/getting-started/realtime-intro
The first line "using ExitGames.Client.Photon.LoadBalancing;" gives me an error.
Assets/Scripts/Main.cs(9,31): error CS0234: The type or namespace name `LoadBalancing' does not exist in the namespace `ExitGames.Client.Photon'. Are you missing an assembly reference?
Are there any official docs that work?
I also tried getting the Asteriods game to work but it doesn't go any further than to the screen saying "Waiting for other players" when testing with two players.
Looking at the docs https://doc.photonengine.com/en-us/realtime/current/getting-started/realtime-intro
The first line "using ExitGames.Client.Photon.LoadBalancing;" gives me an error.
Assets/Scripts/Main.cs(9,31): error CS0234: The type or namespace name `LoadBalancing' does not exist in the namespace `ExitGames.Client.Photon'. Are you missing an assembly reference?
Are there any official docs that work?
I also tried getting the Asteriods game to work but it doesn't go any further than to the screen saying "Waiting for other players" when testing with two players.
0
Comments
-
When looking at https://doc-api.photonengine.com/en/pun/current/class_photon_network.html#a0fdb79bcce45801ec81fbe56ffb939ec
it states ConnectUsingSettings takes a string
static bool PhotonNetwork.ConnectUsingSettings ( string gameVersion )
But when trying that out in practice the compiler tells me there is no overload that takes a string.0 -
https://doc.photonengine.com/en-us/pun/current/getting-started/feature-overview#_mbcallbackpun
Says that if my script extends Photon.PunBehaviour I can override magic callbacks. Yet Photon.PunBehaviour does not exist.0 -
Hi @developer_at_sb,
Thank you for choosing Photon!
You are using PUN2.
Docs for PUN2 can be found here:
https://doc.photonengine.com/en-us/pun/v20 -
Hi @JohnTube ,
I'm also confused in documentation between photon realtime & PUN2 !!!
Both products have different classes & methods listed in it's documentation. I believe PUN2 is generalised for all games and realtime focuses on loadbalancing techniques so more players can connect to server.
There is no clear explanation given between realtime & PUN. I found official plugin for PUN2 on asset store (https://assetstore.unity.com/packages/tools/network/pun-2-free-119922), but no plugin for photon realtime.
I imported PUN2 plugin in my project and went through basics tutorial and I understood the methods & callbacks. It works fine in basics tutorial scene. I tested the scene with 4 clients can join server and move around.
but when I went for realtime scene called 'DemoLoadBalancing-Scene', it didn't work. It throws error when I start the scene.
error: 'The appId this client sent is unknown on the server (Cloud). Check settings. If using the Cloud, check account.'
I entered the realtime app ID into PhotonServerSettings. still, realtime demo does not work.
Note that, PUN demo scene 'PunBasics-Launcher' works fine.
I gone through search on forum, but doubts are still there in my mind.
0 -
Hi @nikunjk21,
Thank you for choosing Photon!
PUN adds a layer on top of Photon Realtime's Unity SDK. Read more about the differences between Realtime and PUN: https://doc.photonengine.com/en-us/realtime/current/troubleshooting/faq#what_is_the_difference_between_photon_realtime_and_pun_0