x


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!

more ▼

asked Jan 04 '12 at 03:59 PM

xanderdood gravatar image

xanderdood
16 4 4 5

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.

Jan 04 '12 at 04:21 PM xanderdood

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.

Apr 16 '12 at 08:40 AM McDardy
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2489
x711
x683
x414
x317

asked: Jan 04 '12 at 03:59 PM

Seen: 1697 times

Last Updated: Dec 12 '12 at 03:06 AM