Author Topic: Game Crash before start with 2.0 stock [SOLVED]  (Read 2153 times)

Offline RCIX

  • Core Member Mark II
  • *****
  • Posts: 2,808
  • Avatar credit goes to Spookypatrol on League forum
Game Crash before start with 2.0 stock [SOLVED]
« on: November 19, 2009, 03:38:13 am »
So i reinstalled the game (from a 1.201 installer) after having some music related error. I updated to 2.000 via the updater then attempted to run the game. A box saying "AI War needs to close, sorry for the inconvenience" pops up. The Unhandled errors log registers the following:

11/19/2009 1:25:56 AM (2.0)
-----------------------------------CurrentDomain_UnhandledException-----------------------------------System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.Serialization.SerializationException: Member 'LicenseKey' was not found.
   at System.Runtime.Serialization.SerializationInfo.GetElement(String name, Type& foundType)
   at System.Runtime.Serialization.SerializationInfo.GetString(String name)
   at AIWar.GameSettings..ctor(SerializationInfo Info, StreamingContext Stream) in C:\vcprojs\AIWar\Framework\GameSettings.cs:line 413
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
   at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)
   at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
   at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
   at System.Runtime.Serialization.ObjectManager.DoFixups()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at AIWar.Serializer.Deserialize(Byte[] Data) in C:\vcprojs\AIWar\Framework\Serializer.cs:line 31
   at AIWar.GameSettings.LoadFromDisk() in C:\vcprojs\AIWar\Framework\GameSettings.cs:line 660
   at AIWar.GameForm..ctor() in C:\vcprojs\AIWar\GameForm.cs:line 220
   at AIWar.Program.Main() in C:\vcprojs\AIWar\Program.cs:line 21

Is this because i had a prerelease installed, which causes the game to get data wrong from my settings file?
« Last Edit: November 19, 2009, 10:45:46 pm by RCIX »
Avid League player and apparently back from the dead!

If we weren't going for your money, you wouldn't have gotten as much value for it!

Oh, wait... *causation loop detonates*

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Game Crash before start with 2.0 stock
« Reply #1 on: November 19, 2009, 09:31:45 am »
Yep... it's the settings.dat, which was updated to only work with the 2.001 prereleases.  You'd need to update to at least 2.001A, I think, for it to be able to load that settings.dat file.  If you don't want to for the moment, you can simply rename it to settings.dat2, and the game will create a new settings.dat.  That would make you have to redo all your settings, profile data, local achievements and high scores, etc, though -- the game is not meant to be downgrade-safe, it's only upgrade-safe.  Version J should be out today, which will hopefully prevent your other problem from crashing the game, but I'm still not sure what the cause of it is since the ogg refresh didn't fix it.  Sorry for the trouble here!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline RCIX

  • Core Member Mark II
  • *****
  • Posts: 2,808
  • Avatar credit goes to Spookypatrol on League forum
Re: Game Crash before start with 2.0 stock
« Reply #2 on: November 19, 2009, 05:57:54 pm »
All right. Just wanted to report it in case it was something else! Thanks!
Avid League player and apparently back from the dead!

If we weren't going for your money, you wouldn't have gotten as much value for it!

Oh, wait... *causation loop detonates*

Offline RCIX

  • Core Member Mark II
  • *****
  • Posts: 2,808
  • Avatar credit goes to Spookypatrol on League forum
Re: Game Crash before start with 2.0 stock [SOLVED]
« Reply #3 on: November 19, 2009, 10:46:04 pm »
Ok a reinstall fixed it! Thanks for all of the help!
Avid League player and apparently back from the dead!

If we weren't going for your money, you wouldn't have gotten as much value for it!

Oh, wait... *causation loop detonates*

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Game Crash before start with 2.0 stock [SOLVED]
« Reply #4 on: November 19, 2009, 10:54:05 pm »
My pleasure!  Glad that got resolved. :)
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!