The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

PUN doesn't work in release builds, but it works in Development Builds

greedilez
2022-08-12 11:51:10

When building a release build on any platform, it is not possible to connect to the master, but the development build works fine on any platform, please help!

Comments

Tobias
2022-08-12 11:52:00

Any logged errors? Which version is it?

greedilez
2022-08-12 11:59:01

Tobias 2022-08-12T11:52:00+00:00

Any logged errors? Which version is it?

No errors, only warnings, they are shown below.

When you try to connect to the master:

and after, nothing happens, the master is located on the itch.io server, the client connects through the editor

Pun version: 2.41, Photon lib: 4.1.6.17, Unity 2021.3.4f1

My connection script:

Tobias
2022-08-12 12:07:15

When you edit your post, select the code and logs. There is a "paragraph"-sign on the left. Click, then click the Quotation marks (special formatting) and then apply "Code Block" formatting.

Tobias
2022-08-12 12:09:14

Your release game does not use the Development Region.

So you get "Failed to join room cause Game does not exist" maybe because your clients didn't end up in the same region?! Enable the SupportLogger and you can find the region in the logs. Compare between clients that should join one anothers games.

greedilez
2022-08-12 12:21:06

Tobias 2022-08-12T12:09:14+00:00

Your release game does not use the Development Region.

So you get "Failed to join room cause Game does not exist" maybe because your clients didn't end up in the same region?! Enable the SupportLogger and you can find the region in the logs. Compare between clients that should join one anothers games.

I turned off the dev region (left the line empty), turned off the development build, made a new build, and everything worked out well, thanks for the help!

Back to top