- Home /
Multiplayer Tutorial android problem
Hi, im following the multiplayer tutorial for mobile and coming across problems when trying to build for my android device. When testing in Unity i have no problems, but when transferring over to mobile i encounter a lot of problems!.
Which are..
Assets/ConnectionGUI.js(40,1): BCE0005: Unknown identifier: 'ipaddress'.
Assets/ConnectionGUI.js(41,1): BCE0005: Unknown identifier: 'port'.
Assets/ConnectionGUI.js(42,49): BCE0005: Unknown identifier: 'ipaddress'.
Assets/ConnectionGUI.js(42,63): BCE0005: Unknown identifier: 'port'.
Error building Player because scripts had compiler errors UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
Exception: Error building Player because scripts had compiler errors UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions) UnityEditor.BuildPlayerWindow.BuildPlayerAndRun ()
Assets/ConnectionGUI.js(22,9): BCW0012: WARNING: 'UnityEngine.Network.useNat' is obsolete. No longer needed. This is now explicitly set in the InitializeServer function call. It is implicitly set when calling Connect depending on if an IP/port combination is used (useNat=false) or a GUID is used(useNat=true).
Assets/ConnectionGUI.js(22,9): BCW0012: WARNING: 'UnityEngine.Network.useNat' is obsolete. No longer needed. This is now explicitly set in the InitializeServer function call. It is implicitly set when calling Connect depending on if an IP/port combination is used (useNat=false) or a GUID is used(useNat=true).
Assets/ConnectionGUI.js(24,9): BCW0012: WARNING: 'UnityEngine.Network.InitializeServer(int, int)' is obsolete. Use the IntializeServer(connections, listenPort, useNat) function instead
I am going to attempt solving the problem now, but was wondering if there has been improvements on the newer unities that could restrict the old methods in the tutorial, thanks!
Realised that this is mainly due to the tutorial being for Unity 2, has there been an updated tutorial for the newer versions of unity? been looking through the unity documentation/answers and this seems to be the general case.
I have the same problem... The worst part in it is that on PC everything works fine (beside accelometer of course): spawning, players, etc. but it won't be saving as *.apk I'm gonna follow this - maybe somebody will find an answer.