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: Can't build game randomly?

Discussion in 'Editor & General Support' started by pivotraze, Nov 5, 2012.

  1. pivotraze

    pivotraze

    Joined:
    Feb 4, 2012
    Posts:
    593
    So now I've been getting some weird error. This is around the 300th test start lol.

    Here is the error:

    mainData is corrupt! Remove it and launch again! (Position out of bounds 16284 > 16280)

    I get this after starting up a build of the game. The only problem I've noticed is that the Pause Menu doesn't work now... but I don't understand why...
     
    Last edited: Nov 5, 2012
  2. pivotraze

    pivotraze

    Joined:
    Feb 4, 2012
    Posts:
    593
    Any idea, anyone? This is really annoying lol
     
  3. genail

    genail

    Joined:
    Jul 2, 2012
    Posts:
    1,045
    Do you have in your project two scripts (js, cs or boo) called the same but written in two different languages? I had this case and for me it was having FogOfWar.cs and FogOfWar.js files.
     
  4. pivotraze

    pivotraze

    Joined:
    Feb 4, 2012
    Posts:
    593

    You, sir, are a godsend.
     
  5. juliobds

    juliobds

    Joined:
    Dec 27, 2011
    Posts:
    25
    Thanks for the info, this really helped. :)
     
  6. tinman

    tinman

    Joined:
    Jan 8, 2011
    Posts:
    229
    Wow genial THANK YOU sir!!!!!! Had the same problem.... would you mind me asking how you found the solution??

    Thanks a lot!
     
  7. akevan

    akevan

    Joined:
    Apr 6, 2013
    Posts:
    10
    Godsend++.

    For those of you trying to find duplicate scripts with the same name, in the project view, click the icon with the shapes (search by type) and select Scripts. All your scripts will be in the window in alphabetical order, just look for dupe C# and js ones.
     
  8. DoPie

    DoPie

    Joined:
    Jun 20, 2013
    Posts:
    64
    i have the same problem in Unity 4..
     
  9. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Unity should make a warning for that or ignore one of the files at build time.