[SPT-AKI 3.8.3]仿制星稀商人mod(版本3.8.0,改用3.8.3测试)出现客户端如图的报错,如何解决?![[SPT-AKI 3.8.3]仿制星稀商人mod(版本3.8.0,改用3.8.3测试)出现客户端如图的报错,如何解决?](https://ods5.oddba.cn/user_files/221335/bbs/23847978_1753844471.png)
(原星稀商人的mod可正常使用)(下面以星稀商人mod结构和代码仿制的夜兰商人mod及服务端运行如下:)
(mod测试中,本应支持原版作者)
[SPT-AKI]3.8.3
已配图
是
客户端报错
[SPT-AKI 3.8.3]仿制星稀商人mod(版本3.8.0,改用3.8.3测试)出现客户端如图的报错,如何解决?![[SPT-AKI 3.8.3]仿制星稀商人mod(版本3.8.0,改用3.8.3测试)出现客户端如图的报错,如何解决?](https://ods5.oddba.cn/user_files/221335/bbs/23847978_1753844471.png)
(原星稀商人的mod可正常使用)(下面以星稀商人mod结构和代码仿制的夜兰商人mod及服务端运行如下:)
(mod测试中,本应支持原版作者)
[SPT-AKI]3.8.3
已配图
是
客户端报错
1.请所有作者在发布作品前进行第三方病毒检测,自2021年4月3日起每个新作品务必随贴附检测链接
这不仅仅是对自己负责对社区负责也是对所有用户负责,玩家也可自行检测
3.如果文中内容有侵权行为、失效下载链接以及争议的金币贴请及时举报 ➩点击下方举报
4.注册用户在发布作品、话题、评论等内容时,请务必遵守国家互联网信息管理办法规定
5.本站所收录的作品、评论、上传内容等均属用户个人行为,如侵害了您的权益,欢迎举报,一经核实,立即删除
请登录之后再进行评论
狠狠的期待了
PS(补充):首张客户端报错为JSON反序列化错误
为跟方便分析,我将日志调出:
2025-08-01 07:29:29.712 +08:00|0.14.1.2.29197|Error|Default|
EXCEPTION: 0, GException1: In response to http://127.0.0.1:6969/client/items: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'GClass1457' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path 'yelanlabkeycard', line 1, position 9499700.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at GClass1405+Struct194.MoveNext () [0x000a9] in <448e567fc8c849f8a66327014c6f134c>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at EFT.TarkovApplication+Struct288.MoveNext () [0x00135] in <448e567fc8c849f8a66327014c6f134c>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at EFT.TarkovApplication+Struct287.MoveNext () [0x0007a] in <448e567fc8c849f8a66327014c6f134c>:0
2025-08-01 07:29:29.801 +08:00|0.14.1.2.29197|Error|Default|GException1: In response to http://127.0.0.1:6969/client/items: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'GClass1457' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
Path 'yelanlabkeycard', line 1, position 9499700.
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
GClass1405+Struct194.MoveNext () (at <448e567fc8c849f8a66327014c6f134c>:0)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
EFT.TarkovApplication+Struct288.MoveNext () (at <448e567fc8c849f8a66327014c6f134c>:0)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.GetResult () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
EFT.TarkovApplication+Struct287.MoveNext () (at <448e567fc8c849f8a66327014c6f134c>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Class358:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
EFT.UI.PreloaderUI:ShowErrorScreen(String, Exception, Action)
EFT.Struct287:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetException(Exception)
EFT.Struct288:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
Struct194:MoveNext()
System.Threading.Tasks.TaskCompletionSource`1:SetException(Exception)
GClass556:SetFromRequestResult(TaskCompletionSource`1, Result`1)
Struct18`1:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult(Result`1)
Struct21`1:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
Struct15`1:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
Struct23`1:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
Struct24`1:MoveNext()
System.Threading.Tasks.TaskCompletionSource`1:SetException(Exception)
Diz.Utils.Class3125`1:method_0()
GClass3259:CheckForFinishedTasks()
Diz.Utils.AsyncWorker:FixedUpdate()