[Solved] PUN + PhotonServer "Not connected. Check console...

Options
I'm using the PUN package from the Unity Asset Store, coupled with the Photon Server stable version found on the site, and the above title is the error I get in Unity. However, the console is blank.

When I go to the Photon Server to check the log, this is what it says:
7476: 20:04:25.216 - CENetThreadPool::Process - Exception - ENetPeer::HandleIncomingCommands() - ENetPeer::NotifyReceive()- Invalid message, magic number incorrect: 0xf3 PeerId: 4 Datagram: 00 04 00 02 00 00 01 57 01 B9 22 1E 01 FF 00 04 00 00 00 14 00 00 00 00 00 00 00 00 28 E9 84 71 06 00 01 04 00 00 00 39 00 00 00 01 F3 00 01 06 01 03 00 00 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  - .......W..".................(..q.......9................................................. from: 192.168.0.100:54908 on: 192.168.0.100:5055

I had it working with PhotonCloud, but because we need to store user data, as well as generated map content, we decided that rather than trying to cheat a way around, using PhotonServer and doing our own server code would be the way to go.

As a final note, we're just using the base PUN 1.4 DemoWorker with the base PhotonServer 2.6.x.

Thanks for any help,
-Rob

Comments

  • Tobias
    Options
    Ah, sorry. You can't use the older server with PUN.
    For PUN you need to run Photon v3 RC5 or up.

    I wrote at several places that we're replacing RC5 soon, as it has a memory leak. RC6 is most likely coming today.
    Nevertheless, Photon v3 is as stable as Photon v2. We just name it "RC", because there might be places in the documentation that are not up to date. So, rest assured: The new version is not "highly experimental" but an evolutionary step.
  • Oh, thank you very much on this. I didn't see any indication of this, everything I was reading said to use stable, but for PUN I guess it makes sense that we would need a newer version. Sorry for the confusion.

    Thanks again :)