Cgameworld / MapTextureReplacer

Easily replace grass, dirt and cliff map textures in your game
Other
3 stars 1 forks source link

MapTexture causing CS2 to become non-responsive and crash #2

Open Sebbyyy opened 2 months ago

Sebbyyy commented 2 months ago

Seems to happen at the main menu load or on main menu with map texture failing to load - I've isolated this error that i've seen a few times. Loading is much less uneventful with map texture replacer not loaded.

Fallback handler could not load library C:/Steam/steamapps/common/Cities Skylines II/Cities2_Data/MonoBleedingEdge/data-0000022D3E105920.dll Fallback handler could not load library C:/Steam/steamapps/common/Cities Skylines II/Cities2_Data/MonoBleedingEdge/data-0000022F2D71A190.dll Fallback handler could not load library C:/Steam/steamapps/common/Cities Skylines II/Cities2_Data/MonoBleedingEdge/data-0000022F2D765A20.dll Fallback handler could not load library C:/Steam/steamapps/common/Cities Skylines II/Cities2_Data/MonoBleedingEdge/data-0000022F2D7A66F0.dll Fallback handler could not load library C:/Steam/steamapps/common/Cities Skylines II/Cities2_Data/MonoBleedingEdge/data-0000022DDED38040.dll [Modding] [ERROR] Error initializing mod MapTextureReplacer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (MapTextureReplacer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) System.IO.IOException: The process cannot access the file because it is being used by another process.

at System.IO.LongFile.GetFileHandle (System.String normalizedPath, System.Guid guid, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.IO.FileOptions options) [0x00035] in <6af4bcb8ebe247b1981418a048411c4f>:0 at System.IO.LongFile.Open (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.Action disposeCallback) [0x00017] in <6af4bcb8ebe247b1981418a048411c4f>:0 at System.IO.LongFile.Open (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Action disposeCallback) [0x00000] in <6af4bcb8ebe247b1981418a048411c4f>:0 at System.IO.LongFile.OpenReadWrite (System.String path, System.Action disposeCallback) [0x00000] in <6af4bcb8ebe247b1981418a048411c4f>:0 at Colossal.IO.AssetDatabase.FileSystemDataSource.GetWriteStream (Colossal.Hash128 id) [0x000a8] in :0 at Colossal.IO.AssetDatabase.AssetDatabase`1[T].GetWriteStream (Colossal.Hash128 id) [0x00000] in :0 at Colossal.IO.AssetDatabase.Internal.SaveSettingsHelper.GetWriteStream (Colossal.IO.AssetDatabase.SettingAsset+Fragment fragment) [0x00020] in :0 at Colossal.IO.AssetDatabase.SettingAsset.SaveNow (System.Boolean saveAll, System.Boolean cleanupSettings, Colossal.IO.AssetDatabase.Internal.SaveSettingsHelper helper) [0x0009e] in :0 at Colossal.IO.AssetDatabase.AssetDatabase.SaveSettingsNow () [0x00023] in :0 at MapTextureReplacer.Systems.MapTextureReplacerSystem.SetTextureSelectDataJson () [0x00021] in C:\Users\Cgameworld\source\repos\MapTextureReplacer\Systems\MapTextureReplacerSystem.cs:163 at MapTextureReplacer.Systems.MapTextureReplacerSystem.OnCreate () [0x00021] in C:\Users\Cgameworld\source\repos\MapTextureReplacer\Systems\MapTextureReplacerSystem.cs:54 at Unity.Entities.ComponentSystemBase.CreateInstance (Unity.Entities.World world) [0x00093] in <42dd0aeaaef34ed8acb4b4fe5f093234>:0 at Unity.Entities.World.AddSystem_OnCreate_Internal (Unity.Entities.ComponentSystemBase system) [0x00011] in <42dd0aeaaef34ed8acb4b4fe5f093234>:0 at Unity.Entities.World.CreateSystemInternal (Unity.Entities.SystemTypeIndex type) [0x0000f] in <42dd0aeaaef34ed8acb4b4fe5f093234>:0 at Unity.Entities.World.GetOrCreateSystemManaged (Unity.Entities.SystemTypeIndex typeIndex) [0x0000b] in <42dd0aeaaef34ed8acb4b4fe5f093234>:0 at Unity.Entities.World.GetOrCreateSystemManaged[T] () [0x00028] in <42dd0aeaaef34ed8acb4b4fe5f093234>:0 at Game.UpdateSystem.UpdateAt[SystemType] (Game.SystemUpdatePhase phase) [0x00018] in <24020fbca57c414fa88795539296438c>:0 at MapTextureReplacer.Mod.OnLoad (Game.UpdateSystem updateSystem) [0x00096] in C:\Users\Cgameworld\source\repos\MapTextureReplacer\Mod.cs:40 at Game.Modding.ModManager+ModInfo.OnLoad (Game.UpdateSystem updateSystem) [0x00015] in <24020fbca57c414fa88795539296438c>:0 at Game.Modding.ModManager+ModInfo.Load (Game.UpdateSystem updateSystem) [0x00122] in <24020fbca57c414fa88795539296438c>:0 at Game.Modding.ModManager.InitializeMods (Game.UpdateSystem updateSystem) [0x00058] in <24020fbca57c414fa88795539296438c>:0 0x00007ffcb536ea1d (UnityPlayer) UnityMain 0x00007ffcb536e798 (UnityPlayer) UnityMain 0x00007ffcb5357a89 (UnityPlayer) UnityMain 0x00007ffcb59dc23f (UnityPlayer) UnityMain 0x00007ffcb49f9688 (UnityPlayer)

Cgameworld commented 2 months ago

does this happen several times in a row or only intermittently? Does pressing the reset all settings button in the mod's option help?

Sebbyyy commented 2 months ago

It is happening more and more that I've turned the mod off as I can barely get into the game. Reset all settings within the mod options inside the game? I'll give that a go but struggle to get into game

Yeah been unable to get in game to try resetting the settings

Sebbyyy commented 2 months ago

Yeah haven't been able to get into game with it enabled

Sebbyyy commented 2 months ago

Got into game but map texture failed to load. image