x


Problems with Builds

Hello, a friend and I have been working on a rather simple project. Now we want to add it to our website but are unable to get a working build. During Play mode everything's fine:

  • the GUI is displayed properly
  • the players can walk and look around by using the keyboard
  • hitpoints are counted
  • there's delay between single shots from the players

However neither web-builds, nor windows standalones function correctly. All of the things listed above are screwed. For instance:

  • the GUI ignores the mouse
  • walking works fine, yet looking around is restricted to the y-Axis and can only be done by the Mouse. In splitscreen mode both players are turned when the mouse is moved.
  • there are no hitpoints
  • the player's weapons become machine guns

Especially the missing delay is astonishing. Here is some example code:

def Update ():
    if Input.GetButtonDown(input) & isready:
        newProjectile=Instantiate(projectile, transform.position,transform.rotation)
        newProjectile.rigidbody.velocity=transform.TransformDirection(Vector3(0,0,speed))
        isready=false

    actTime+=Time.deltaTime

    if actTime>delay :
        actTime-=delay
        isready=true

It seems like Unity has "filtered" the script. But then again there are no compiler errors and during Play mode everythings fine. We don't know what to do

more ▼

asked Jul 02 '10 at 07:24 PM

lhk gravatar image

lhk
520 14 15 24

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

If there are compiler errors, it's letting you play the last correctly built version of your scripts in play mode

You'll need to fix those compile errors before things work right in play mode and builds

more ▼

answered Jul 02 '10 at 07:29 PM

Mike 3 gravatar image

Mike 3
30.5k 10 65 253

Oh, I'm sorry. I meant "no compiler errors"

Jul 02 '10 at 07:58 PM lhk

Aha - in that case, does it show anything in the log file when playing the standalone?

Jul 02 '10 at 08:00 PM Mike 3
(comments are locked)
10|3000 characters needed characters left
Your answer
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:

x5088
x3695
x1677
x123
x96

asked: Jul 02 '10 at 07:24 PM

Seen: 667 times

Last Updated: Jul 02 '10 at 07:58 PM