Lenny I did that but now Cosmoteer crashes. This is the error message:
Halfling.Serialization.DeserializeException: Deserialization from source "<C:\Program Files\Cosmoteer\Data\rules.txt>" failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Halfling.Serialization.DeserializeException: Deserialization from source "<C:\Program Files\Cosmoteer\Data\Ships\Terran\terran.txt>/Terran" failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Halfling.Serialization.DeserializeException: Deserialization from source "<C:\Program Files\Cosmoteer\Mods\Lafiel.Abh_mod0.4.4\phaser_lance\phaser_lance.txt>/Part" failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Halfling.Serialization.DeserializeException: Deserialization from source "<C:\Program Files\Cosmoteer\Mods\Lafiel.Abh_mod0.4.4\phaser_lance\phaser_lance.txt>/Part/Cost" failed. ---> System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Halfling.Serialization.DefaultSerializers.Int32Serializer.Read(ObjectTextSerializer s, IOTNode node, Type type, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\DefaultSerializers\Int32Serializer.cs:line 58
at Halfling.Serialization.Base.BaseSerializer`10.SpecificDeserializerDeserializationMethod.TryDeserialize(TSerializer s, TSource source, Type type, ReadFlags flags, ProgressTracker progressTracker, Object& obj) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 1957
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker pt, Single weight, String sliceName, TIBaseDeserializer overrideSpecificDeserializer, IGenericDeserializer overrideGenericDeserializer, TIBaseContentDeserializer overrideSpecificContentDeserializer, IGenericContentDeserializer overrideGenericContentDeserializer) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 544
--- End of inner exception stack trace ---
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker pt, Single weight, String sliceName, TIBaseDeserializer overrideSpecificDeserializer, IGenericDeserializer overrideGenericDeserializer, TIBaseContentDeserializer overrideSpecificContentDeserializer, IGenericContentDeserializer overrideGenericContentDeserializer) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 606
at Halfling.Serialization.Base.BaseSerializer`10.ReflectiveRead(TSource source, Object target, DeserializationReflectionInfo dri, Boolean forceNoOption, ProgressTracker pt) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 721
at Halfling.Serialization.Base.BaseSerializer`10.GenericSerialReaderImpl.ReflectiveRead(Object target, Type type, Boolean forceNoOption, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 2632
at Halfling.Serialization.Generic.GenericSerialReader.ReflectiveRead(Object target, Boolean forceNoOption, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Generic\GenericSerialReader.cs:line 134
at Cosmoteer.Ships.Parts.PartRules..ctor(GenericSerialReader reader) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Ships\Parts\PartRules.cs:line 156
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Halfling.Serialization.Base.BaseSerializer`10.GenericConstructorDeserializationMethod.TryDeserialize(TSerializer s, TSource source, Type type, ReadFlags flags, ProgressTracker progressTracker, Object& obj) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 2226
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker pt, Single weight, String sliceName, TIBaseDeserializer overrideSpecificDeserializer, IGenericDeserializer overrideGenericDeserializer, TIBaseContentDeserializer overrideSpecificContentDeserializer, IGenericContentDeserializer overrideGenericContentDeserializer) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 544
--- End of inner exception stack trace ---
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker pt, Single weight, String sliceName, TIBaseDeserializer overrideSpecificDeserializer, IGenericDeserializer overrideGenericDeserializer, TIBaseContentDeserializer overrideSpecificContentDeserializer, IGenericContentDeserializer overrideGenericContentDeserializer) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 606
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 172
at Halfling.Serialization.DefaultSerializers.ArraySerializer.FillArrayRanks(Array a, Type elementType, ObjectTextSerializer serializer, IOTNode curNode, List`1 curIndices, Int32 numRanks, ProgressTracker pt) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\DefaultSerializers\ArraySerializer.cs:line 332
at Halfling.Serialization.DefaultSerializers.ArraySerializer.FillArrayRanks(Array a, Type elementType, ObjectTextSerializer serializer, IOTNode curNode, List`1 curIndices, Int32 numRanks, ProgressTracker pt) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\DefaultSerializers\ArraySerializer.cs:line 352
at Halfling.Serialization.DefaultSerializers.ArraySerializer.Read(ObjectTextSerializer s, IOTNode node, Type type, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\DefaultSerializers\ArraySerializer.cs:line 107
at Halfling.Serialization.Base.BaseSerializer`10.SpecificDeserializerDeserializationMethod.TryDeserialize(TSerializer s, TSource source, Type type, ReadFlags flags, ProgressTracker progressTracker, Object& obj) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 1957
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker pt, Single weight, String sliceName, TIBaseDeserializer overrideSpecificDeserializer, IGenericDeserializer overrideGenericDeserializer, TIBaseContentDeserializer overrideSpecificContentDeserializer, IGenericContentDeserializer overrideGenericContentDeserializer) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 544
at Halfling.Serialization.Base.BaseSerializer`10.ReflectiveRead(TSource source, Object target, DeserializationReflectionInfo dri, Boolean forceNoOption, ProgressTracker pt) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 721
at Halfling.Serialization.Base.BaseSerializer`10.GenericSerialReaderImpl.ReflectiveRead(Object target, Type type, Boolean forceNoOption, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 2632
at Halfling.Serialization.Generic.GenericSerialReader.ReflectiveRead(Object target, Boolean forceNoOption, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Generic\GenericSerialReader.cs:line 134
at Cosmoteer.Ships.ShipRules..ctor(GenericSerialReader reader, ProgressTracker pt) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Ships\ShipRules.cs:line 117
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Halfling.Serialization.Base.BaseSerializer`10.GenericConstructorDeserializationMethod.TryDeserialize(TSerializer s, TSource source, Type type, ReadFlags flags, ProgressTracker progressTracker, Object& obj) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 2226
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker pt, Single weight, String sliceName, TIBaseDeserializer overrideSpecificDeserializer, IGenericDeserializer overrideGenericDeserializer, TIBaseContentDeserializer overrideSpecificContentDeserializer, IGenericContentDeserializer overrideGenericContentDeserializer) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 544
--- End of inner exception stack trace ---
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker pt, Single weight, String sliceName, TIBaseDeserializer overrideSpecificDeserializer, IGenericDeserializer overrideGenericDeserializer, TIBaseContentDeserializer overrideSpecificContentDeserializer, IGenericContentDeserializer overrideGenericContentDeserializer) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 606
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 172
at Halfling.Serialization.DefaultSerializers.ArraySerializer.FillArrayRanks(Array a, Type elementType, ObjectTextSerializer serializer, IOTNode curNode, List`1 curIndices, Int32 numRanks, ProgressTracker pt) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\DefaultSerializers\ArraySerializer.cs:line 332
at Halfling.Serialization.DefaultSerializers.ArraySerializer.FillArrayRanks(Array a, Type elementType, ObjectTextSerializer serializer, IOTNode curNode, List`1 curIndices, Int32 numRanks, ProgressTracker pt) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\DefaultSerializers\ArraySerializer.cs:line 352
at Halfling.Serialization.DefaultSerializers.ArraySerializer.Read(ObjectTextSerializer s, IOTNode node, Type type, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\DefaultSerializers\ArraySerializer.cs:line 107
at Halfling.Serialization.Base.BaseSerializer`10.SpecificDeserializerDeserializationMethod.TryDeserialize(TSerializer s, TSource source, Type type, ReadFlags flags, ProgressTracker progressTracker, Object& obj) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 1957
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker pt, Single weight, String sliceName, TIBaseDeserializer overrideSpecificDeserializer, IGenericDeserializer overrideGenericDeserializer, TIBaseContentDeserializer overrideSpecificContentDeserializer, IGenericContentDeserializer overrideGenericContentDeserializer) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 544
at Halfling.Serialization.Base.BaseSerializer`10.ReflectiveRead(TSource source, Object target, DeserializationReflectionInfo dri, Boolean forceNoOption, ProgressTracker pt) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 721
at Halfling.Serialization.Base.BaseSerializer`10.GenericSerialReaderImpl.ReflectiveRead(Object target, Type type, Boolean forceNoOption, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 2632
at Halfling.Serialization.Generic.GenericSerialReader.ReflectiveRead(Object target, Boolean forceNoOption, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Generic\GenericSerialReader.cs:line 134
at Cosmoteer.Rules..ctor(GenericSerialReader reader, ProgressTracker pt) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Rules.cs:line 82
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Halfling.Serialization.Base.BaseSerializer`10.GenericConstructorDeserializationMethod.TryDeserialize(TSerializer s, TSource source, Type type, ReadFlags flags, ProgressTracker progressTracker, Object& obj) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 2226
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker pt, Single weight, String sliceName, TIBaseDeserializer overrideSpecificDeserializer, IGenericDeserializer overrideGenericDeserializer, TIBaseContentDeserializer overrideSpecificContentDeserializer, IGenericContentDeserializer overrideGenericContentDeserializer) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 544
--- End of inner exception stack trace ---
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker pt, Single weight, String sliceName, TIBaseDeserializer overrideSpecificDeserializer, IGenericDeserializer overrideGenericDeserializer, TIBaseContentDeserializer overrideSpecificContentDeserializer, IGenericContentDeserializer overrideGenericContentDeserializer) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 606
at Halfling.Serialization.Base.BaseSerializer`10.Read(TSource source, Type type, ReadFlags flags, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 172
at Halfling.Serialization.Base.BaseSerializer`10.Read[T](TSource source, ReadFlags flags, ProgressTracker progressTracker) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Serialization\Base\BaseSerializer.cs:line 184
at Cosmoteer.Assets.LoaderThread() in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Assets.cs:line 237
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()