Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 JackHK · Jun 19, 2014 at 07:05 PM · assetperforce

ScriptableObject Asset Files Invalid Header, Perforce Revision

Hello,

I'm currently working on a project using Perforce to handle version control and syncing with team members. One thing we've recently noticed is that our ScriptableObjects stored in .asset files are always corrupt upon import from another client.

The specific error we receive on import is

"Fatal error while reading file. Header is invalid!"

followed by

"Failed to read file 'DirPathHere\RegularObjectives2.asset' because it is corrupted."

I have not seen any posts or information on UnityAnswers, or the Internet, regarding .asset files being corrupted by Perforce.

We're using P4Connect, our Version Control setting (Edit->ProjectSetting->EditorSetting) is set to Visible Meta Files, and our Asset Serialization is set to Mixed.

Comment
Add comment · Show 4
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 ReticentCouch · Jun 27, 2014 at 03:55 PM 0
Share

Having the exact same issue here with Prefabs. Have you found a workaround?

avatar image stevethorne · Jun 27, 2014 at 03:57 PM 0
Share

Is it possible that one person submitted it using binary files ins$$anonymous$$d of text files?

avatar image JackHK · Jun 27, 2014 at 08:42 PM 0
Share

Unfortunately, I have not yet found a workaround, Reticent.

I'm unsure, steve, if that has occurred. We've since deleted the files and redone them but the error persists.

avatar image KidSquid · Oct 14, 2014 at 06:52 PM 0
Share

Have you opened the header, and you should be in forced Text, not mixed.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by jkhong · Mar 29, 2015 at 06:39 PM

If it can help, we had this problem but only on one developper computer

The data on the server are right

The perforce client of this developper has 2 pending change list (let's say with revision 1 and 2). Each pending change list has modifications on the same file

the version 2 is committed so everybody else is able to get non-corrupted file

but the developper, with its local settings (with the remaining unuseful pending changes list version 1), gets corrupted files

So the solution : clean your perforce client by removing/reverting unused pending changes list

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.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Why i cant see anything? ANYTHING! 1 Answer

Is the AngryAnt's Path still compatible with Unity 4.1? 0 Answers

Allowing for download of extra levels by players 1 Answer

Asset store tools broken? 1 Answer

How to make the new FP-Character react to forces? 1 Answer


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