• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by th3jcrew · Mar 28, 2014 at 11:03 AM · build-error

Unity Game level 0 is corrupted HELP!

So my game works in editor but when i build it say one of my levels is corrupted? I'm not sure how to fix this. please help all help is appreciated this is what i get in the development log: The file '/Users/joshua/Documents/Fps/Test_01.app/Contents/Data/level0' is corrupted! remove it and launch unity again! [position out of bounds! 16068 > 16064]

The file '/Users/joshua/Documents/Fps/Test_01.app/Contents/Data/level0' is corrupted! remove it and launch unity again! [position out of bounds! 16068 > 16064]

The file '/Users/joshua/Documents/Fps/Test_01.app/Contents/Data/level0' is corrupted! remove it and launch unity again! [position out of bounds! 16068 > 16064]

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Gruffy · Mar 28, 2014 at 11:08 AM 1
Share

Hey bud. Welcome to Answers.

A few things, could you possibly upload the image you have said you have attached, also a before you deploy, what sort of yellow warning do you have in your console/debug window of the Unity IDE, if any ?

Perhaps, you might elaborate on anything that happens when you try to load this level in your build? a complete crash, a game freeze etc.

Overall, withthe information you have provided, most likely, you have not added the level you were trying to get to in game, to your Unity build/ deployment. But thats without any info and going off of experience Take care for now bud and hope that helps some.. grow your question`s resources by adding what you can as we cant see what you see remember, it will get resolved faster no doubt. Gruffy

avatar image th3jcrew · Mar 28, 2014 at 11:38 AM 0
Share

Hey thanks for replying This is what is exactly written in the Development log:

The file '/Users/joshua/Documents/Fps/Test_01.app/Contents/Data/level0' is corrupted! remove it and launch unity again! [position out of bounds! 16068 > 16064]

The file '/Users/joshua/Documents/Fps/Test_01.app/Contents/Data/level0' is corrupted! remove it and launch unity again! [position out of bounds! 16068 > 16064]

The file '/Users/joshua/Documents/Fps/Test_01.app/Contents/Data/level0' is corrupted! remove it and launch unity again! [position out of bounds! 16068 > 16064]

if you could shred some light on my problem that would be great :)

avatar image th3jcrew · Mar 28, 2014 at 11:47 AM 0
Share

And also it loads the level but it glitches out i can move shoot but i can't move my camera and also it has some splashes of blue on the screen and some of the screen is duplicated its really hard to explain sorry if I'm being very brief and unity answers won't let me upload a screen shot for some reason :( and also it plays normal in the editor its fine everything works but when i build it for mac standalone it loads my menu i click start it loads the level but as i said it flips out the screen. i think one of my levels might be corrupted but i don't know how to fix it

avatar image Lo0NuhtiK · Mar 29, 2014 at 08:16 AM 0
Share

@th3jcrew : I just rejected your question out of the moderation queue because it was the exact same question you're asking here in this topic. If you want to bump your unresolved topics either click the edit button on the post and re-submit it or post a comment.

avatar image th3jcrew · Mar 29, 2014 at 12:02 PM 0
Share

sorry its just so frustrating that i finish a game i spent 2 months on! and then it dosen't work

Show more comments

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by meat5000 · Jun 22, 2014 at 10:52 PM

You may have used

 #if UNITY_EDITOR

to conditionally remove a variable by the Preprocessor.

This was one cause anyway...

http://forum.unity3d.com/threads/level-is-corrupt.78201/

http://forum.unity3d.com/threads/problem-with-build.117625/[link text][2]

http://forum.unity3d.com/threads/fatal-content-error-web-player-our-fix.125224/#post-842842

[2]: http://forum.unity3d.com/threads/problem-with-build.117625/

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Graham-Dunnett · Mar 28, 2014 at 11:45 AM

That usually means that the level data was built using a different version of Unity to the run time. Maybe create a totally new build and see if that has the same problem.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image th3jcrew · Mar 28, 2014 at 11:57 AM 0
Share

I Built the game again for standalone still had the problem :( and i finished the game i just need to build it unity is so frustrating at times >:(

avatar image
0
Wiki

Answer by SugoiDev · Jun 19, 2014 at 12:49 AM

This bug might be related. It exists in the latest version (today 4.5.1f3) and for what I could tell it exists in previous versions as well.

This is a repro case:

A generic class with a generic array using UnityEngine;

 public class GenericBaseClass<T> : MonoBehaviour {
     [SerializeField]
     private T[] objects;
 }

A derived empty class (might not even be necessary)

 public class DerivedClass : GenericBaseClass<DerivedClass> {}


Now create any object and attach the DerivedClass component to it. Compile your build with debug enabled and run it and the error will show.

The current temporary fix I found was to use a Object[] or GameObject[] instead of T[] (losing type safety) and use GetComponent() (and casting to T) to retrieve the T (losing some performance).

This issue does not seem to affect the webplayer (at least my repro case doesn't affect the webplayer, but I didn't run extensive tests).

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

How can I stop the variable values reverting to its default values after being built? 1 Answer

Build failure: Failed to build apk 0 Answers

Building project error because of scripting backend: IL2CPP works, .NET not! 0 Answers

Unity 2018.2.9 - Android GalaxyS8 enable switch fullscreen mode to 16:9 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges