983827100 发表于 2022-10-6 15:39

关于正式版创意工坊订阅mod重复勾选后爆红的解决方法(亲测有用,但是属于临时的办法,根源没有解决)望大佬救救

本帖最后由 983827100 于 2022-10-6 20:43 编辑

如题,我之前不断地订阅mod,不断地勾选,最后发现无论如何都会爆红,哪怕你将mod全取消都会爆红,后来发现只需要将steam\steamapps\common\The Scroll Of Taiwu\Save目录下的ModSettings.Lua删除,进入游戏后重新勾选mod就能解决,如果又订阅其他的mod重复上面步骤即可解决。可能是太吾在mod设置方面的一个bug吧
排除完毕,以上问题属于mod冲突,带着系统闯太吾mod和手动保存mod冲突,第一次加载时没有问题,但是等到再一次加载时必爆红,推测可能是因为存档功能重复,yellowServerLog.log文件被重复调用导致的红字
卸载手动存档mod后仍有此问题,正在进一步排查
排查失败,红字随机出现,之前确定没问题的再一次排查又出现了红字,已经躺平,等待大佬救助
附两段红字

ReadInterProcessMessages thread is about to exit.
ReadInterProcessMessages: System.Net.Sockets.SocketException (0x80004005): 远程主机强迫关闭了一个现有的连接。

at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags) in <d2957de1c3fd4781a43d89572183136c>:0
at GameData.GameDataBridge.GameDataBridge.GetUnmanagedValuesFromSocket (T1& item1, T2& item2) in <c0c14869a7c0489f84ec195030836365>:0
at GameData.GameDataBridge.GameDataBridge.ReadInterProcessMessage () in <c0c14869a7c0489f84ec195030836365>:0
at GameData.GameDataBridge.GameDataBridge.ReadInterProcessMessages () in <c0c14869a7c0489f84ec195030836365>:0
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
GameData.GameDataBridge.GameDataBridge:CheckErrorMessages()
GameData.GameDataBridge.UnityAdapter.GameDataBridgeUnityAdapter:Update()

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Outgoing message: Disconnect
WriteInterProcessMessages thread is about to exit.
WriteInterProcessMessagesDisconnect: System.Net.Sockets.SocketException (0x80004005): 远程主机强迫关闭了一个现有的连接。

at System.Net.Sockets.Socket.Send (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags) in <d2957de1c3fd4781a43d89572183136c>:0
at GameData.GameDataBridge.GameDataBridge.WriteInterProcessMessagesDisconnect () in <c0c14869a7c0489f84ec195030836365>:0
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)



第二段
2022-10-06 15:40:28.9807|ERROR|Main|GameData.Program|System.IO.IOException: The process cannot access the file 'E:\steam\steamapps\common\The Scroll Of Taiwu\Logs\yellowServerLog.log' because it is being used by another process.
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path)
   at System.IO.File.WriteAllText(String path, String contents)
   at HellowWorldSystemBackend.LogTool.Log(String str)
   at HellowWorldSystemBackend.HellowWorldSystemBackend.Initialize()
   at TaiwuModdingLib.Core.Plugin.PluginHelper.LoadPlugin(String directoryPath, String dllName, String modIdStr)
   at GameData.Domains.Mod.ModDomain.LoadMod(ModInfo modInfo) in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\Domains\Mod\ModDomain.cs:line 116
   at GameData.Domains.Mod.ModDomain.LoadAllMods(ModInfoList modInfoList) in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\Domains\Mod\ModDomain.cs:line 55
   at GameData.GameDataBridge.GameDataBridge.InitializeGameDataModule() in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\GameDataBridge\GameDataBridge.cs:line 214
   at GameData.GameDataBridge.GameDataBridge.RunMainLoop() in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\GameDataBridge\GameDataBridge.cs:line 127
   at GameData.Program.Main(String[] args) in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\Program.cs:line 64
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
GameData.GameDataBridge.GameDataBridge:CheckErrorMessages()
GameData.GameDataBridge.UnityAdapter.GameDataBridgeUnityAdapter:Update()

983827100 发表于 2022-10-6 15:40

