Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity 4.5 Messed up my game?

Discussion in 'Windows' started by PuneetK, Jun 5, 2014.

  1. PuneetK

    PuneetK

    Joined:
    Sep 2, 2013
    Posts:
    75
    Hi,
    Just upgraded Unity to v4.5

    In the previous version of Unity, the game was crashing constantly on the Lumia 520 (Posted a thread about it) but after the update the game runs smoothly just as on any other platform.

    But after playing through a few minutes of my game I realised
    1. Some of my buttons don't work
    2. The game 'restart' logic, doesn't work
    3. Animations/Transitions seemed to have stopped working sometimes
    4. My leaderboard implementation has stopped working (Both local, and global)

    The way my game is set up is that there are multiple 'screens' all loaded into 1 scene. When you press a certain button, the corresponding 'screen' is animated in, and the current screen is disabled.
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    As for animation, there is a known regression, that some attributes are not updated via animation, i.e. 2D Sprite color, sprite.
    I have a fix for it, which I'm trying to include to 4.5.1.

    The others need to be looked on per case basis. Look this forum as well, it has some information on this.
     
  3. PuneetK

    PuneetK

    Joined:
    Sep 2, 2013
    Posts:
    75
    I rebuilt and redeployed the game after reducing one of my 4096 textures to 2048, and now the game won't load.

    It's stuck on the unity splash screen for pretty much eternity until it decides to crash itself.

    Any idea?
     
  4. PuneetK

    PuneetK

    Joined:
    Sep 2, 2013
    Posts:
    75
    I have deduced that the game no longer opens/starts when I am including the App42 plugin (for leaderboards).

    I rebuilt from an older version, and everything worked, although there was a bit of lag, delay and spikes. I then included the App42 Windows Phone plugin, and now it won't open again.

    It worked fine in Unity 4.3, and even opened up in 4.5 but I was getting all sorts of wierd glitches in my gameplay and animations, although they had nothing to do with App42/Shephertz.

    So right now here's what's happening:
    1. Just a basic build: Everything works, but laggy
    2. Add App42/Shephertz: App won't open; stuck on splashscreen

    Edit:

    I debugged the whole thing line by line and there is this one line that's stopping the app from opening up:

    Code (CSharp):
    1. scoreBoardService = sp.BuildScoreBoardService ();
    Unfortanately though this is the line of code that allows me to connect and use the App42 servers. If I comment out only this line, and keep everything else. The app starts, but, (obviously) my leaderboards don't work. If I keep this line, the app won't start.
     
    Last edited: Jun 6, 2014
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Where is this line located? Do you have source code for what is inside that function? Is there anything on the player log?
     
  6. jesser

    jesser

    Joined:
    Jan 2, 2013
    Posts:
    2
    Did this make it into 4.5.1? One of my sprite animations works fine in 4.3 but does not work in 4.5 or 4.5.1. I am animating sprite alpha.
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Hi,

    it didn't, but it did make it to the next patch release (4.5.1p1). It's going to be out pretty soon.
     
  8. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Patch is out, user should re check