hua969325114 发表于 2021-12-29 00:42

装载MOD就是红字,有大佬看下什么问题吗

中文路径啊啥都试过了file:///C:/Users/53756/Desktop/1/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20211229003135.png

hua969325114 发表于 2021-12-29 00:44

System.InvalidCastException: Invalid cast from 'System.String' to 'Newtonsoft.Json.Linq.JArray'.
at System.Convert.DefaultToType (System.IConvertible value, System.Type targetType, System.IFormatProvider provider) in <e1319b7195c343e79b385cd3aa43f5dc>:0
at System.String.System.IConvertible.ToType (System.Type type, System.IFormatProvider provider) in <e1319b7195c343e79b385cd3aa43f5dc>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) in <e1319b7195c343e79b385cd3aa43f5dc>:0
at Newtonsoft.Json.Linq.Extensions.Convert (T token) in <1ef2ee3abf194d7caf9b7a58576a5445>:0
at Newtonsoft.Json.Linq.Extensions.Value (System.Collections.Generic.IEnumerable`1 value) in <1ef2ee3abf194d7caf9b7a58576a5445>:0
at Newtonsoft.Json.Linq.Extensions.Value (System.Collections.Generic.IEnumerable`1 value) in <1ef2ee3abf194d7caf9b7a58576a5445>:0
at Villain.Item+Value..ctor (System.Type type, Newtonsoft.Json.Linq.JToken value) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.Item+<>c__DisplayClass11_0.<From>b__1 (System.ValueTuple`2 a) in <c8585708c27745ec9e3f74941dce9ade>:0
at System.Linq.Enumerable+SelectArrayIterator`2.ToArray () in <fbb5ed17eb6e46c680000f8910ebb50c>:0
at System.Linq.Enumerable.ToArray (System.Collections.Generic.IEnumerable`1 source) in <fbb5ed17eb6e46c680000f8910ebb50c>:0
at Villain.Item.From (Villain.Record record, Newtonsoft.Json.Linq.JObject obj, System.IO.FileInfo source) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager+Processor.ProcessObject (Newtonsoft.Json.Linq.JObject obj) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager+Processor.ProcessArray (Newtonsoft.Json.Linq.JArray array) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager+Processor.Process (System.IO.FileInfo conf) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.Extensions.ForEach (System.Collections.Generic.IEnumerable`1 this, System.Action`1 f) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager+<>c__DisplayClass3_0.<LoadAll>b__0 (System.IO.DirectoryInfo patch) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.Extensions.ForEach (System.Collections.Generic.IEnumerable`1 this, System.Action`1 f) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager.LoadAll (System.Collections.Generic.IEnumerable`1 patches) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager.LoadAndApplyOnlyPatch (System.Collections.Generic.IEnumerable`1 patches) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.Villain.OnApplicationStart () in <c8585708c27745ec9e3f74941dce9ade>:0
at MelonLoader.MelonHandler+<>c.<OnApplicationStart_Mods>b__30_0 (MelonLoader.MelonMod x) in <ed8d10306462424f8b8155be6989aa25>:0
at MelonLoader.MelonHandler.InvokeMelonMethod (System.Collections.Generic.List`1& melons, MelonLoader.MelonHandler+InvokeMelonMethodDelegate`1 method, System.Boolean remove_failed) in <ed8d10306462424f8b8155be6989aa25>:0

hua969325114 发表于 2021-12-29 00:44

System.InvalidCastException: Invalid cast from 'System.String' to 'Newtonsoft.Json.Linq.JArray'.
at System.Convert.DefaultToType (System.IConvertible value, System.Type targetType, System.IFormatProvider provider) in <e1319b7195c343e79b385cd3aa43f5dc>:0
at System.String.System.IConvertible.ToType (System.Type type, System.IFormatProvider provider) in <e1319b7195c343e79b385cd3aa43f5dc>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) in <e1319b7195c343e79b385cd3aa43f5dc>:0
at Newtonsoft.Json.Linq.Extensions.Convert (T token) in <1ef2ee3abf194d7caf9b7a58576a5445>:0
at Newtonsoft.Json.Linq.Extensions.Value (System.Collections.Generic.IEnumerable`1 value) in <1ef2ee3abf194d7caf9b7a58576a5445>:0
at Newtonsoft.Json.Linq.Extensions.Value (System.Collections.Generic.IEnumerable`1 value) in <1ef2ee3abf194d7caf9b7a58576a5445>:0
at Villain.Item+Value..ctor (System.Type type, Newtonsoft.Json.Linq.JToken value) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.Item+<>c__DisplayClass11_0.<From>b__1 (System.ValueTuple`2 a) in <c8585708c27745ec9e3f74941dce9ade>:0
at System.Linq.Enumerable+SelectArrayIterator`2.ToArray () in <fbb5ed17eb6e46c680000f8910ebb50c>:0
at System.Linq.Enumerable.ToArray (System.Collections.Generic.IEnumerable`1 source) in <fbb5ed17eb6e46c680000f8910ebb50c>:0
at Villain.Item.From (Villain.Record record, Newtonsoft.Json.Linq.JObject obj, System.IO.FileInfo source) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager+Processor.ProcessObject (Newtonsoft.Json.Linq.JObject obj) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager+Processor.ProcessArray (Newtonsoft.Json.Linq.JArray array) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager+Processor.Process (System.IO.FileInfo conf) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.Extensions.ForEach (System.Collections.Generic.IEnumerable`1 this, System.Action`1 f) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager+<>c__DisplayClass3_0.<LoadAll>b__0 (System.IO.DirectoryInfo patch) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.Extensions.ForEach (System.Collections.Generic.IEnumerable`1 this, System.Action`1 f) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager.LoadAll (System.Collections.Generic.IEnumerable`1 patches) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.PatchManager.LoadAndApplyOnlyPatch (System.Collections.Generic.IEnumerable`1 patches) in <c8585708c27745ec9e3f74941dce9ade>:0
at Villain.Villain.OnApplicationStart () in <c8585708c27745ec9e3f74941dce9ade>:0
at MelonLoader.MelonHandler+<>c.<OnApplicationStart_Mods>b__30_0 (MelonLoader.MelonMod x) in <ed8d10306462424f8b8155be6989aa25>:0
at MelonLoader.MelonHandler.InvokeMelonMethod (System.Collections.Generic.List`1& melons, MelonLoader.MelonHandler+InvokeMelonMethodDelegate`1 method, System.Boolean remove_failed) in <ed8d10306462424f8b8155be6989aa25>:0         这是红字部分

hua969325114 发表于 2021-12-29 00:47

图片太大发不了

hua969325114 发表于 2021-12-29 00:49

只要把MOD复制到Villain文件下就会红字,没作用

沉默不空白 发表于 2021-12-29 01:03

那就不装这个mod呗

hua969325114 发表于 2021-12-29 01:23

沉默不空白 发表于 2021-12-29 01:03
那就不装这个mod呗

所有MOD都会红字。。   

Kissャ.掱惢 发表于 2021-12-29 08:05

先装框架 运行一次游戏 在装Villain 在运行一次游戏 然后再装MOD

云轻星粲 发表于 2021-12-29 09:15

你这个应该发求助,是不是Villain的版本太低了,找找论坛里面最新版的

沉默不空白 发表于 2021-12-29 20:22

那说明你villian 或者 melonloader框架有问题,找个新的试试
页: [1]
查看完整版本: 装载MOD就是红字,有大佬看下什么问题吗