RPCList in PhotonServerSettings is set to 0 when doing a Unity batch build on a Mac.

Options

Hello

I use Photon in Unity and have set RPCList in PhotonServerSettings, but when I do a Unity batch build from Jenkins, RpcLIst is set to 0 and after the build is complete, I get a difference in PhotonServerSettings. RpcLIst is set to 0 when I do a Unity batch build from Jenkins.

The difference does not appear until the build, but when the batch build is done, for some reason, the PhotonServerSettings is updated and the RpcLIst is set to 0.

Is this a known bug?

This does not happen every time, but it does happen quite often.

Thanks

Answers

  • Tobias
    Tobias admin
    edited February 2023
    Options

    It could be due to the Editor code running when loading the project and it updates / checks the RPC list for completeness.

    I don't have the build setup, so I can only suggest this: Check if it makes a differece to comment-out the PhotonEditor.UpdateRpcList() for the build server. If it helps, I think I would add some compile condition that helps not run this code when Jenkins is building.

    Sorry for the late reply.