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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Script Randomly Corrupted On Startup

Discussion in 'Scripting' started by Pix77, Aug 20, 2018.

  1. Pix77

    Pix77

    Joined:
    Mar 18, 2018
    Posts:
    21
    Yesterday,I started up Unity to find that a script I had been working on had been corrupted or deleted in some way. The file still exists, but opening it in MonoDevelop only shows that it blank, while opening it in notepad shows that it is empty, but there are blank spaces that are able to be highlighted. Using Recuva didn't help to restore the file, and it only produced this:
    Code (CSharp):
    1.  }?6}h??
    2. ?e???/??kK??##v???????H?z?HeF?????E?4?W??cp?P=?065sB?Q3?/9???5?@?M?9????    ?????????m??#Z?????x??,5?>?,$9?IFJHMZ"/U?????'-t\???X.J?|?v?<???rM?%EK;??U?'???f???o??1#???
    3. GbB??
    4. 8B??H?????C???@?>???9.I x?h?G??????l?
    I'm not sure how to recover it at this point, if it is even possible. In the chance that it is, or if someone is able to do it or wants to look into it, here's the file and the meta data: https://www.dropbox.com/s/ljamctsqr65zy7t/BattleManager.zip?dl=0
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,559
    Have you been opening / saving scripts in different software?

    Is your HDD/SDD healthy?
     
  3. Pix77

    Pix77

    Joined:
    Mar 18, 2018
    Posts:
    21
    No, I've only been using Monodevelop, and I'm fairly certain my HDD is just fine.
     
  4. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,559
    Which version of Unity are you running on? I assume 2017 or earlier, since Unity 2018 don't support Mono Develop.
     
  5. Pix77

    Pix77

    Joined:
    Mar 18, 2018
    Posts:
    21
    Yeah, version 2017.2.0b10, I haven't updated in a while,as you can tell.
     
  6. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,559
    Sorry, I have no idea then. Other scripts working ok?
    And what you see in different text editor?