First off, this is a duplicate of my post on UA. With hardly any views and no feedback, thought I would try here. If the problem gets solved, I shall post on both to close the questions.
http://answers.unity3d.com/questions/560375/issue-with-photon-and-unityjavascript.html
Edit : I have also posted this question on the Photon forums (probably should have looked if they had a forum and done that first).
Imported an updated version of Photon Unity Networking into my project. Reconfigured the folder locations so they would work with unityJavaScript. Proceeded to write multiplayer into my project, no worries. Ran it a few times in offline mode and online creating a room.
Went to build out project for further testing, build failed, received 4 warnings and an error. All of these are in relation to Photon scripts. I am at a complete loss (after starting a second new project, reimporting Photon, then imported all assets after rolling back scripts to before Photon, to arrive at the same problem again upon build after rewriting multiplayer parts). Can anyone please help me understand why this is happening, and how to fix it (or configure my project folders correctly if they are not)?
Here are the error messages :
Assets/Plugins/UtilityScripts/ConnectAndJoinRandom.cs(9,44): warning CS0436: The type `Photon.MonoBehaviour' conflicts with the imported type `Photon.MonoBehaviour'. Ignoring the imported type definition
Assets/Plugins/PhotonNetwork/PhotonClasses.cs(71,12): warning CS0436: The type `PhotonPlayer' conflicts with the imported type `PhotonPlayer'. Ignoring the imported type definition
Assets/Plugins/UtilityScripts/InRoomChat.cs(72,38): warning CS0436: The type `PhotonMessageInfo' conflicts with the imported type `PhotonMessageInfo'. Ignoring the imported type definition
Assets/Plugins/UtilityScripts/SmoothSyncMovement.cs(15,39): warning CS0436: The type `PhotonStream' conflicts with the imported type `PhotonStream'. Ignoring the imported type definition
Assets/Plugins/PhotonNetwork/PhotonClasses.cs(80,14): error CS0029: Cannot implicitly convert type `PhotonPlayer' to `PhotonPlayer'
here is a screenshot showing the project folder layout of Photon :
Also confused as to why the warnings and error only popped up after hitting build. How could the scripts suddenly compile differently? I played it several times in the editor before attempting a build, without a warning or a problem.
I can only assume it’s something to do with compilation order.