Stardew Valley

Stardew Valley

View Stats:
Chef 22 Dec, 2016 @ 8:46pm
Having trouble trying to start a new game
I can launch the game without any problem but when I try to start a new game, I get a Stardew Valley has stopped working error. Can't seem to find anything that will fix my problem.
Heres the error log:



Message: The type initializer for 'StardewValley.SaveGame' threw an exception.
InnerException: System.BadImageFormatException: Could not load file or assembly '0 bytes loaded from System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. An attempt was made to load a program with an incorrect format.
File name: '0 bytes loaded from System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Bad IL format.
at System.Reflection.RuntimeAssembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection, SecurityContextSource securityContextSource)
at System.Reflection.Assembly.Load(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence securityEvidence)
at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, Type[] extraTypes)
at StardewValley.SaveGame..cctor()


Stack Trace: at StardewValley.SaveGame.<getSaveEnumerator>d__46.MoveNext()
at StardewValley.Menus.SaveGameMenu.update(GameTime time)
at StardewValley.Game1.updateActiveMenu(GameTime gameTime)
at StardewValley.Game1.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at StardewValley.Program.Main(String[] args)
Last edited by Chef; 22 Dec, 2016 @ 8:49pm
< >
Showing 1-7 of 7 comments
dino_inc 22 Dec, 2016 @ 10:24pm 
Do other saves work, or have you never made a save?
Chef 23 Dec, 2016 @ 11:03am 
Originally posted by dino_inc:
Do other saves work, or have you never made a save?

I`ve never made a save on this computer, on my laptop that is now broken I have a save I used to play on. My laptop never had this issue.
Last edited by Chef; 23 Dec, 2016 @ 11:06am
dino_inc 23 Dec, 2016 @ 11:11am 
Originally posted by Beanie King:
Originally posted by dino_inc:
Do other saves work, or have you never made a save?

I`ve never made a save on this computer, on my laptop that is now broken I have a save I used to play on. My laptop never had this issue.
Try moving that save to the computer, and see if it can load.
Chef 23 Dec, 2016 @ 11:17am 
Originally posted by dino_inc:
Originally posted by Beanie King:

I`ve never made a save on this computer, on my laptop that is now broken I have a save I used to play on. My laptop never had this issue.
Try moving that save to the computer, and see if it can load.

How do I do that if my laptop doesn`t even turn on?
dino_inc 23 Dec, 2016 @ 12:53pm 
Well then, generic fixes it is. (Be sure to test the game between each step):
  1. Verify the cache.
  2. Plug in headphones.
  3. Ensure Steam is not running in compatibility mode.
  4. Delete startup_preferences.
  5. Restart your computer.
  6. Delete %appdata%/Stardew Valley. It is a hidden file, so search for it directly through windows search. (Backup your saves, beforehand)
  7. Disable Antivirus
  8. Run as administrator
  9. Reinstall the game.
  10. Reinstall XNA.
  11. Reinstall directx9.
  12. Update graphics drivers and sound card drivers.
If all of these don't work, post your error log from %appdata%/Stardew Valley/Errorlogs, it will help me to pinpoint the problem.

Kaziedell 27 Dec, 2016 @ 12:24pm 
InnerException: System.InvalidOperationException: No se puede generar una clase temporal (result=1).
error CS2001: No se encuentra el archivo de código fuente 'C:\WINDOWS\TEMP\w5ldckwv.0.cs'

en System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
en System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
en System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
en System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace, String location, Evidence evidence)
en System.Xml.Serialization.XmlSerializer..ctor(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, String defaultNamespace, String location, Evidence evidence)
en System.Xml.Serialization.XmlSerializer..ctor(Type type, Type[] extraTypes)
en StardewValley.SaveGame..cctor()
Stack Trace: en StardewValley.SaveGame.<getSaveEnumerator>d__46.MoveNext()
en StardewValley.Menus.SaveGameMenu.update(GameTime time)
en StardewValley.Game1.updateActiveMenu(GameTime gameTime)
en StardewValley.Game1.Update(GameTime gameTime)
en Microsoft.Xna.Framework.Game.Tick()
en Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
en Microsoft.Xna.Framework.GameHost.OnIdle()
en Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
en Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
en System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
en System.Windows.Forms.Application.Run(Form mainForm)
en Microsoft.Xna.Framework.WindowsGameHost.Run()
en Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
en StardewValley.Program.Main(String[] args)

Help me
dino_inc 27 Dec, 2016 @ 5:09pm 
Try running the game/Steam in admin mode.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: 22 Dec, 2016 @ 8:46pm
Posts: 7