I keep getting this error, which occurs upon startup:
MODS ARE ENABLED. THIS CRASH MAY BE CAUSED BY A MOD.
PLEASE REPORT IT TO THE CREATOR OF THE MOD.
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. ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: mipLevel
at Halfling.Graphics.Texture.GetMipLevelSize(Int32 mipLevel, IntVector2D level0Size) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Graphics\Texture.cs:line 477
at Halfling.Graphics.D3D11.D3D11Texture.AllocMipLevels() in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingPlatformWDX\Graphics\D3D11\D3D11Texture.cs:line 500
at Halfling.Graphics.D3D11.D3D11Texture..ctor(D3D11GraphicsManager gfx, Fast2DArray`1 data, Int32 mipLevels, AbsolutePath filepath, IntColor colorKey, Boolean fixTransparentColors, Boolean preMultiplyByAlpha, PerformanceMode perfMode) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingPlatformWDX\Graphics\D3D11\D3D11Texture.cs:line 245
at Halfling.Graphics.D3D11.D3D11TextureFactory.CreateTexture(Fast2DArray`1 array, AbsolutePath filepath, TextureSampleMode sampleMode, TextureUVMode uMode, TextureUVMode vMode, Int32 mipLevels, IntColor colorKey, Boolean fixTransparentColors, Boolean preMultiplyByAlpha, PerformanceMode perfMode) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingPlatformWDX\Graphics\D3D11\D3D11TextureFactory.cs:line 80
at Halfling.Graphics.TextureFactory.Create(Fast2DArray`1 array, TextureSampleMode sampleMode, TextureUVMode uMode, TextureUVMode vMode, Int32 mipLevels, IntColor colorKey, Boolean fixTransparentColors, Boolean preMultiplyByAlpha, PerformanceMode perfMode) in C:\Users\Walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Graphics\TextureFactory.cs:line 168
at Cosmoteer.Ships.Rendering.AtlasTools.CreateAtlasTextures(IEnumerable1 bitmaps, IntVector2D maxSize, Boolean powerOf2, Int32 padding, ICollection
1 resultRects, TextureSampleMode sampleMode, TextureUVMode uMode, TextureUVMode vMode, Int32 mipLevels, IntColor colorKey, Boolean fixTransparentColors, Boolean preMultiplyByAlpha, PerformanceMode perfMode) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Ships\Rendering\AtlasTools.cs:line 249
at Cosmoteer.Ships.Rendering.AtlasTools.BuildAtlases(IEnumerable`1 inputAtlasSprites, AtlasTextureParams parameters) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Ships\Rendering\AtlasTools.cs:line 140
at Cosmoteer.Ships.ShipRules..ctor(GenericSerialReader reader, ProgressTracker pt) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Ships\ShipRules.cs:line 144
--- 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 2241
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 545
--- 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 607
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 173
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 1972
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 545
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 681
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 2647
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 103
--- 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 2241
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 545
--- 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 607
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 173
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 185
at Cosmoteer.Assets.LoaderThread() in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Assets.cs:line 275
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()