Not working

hrystofovicholexander-c [github] · 11 months ago

Issue description

The game could not be initialized. Please send us a bug report if the problem happens again.

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.UnauthorizedAccessException: Access to the path "E:\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\0.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.loadTrainTrackPathHeuristics (Mafi.Core.IFileSystemHelper fsHelper) [0x0009c]
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.Core.Entities.EntitiesManager entitiesManager, Mafi.Core.Ports.Io.IoPortsManager portsManager, Mafi.Core.IFileSystemHelper fileSystemHelper, Mafi.Core.Prototypes.ProtosDb protosDb, Mafi.Core.CoreModConfig config) [0x0013f]
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) [0x00260] --- End of inner exception stack trace --- at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x0028b]
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x0008e]
--- End of inner exception stack trace ---
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x000aa]
at Mafi.DependencyResolver.InstantiateAllAndLock () [0x002e6]
at Mafi.Core.Game.GameBuilder+<initializeGame>d__6.MoveNext () [0x00077]
at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__2.MoveNext () [0x0040a]
at Mafi.Unity.MapEditor.MapEditorScene+<initializeNewMap>d__16.MoveNext () [0x000dc]
at Mafi.Unity.MapEditor.MapEditorScene+<Initialize>d__14.MoveNext () [0x000cb]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__90.MoveNext () [0x0011b]
at Mafi.Unity.Main.stepSceneInitialization () [0x000ee]

Reproduction steps

The game could not be initialized. Please send us a bug report if the problem happens again.

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.UnauthorizedAccessException: Access to the path "E:\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\0.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.loadTrainTrackPathHeuristics (Mafi.Core.IFileSystemHelper fsHelper) [0x0009c]
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.Core.Entities.EntitiesManager entitiesManager, Mafi.Core.Ports.Io.IoPortsManager portsManager, Mafi.Core.IFileSystemHelper fileSystemHelper, Mafi.Core.Prototypes.ProtosDb protosDb, Mafi.Core.CoreModConfig config) [0x0013f]
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) [0x00260] --- End of inner exception stack trace --- at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x0028b]
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x0008e]
--- End of inner exception stack trace ---
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x000aa]
at Mafi.DependencyResolver.InstantiateAllAndLock () [0x002e6]
at Mafi.Core.Game.GameBuilder+<initializeGame>d__6.MoveNext () [0x00077]
at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__2.MoveNext () [0x0040a]
at Mafi.Unity.MapEditor.MapEditorScene+<initializeNewMap>d__16.MoveNext () [0x000dc]
at Mafi.Unity.MapEditor.MapEditorScene+<Initialize>d__14.MoveNext () [0x000cb]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__90.MoveNext () [0x0011b]
at Mafi.Unity.Main.stepSceneInitialization () [0x000ee]

Game version and build number

v0.7.9 b495

Operating system

Windows

Originally posted in Ukrainian
не працює
### Issue description Гру не вдалось ініціалізували. Будь-ласка, відправте нам звіт про помилку якщо проблема повториться. 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.UnauthorizedAccessException: Access to the path "E:\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\0.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.loadTrainTrackPathHeuristics (Mafi.Core.IFileSystemHelper fsHelper) [0x0009c] 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.Core.Entities.EntitiesManager entitiesManager, Mafi.Core.Ports.Io.IoPortsManager portsManager, Mafi.Core.IFileSystemHelper fileSystemHelper, Mafi.Core.Prototypes.ProtosDb protosDb, Mafi.Core.CoreModConfig config) [0x0013f] 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) [0x00260] --- 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) [0x0028b] at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x0008e] --- End of inner exception stack trace --- at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x000aa] at Mafi.DependencyResolver.InstantiateAllAndLock () [0x002e6] at Mafi.Core.Game.GameBuilder+<initializeGame>d__6.MoveNext () [0x00077] at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__2.MoveNext () [0x0040a] at Mafi.Unity.MapEditor.MapEditorScene+<initializeNewMap>d__16.MoveNext () [0x000dc] at Mafi.Unity.MapEditor.MapEditorScene+<Initialize>d__14.MoveNext () [0x000cb] at Mafi.Unity.Main+<unloadAndStartNewScene>d__90.MoveNext () [0x0011b] at Mafi.Unity.Main.stepSceneInitialization () [0x000ee] ### Reproduction steps Гру не вдалось ініціалізували. Будь-ласка, відправте нам звіт про помилку якщо проблема повториться. 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.UnauthorizedAccessException: Access to the path "E:\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\0.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.loadTrainTrackPathHeuristics (Mafi.Core.IFileSystemHelper fsHelper) [0x0009c] 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.Core.Entities.EntitiesManager entitiesManager, Mafi.Core.Ports.Io.IoPortsManager portsManager, Mafi.Core.IFileSystemHelper fileSystemHelper, Mafi.Core.Prototypes.ProtosDb protosDb, Mafi.Core.CoreModConfig config) [0x0013f] 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) [0x00260] --- 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) [0x0028b] at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x0008e] --- End of inner exception stack trace --- at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x000aa] at Mafi.DependencyResolver.InstantiateAllAndLock () [0x002e6] at Mafi.Core.Game.GameBuilder+<initializeGame>d__6.MoveNext () [0x00077] at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__2.MoveNext () [0x0040a] at Mafi.Unity.MapEditor.MapEditorScene+<initializeNewMap>d__16.MoveNext () [0x000dc] at Mafi.Unity.MapEditor.MapEditorScene+<Initialize>d__14.MoveNext () [0x000cb] at Mafi.Unity.Main+<unloadAndStartNewScene>d__90.MoveNext () [0x0011b] at Mafi.Unity.Main.stepSceneInitialization () [0x000ee] ### Game version and build number v0.7.9 b495 ### Operating system Windows
poltime poltime · 11 months ago

Access to the path "E:\Captain of Industry (Early Access)\Captain of Industry\TrainTrackPathHeuristics\0.generated.tph" is denied.

Some program or operating system is blocking access to the folder.

Loading a new map failed

15 Showing 1–2 of 2