2022-10-06 15:40:28.9807|ERROR|Main|GameData.Program|System.IO.IOException: The process cannot access the file 'E:\steam\steamapps\common\The Scroll Of Taiwu\Logs\yellowServerLog.log' because it is being used by another process.
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path)
   at System.IO.File.WriteAllText(String path, String contents)
   at HellowWorldSystemBackend.LogTool.Log(String str)
   at HellowWorldSystemBackend.HellowWorldSystemBackend.Initialize()
   at TaiwuModdingLib.Core.Plugin.PluginHelper.LoadPlugin(String directoryPath, String dllName, String modIdStr)
   at GameData.Domains.Mod.ModDomain.LoadMod(ModInfo modInfo) in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\Domains\Mod\ModDomain.cs:line 116
   at GameData.Domains.Mod.ModDomain.LoadAllMods(ModInfoList modInfoList) in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\Domains\Mod\ModDomain.cs:line 55
   at GameData.GameDataBridge.GameDataBridge.InitializeGameDataModule() in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\GameDataBridge\GameDataBridge.cs:line 214
   at GameData.GameDataBridge.GameDataBridge.RunMainLoop() in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\GameDataBridge\GameDataBridge.cs:line 127
   at GameData.Program.Main(String[] args) in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\Program.cs:line 64
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
GameData.GameDataBridge.GameDataBridge:CheckErrorMessages()
GameData.GameDataBridge.UnityAdapter.GameDataBridgeUnityAdapter:Update()

983827100 发表于 2022-10-6 15:41

附带错误代码,如果你也是这个代码的话应该有效
2022-10-06 15:40:28.9807|ERROR|Main|GameData.Program|System.IO.IOException: The process cannot access the file 'E:\steam\steamapps\common\The Scroll Of Taiwu\Logs\yellowServerLog.log' because it is being used by another process.
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path)
   at System.IO.File.WriteAllText(String path, String contents)
   at HellowWorldSystemBackend.LogTool.Log(String str)
   at HellowWorldSystemBackend.HellowWorldSystemBackend.Initialize()
   at TaiwuModdingLib.Core.Plugin.PluginHelper.LoadPlugin(String directoryPath, String dllName, String modIdStr)
   at GameData.Domains.Mod.ModDomain.LoadMod(ModInfo modInfo) in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\Domains\Mod\ModDomain.cs:line 116
   at GameData.Domains.Mod.ModDomain.LoadAllMods(ModInfoList modInfoList) in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\Domains\Mod\ModDomain.cs:line 55
   at GameData.GameDataBridge.GameDataBridge.InitializeGameDataModule() in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\GameDataBridge\GameDataBridge.cs:line 214
   at GameData.GameDataBridge.GameDataBridge.RunMainLoop() in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\GameDataBridge\GameDataBridge.cs:line 127
   at GameData.Program.Main(String[] args) in C:\GitLab-Runner\builds\n1JyyH3P\0\scroll-of-taiwu\game-data\GameData\Program.cs:line 64
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
GameData.GameDataBridge.GameDataBridge:CheckErrorMessages()
GameData.GameDataBridge.UnityAdapter.GameDataBridgeUnityAdapter:Update()

遗忘梦境 发表于 2022-10-6 16:05

这个是原路径和现路径冲突,就是同一个MOD原路径有现路径也有,删除旧的就好了

983827100 发表于 2022-10-6 17:25

主要这个问题出现在添加新mod以后,每次订阅新mod并勾选后就容易出现这个问题,删除ModSettings.Lua就相当于删除mod的配置文件,然后进入游戏重新勾选就可以了。路径什么的我只能说搞不太懂,所以只能简单的删除配置文件让它重新再生成一份,话说这应该算是游戏本身的一个bug吧,毕竟每次添加mod都应该删除旧的配置,然后生成一份新的配置的,按理来说应该不会出现重复路径的

遗忘梦境 发表于 2022-10-6 18:48

因为你原来的MOD实在游戏根目录的,现在换位置了,然后有些事重复的

983827100 发表于 2022-10-6 20:00

感觉不太像,因为我今天专门把太吾绘卷全部删干净以后重新下载然后才装的mod,而且所有的mod都是steam上下载的,原来的全删了,现在依旧添加新mod后需要删除modsettings才能避免红字,感觉像是mod冲突了,我再去试试

983827100 发表于 2022-10-6 20:10

排除完毕,以上问题属于mod冲突,带着系统闯太吾mod和快速保存mod冲突,第一次加载时没有问题,但是等到再一次加载时必爆红,推测可能是因为存档功能重复,yellowServerLog.log文件被重复调用导致的红字

983827100 发表于 2022-10-6 20:11

说错了,是手动存档mod
页: [1]
查看完整版本: 关于正式版创意工坊订阅mod重复勾选后爆红的解决方法(亲测有用,但是属于临时的办法,根源没有解决)望大佬救救