Error when launching the game

Crash
glavbuchaskona-sudo [github] · 4 months ago

Issue description

The game failed to start.

Reproduction steps

1

Game version and build number

v0.8.4b b593

Operating system

Windows

Attachments

Mafi.DependencyResolverException: Failed to instantiate Mafi.Core.Trains.TrainTrackPathFinder. ---> Mafi.DependencyResolverException: TargetInvocationException thrown by constructor of 'Mafi.Core.Trains.TrainTrackPathFinder'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\2.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\0.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\6.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\3.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\1.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\7.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\4.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\5.generated.tph" is denied.)) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\2.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\0.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\6.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\3.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\1.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\7.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\4.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\5.generated.tph" is denied.) ---> System.UnauthorizedAccessException: Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\2.generated.tph" is denied.
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e]
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode) [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode)
at Mafi.Core.Trains.TrainTrackPathFinder+<getCostsFromFileThreadSafe>d__106.MoveNext () [0x00022]
at System.Linq.Parallel.SelectManyQueryOperator3+SelectManyQueryOperatorEnumerator1[TLeftInput,TRightInput,TOutput,TLeftKey].MoveNext (TOutput& currentElement, System.Linq.Parallel.Pair2[TLeftKey,System.Int32]& currentKey) [0x000a7] at System.Linq.Parallel.StopAndGoSpoolingTask2[TInputOutput,TIgnoreKey].SpoolingWork () [0x00048]
at System.Linq.Parallel.SpoolingTaskBase.Work () [0x0005d]
at System.Linq.Parallel.QueryTask.BaseWork (System.Object unused) [0x00015]
at System.Linq.Parallel.QueryTask+<>c.<.cctor>b__10_0 (System.Object o) [0x00000]
at System.Threading.Tasks.Task.InnerInvoke () [0x00025]
at System.Threading.Tasks.Task.Execute () [0x00000]
--- End of inner exception stack trace ---
at System.Linq.Parallel.QueryTaskGroupState.QueryEnd (System.Boolean userInitiatedDispose) [0x00081]
at System.Linq.Parallel.SpoolingTask.SpoolStopAndGo[TInputOutput,TIgnoreKey] (System.Linq.Parallel.QueryTaskGroupState groupState, System.Linq.Parallel.PartitionedStream2[TElement,TKey] partitions, System.Linq.Parallel.SynchronousChannel1[TInputOutput][] channels, System.Threading.Tasks.TaskScheduler taskScheduler) [0x0004c]
at System.Linq.Parallel.DefaultMergeHelper2[TInputOutput,TIgnoreKey].System.Linq.Parallel.IMergeHelper&lt;TInputOutput>.Execute () [0x0002e] at System.Linq.Parallel.MergeExecutor1[TInputOutput].Execute () [0x00000]
at System.Linq.Parallel.MergeExecutor1[TInputOutput].Execute[TKey] (System.Linq.Parallel.PartitionedStream2[TElement,TKey] partitions, System.Boolean ignoreOutput, System.Linq.ParallelMergeOptions options, System.Threading.Tasks.TaskScheduler taskScheduler, System.Boolean isOrdered, System.Linq.Parallel.CancellationState cancellationState, System.Int32 queryId) [0x00082]
at System.Linq.Parallel.PartitionedStreamMerger1[TOutput].Receive[TKey] (System.Linq.Parallel.PartitionedStream2[TElement,TKey] partitionedStream) [0x00000]
at System.Linq.Parallel.SelectManyQueryOperator3[TLeftInput,TRightInput,TOutput].WrapPartitionedStreamNotIndexed[TLeftKey] (System.Linq.Parallel.PartitionedStream2[TElement,TKey] inputStream, System.Linq.Parallel.IPartitionedStreamRecipient1[TElement] recipient, System.Linq.Parallel.QuerySettings settings) [0x00052] at System.Linq.Parallel.SelectManyQueryOperator3[TLeftInput,TRightInput,TOutput].WrapPartitionedStream[TLeftKey] (System.Linq.Parallel.PartitionedStream2[TElement,TKey] inputStream, System.Linq.Parallel.IPartitionedStreamRecipient1[TElement] recipient, System.Boolean preferStriping, System.Linq.Parallel.QuerySettings settings) [0x0006a]
at System.Linq.Parallel.UnaryQueryOperator2+UnaryQueryOperatorResults+ChildResultsRecipient[TInput,TOutput].Receive[TKey] (System.Linq.Parallel.PartitionedStream2[TElement,TKey] inputStream) [0x00000]
at System.Linq.Parallel.ScanQueryOperator1+ScanEnumerableQueryOperatorResults[TElement].GivePartitionedStream (System.Linq.Parallel.IPartitionedStreamRecipient1[TElement] recipient) [0x00020]
at System.Linq.Parallel.UnaryQueryOperator2+UnaryQueryOperatorResults[TInput,TOutput].GivePartitionedStream (System.Linq.Parallel.IPartitionedStreamRecipient1[TElement] recipient) [0x000b2]
at System.Linq.Parallel.QueryOperator1[TOutput].ExecuteAndGetResultsAsArray () [0x00117] at System.Linq.ParallelEnumerable.ToArray[TSource] (System.Linq.ParallelQuery1[TSource] source) [0x00018]
at Mafi.Core.Trains.TrainTrackPathFinder.loadTrainTrackPathHeuristics (Mafi.Core.IFileSystemHelper fsHelper) [0x000ab]
at Mafi.Core.Trains.TrainTrackPathFinder..ctor (Mafi.Core.Terrain.TerrainOccupancyManager occupancyManager, Mafi.Core.Terrain.TerrainManager terrainManager, Mafi.Core.Trains.TrainTracksGraphManager trainGraphManager, Mafi.Core.Trains.TrainTracksPillarManager tracksPillarManager, Mafi.Option1[T] tracksPolesManager, Mafi.Core.Entities.EntitiesManager entitiesManager, Mafi.Core.IFileSystemHelper fileSystemHelper, Mafi.Core.Prototypes.ProtosDb protosDb, Mafi.Core.CoreModConfig config) [0x00187] at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] --- End of inner exception stack trace --- at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x00284]
--- End of inner exception stack trace ---
at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set`1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x002b2]
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x0008f]
--- End of inner exception stack trace ---
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x000ae]
at Mafi.DependencyResolver.InstantiateAllAndLock () [0x00316]
at Mafi.Core.Game.GameBuilder+<initializeGame>d__5.MoveNext () [0x0007d]
at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__0.MoveNext () [0x0052b]
at Mafi.Unity.GamePlayScene+<buildNewGame>d__27.MoveNext () [0x00095]
at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__112.MoveNext () [0x0013b]
at Mafi.Unity.Main.stepSceneInitialization () [0x000fd]

Game version: 0.8.4b
Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0)
Failed mods: none

Originally posted in Russian
Ошибка при запуске игры
### Issue description Игре не удалось запуститься. ### Reproduction steps 1 ### Game version and build number v0.8.4b b593 ### Operating system Windows ### Attachments Mafi.DependencyResolverException: Failed to instantiate Mafi.Core.Trains.TrainTrackPathFinder. ---> Mafi.DependencyResolverException: TargetInvocationException thrown by constructor of 'Mafi.Core.Trains.TrainTrackPathFinder'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\2.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\0.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\6.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\3.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\1.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\7.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\4.generated.tph" is denied.)) (One or more errors occurred. (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\5.generated.tph" is denied.)) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\2.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\0.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\6.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\3.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\1.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\7.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\4.generated.tph" is denied.) (Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\5.generated.tph" is denied.) ---> System.UnauthorizedAccessException: Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\2.generated.tph" is denied. at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode) [0x00000] at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode) at Mafi.Core.Trains.TrainTrackPathFinder+<getCostsFromFileThreadSafe>d__106.MoveNext () [0x00022] at System.Linq.Parallel.SelectManyQueryOperator`3+SelectManyQueryOperatorEnumerator`1[TLeftInput,TRightInput,TOutput,TLeftKey].MoveNext (TOutput& currentElement, System.Linq.Parallel.Pair`2[TLeftKey,System.Int32]& currentKey) [0x000a7] at System.Linq.Parallel.StopAndGoSpoolingTask`2[TInputOutput,TIgnoreKey].SpoolingWork () [0x00048] at System.Linq.Parallel.SpoolingTaskBase.Work () [0x0005d] at System.Linq.Parallel.QueryTask.BaseWork (System.Object unused) [0x00015] at System.Linq.Parallel.QueryTask+<>c.<.cctor>b__10_0 (System.Object o) [0x00000] at System.Threading.Tasks.Task.InnerInvoke () [0x00025] at System.Threading.Tasks.Task.Execute () [0x00000] --- End of inner exception stack trace --- at System.Linq.Parallel.QueryTaskGroupState.QueryEnd (System.Boolean userInitiatedDispose) [0x00081] at System.Linq.Parallel.SpoolingTask.SpoolStopAndGo[TInputOutput,TIgnoreKey] (System.Linq.Parallel.QueryTaskGroupState groupState, System.Linq.Parallel.PartitionedStream`2[TElement,TKey] partitions, System.Linq.Parallel.SynchronousChannel`1[TInputOutput][] channels, System.Threading.Tasks.TaskScheduler taskScheduler) [0x0004c] at System.Linq.Parallel.DefaultMergeHelper`2[TInputOutput,TIgnoreKey].System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute () [0x0002e] at System.Linq.Parallel.MergeExecutor`1[TInputOutput].Execute () [0x00000] at System.Linq.Parallel.MergeExecutor`1[TInputOutput].Execute[TKey] (System.Linq.Parallel.PartitionedStream`2[TElement,TKey] partitions, System.Boolean ignoreOutput, System.Linq.ParallelMergeOptions options, System.Threading.Tasks.TaskScheduler taskScheduler, System.Boolean isOrdered, System.Linq.Parallel.CancellationState cancellationState, System.Int32 queryId) [0x00082] at System.Linq.Parallel.PartitionedStreamMerger`1[TOutput].Receive[TKey] (System.Linq.Parallel.PartitionedStream`2[TElement,TKey] partitionedStream) [0x00000] at System.Linq.Parallel.SelectManyQueryOperator`3[TLeftInput,TRightInput,TOutput].WrapPartitionedStreamNotIndexed[TLeftKey] (System.Linq.Parallel.PartitionedStream`2[TElement,TKey] inputStream, System.Linq.Parallel.IPartitionedStreamRecipient`1[TElement] recipient, System.Linq.Parallel.QuerySettings settings) [0x00052] at System.Linq.Parallel.SelectManyQueryOperator`3[TLeftInput,TRightInput,TOutput].WrapPartitionedStream[TLeftKey] (System.Linq.Parallel.PartitionedStream`2[TElement,TKey] inputStream, System.Linq.Parallel.IPartitionedStreamRecipient`1[TElement] recipient, System.Boolean preferStriping, System.Linq.Parallel.QuerySettings settings) [0x0006a] at System.Linq.Parallel.UnaryQueryOperator`2+UnaryQueryOperatorResults+ChildResultsRecipient[TInput,TOutput].Receive[TKey] (System.Linq.Parallel.PartitionedStream`2[TElement,TKey] inputStream) [0x00000] at System.Linq.Parallel.ScanQueryOperator`1+ScanEnumerableQueryOperatorResults[TElement].GivePartitionedStream (System.Linq.Parallel.IPartitionedStreamRecipient`1[TElement] recipient) [0x00020] at System.Linq.Parallel.UnaryQueryOperator`2+UnaryQueryOperatorResults[TInput,TOutput].GivePartitionedStream (System.Linq.Parallel.IPartitionedStreamRecipient`1[TElement] recipient) [0x000b2] at System.Linq.Parallel.QueryOperator`1[TOutput].ExecuteAndGetResultsAsArray () [0x00117] at System.Linq.ParallelEnumerable.ToArray[TSource] (System.Linq.ParallelQuery`1[TSource] source) [0x00018] at Mafi.Core.Trains.TrainTrackPathFinder.loadTrainTrackPathHeuristics (Mafi.Core.IFileSystemHelper fsHelper) [0x000ab] at Mafi.Core.Trains.TrainTrackPathFinder..ctor (Mafi.Core.Terrain.TerrainOccupancyManager occupancyManager, Mafi.Core.Terrain.TerrainManager terrainManager, Mafi.Core.Trains.TrainTracksGraphManager trainGraphManager, Mafi.Core.Trains.TrainTracksPillarManager tracksPillarManager, Mafi.Option`1[T] tracksPolesManager, Mafi.Core.Entities.EntitiesManager entitiesManager, Mafi.Core.IFileSystemHelper fileSystemHelper, Mafi.Core.Prototypes.ProtosDb protosDb, Mafi.Core.CoreModConfig config) [0x00187] at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] --- End of inner exception stack trace --- at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set`1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x00284] --- End of inner exception stack trace --- at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set`1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x002b2] at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x0008f] --- End of inner exception stack trace --- at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x000ae] at Mafi.DependencyResolver.InstantiateAllAndLock () [0x00316] at Mafi.Core.Game.GameBuilder+<initializeGame>d__5.MoveNext () [0x0007d] at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__0.MoveNext () [0x0052b] at Mafi.Unity.GamePlayScene+<buildNewGame>d__27.MoveNext () [0x00095] at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x000ad] at Mafi.Unity.Main+<unloadAndStartNewScene>d__112.MoveNext () [0x0013b] at Mafi.Unity.Main.stepSceneInitialization () [0x000fd] Game version: 0.8.4b Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0) Failed mods: none
poltime poltime · 4 months ago

Access to the path "C:\Program Files (x86)\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\2.generated.tph" is denied

20 Showing 1–2 of 2