1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

Got it to compile but "world file is corrupted and could not be loaded"

Discussion in 'Source Code' started by DoubleCouponDay, Oct 13, 2016.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. DoubleCouponDay

    DoubleCouponDay Apprentice Engineer

    Messages:
    123
    So im not using a saved game from the actual game; i started a new one.

    What happened was i accidentally tried to add one of the dll's to another project while the source code game was running; this crashed my computer spectacularly! When i booted up again, the game had gone from 60fps to 1fps. I tried selecting solution > clean solution then i rebuilt the entire solution before compiling. After that, i cant create any new worlds because it comes up with that red box error message: "world file is corrupted and could not load"!

    Any idea how i fix this? :stare:
    --- Automerge ---
    edit
    I got it to work by creating a new world with a brand new name every time i boot up source compiled version.
     
    Last edited: Oct 24, 2016
  2. KundanB

    KundanB Trainee Engineer

    Messages:
    7
    So you didn't just just get this error without doing anything? For me I can't start any worlds/tutorials/scenarios without this error popping up. Basically can't get into game.
    Any ideas?
     
  3. Phoera

    Phoera Senior Engineer

    Messages:
    1,713
    try read log.
     
  4. KundanB

    KundanB Trainee Engineer

    Messages:
    7
    Where can I find this log file?
     
  5. Phoera

    Phoera Senior Engineer

    Messages:
    1,713
    C:\Users\<User>\AppData\Roaming\SpaceEngineers\SpaceEngineers.log
     
  6. DoubleCouponDay

    DoubleCouponDay Apprentice Engineer

    Messages:
    123
    Do you still get a problem when you make a new world every time you boot up source compiled version? If so then i cant help because thats how i got it working :)
     
  7. KundanB

    KundanB Trainee Engineer

    Messages:
    7
    Yeah, I can't load worlds from the source compiled version, because of this "World is corrupt" error meessage. I can't even create worlds.
    --- Automerge ---
    I don't understand what this is telling me. Is this file related to the source compiled version or the steam version? Because my steam version runs completely well.
     
    • Like Like x 1
  8. Phoera

    Phoera Senior Engineer

    Messages:
    1,713
    there must be logs from last run.
    if you did not changed log path they will be there.
     
  9. KundanB

    KundanB Trainee Engineer

    Messages:
    7
    Okay so after finding the hidden files, it says this:

    Exception occured: System.TypeInitializationException: The type initializer for 'VRage.Scripting.MyScriptCompiler' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Reflection.Metadata, Version=1.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Reflection.Metadata, Version=1.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

    After I close the Space engineers application it tells me vrage.scripting.myscriptcompiler threw a TypeInitializationException
     
  10. Phoera

    Phoera Senior Engineer

    Messages:
    1,713
    you miss that file.(System.Reflection.Metadata.dll)
    take it from original SE.
     
  11. KundanB

    KundanB Trainee Engineer

    Messages:
    7
    Where am I supposed to put this .dll file? it says I've already got it installed when I installed Nuget using nuget package manager

    SpaceEngineers-master\packages\System.Reflection.Metadata.1.3.0\lib\portable-net45+win8\ >System.Reflection.Metadata.dll<
     
Thread Status:
This last post in this thread was made more than 31 days old.