幻想世界与玩具 发表于 2018-10-17 00:31

帮我看下这是什么报错了


KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2].get_Item (Int32 key) in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:151
at DateFile.MakeNewItem (Int32 id, Int32 temporaryId, Int32 bookObbs, Int32 buffObbs, Int32 sBuffObbs) in I:\Scroll Of TaiWu\Scroll Of TaiWu 1.0\Assets\Scripts\DateFile.cs:790
at ShopSystem.SetShopItems (Int32 shopTyp, Int32 moneyCost, Int32 levelAdd, Int32 isTaiWu, Int32 shopActorId) in I:\Scroll Of TaiWu\Scroll Of TaiWu 1.0\Assets\Spine\spine-csharp\Animation.cs:379
at MassageWindow.UpdateTaiWuShop () in I:\Scroll Of TaiWu\Scroll Of TaiWu 1.0\Assets\Scripts\SaveDateFile.cs:562
at MassageWindow.Update () in I:\Scroll Of TaiWu\Scroll Of TaiWu 1.0\Assets\Scripts\SaveDateFile.cs:618

(Filename: /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs Line: 151)

qweytr_1 发表于 2018-10-17 14:33

大概是Mod装错了
你试图访问一个商店,商店按照MOD的说法刷新了一个MOD物品
然而你的item_date.txt并没有对应物品的编号
于是直接报错


幻想世界与玩具 发表于 2018-10-17 18:24

qweytr_1 发表于 2018-10-17 14:33
大概是Mod装错了
你试图访问一个商店,商店按照MOD的说法刷新了一个MOD物品
然而你的item_date.txt并没有对 ...

谢谢大佬{:3_118:}

qa15732 发表于 2019-4-1 01:45

幻想世界与玩具 发表于 2018-10-17 18:24
谢谢大佬

是哪个mod出错了?

fabc 发表于 2019-9-24 16:45

学习到了,仔细看了下错误的关键词就大概清楚了,肯定是改动 Item物品 或 Shop商店 的配置,我刚刚改特性的时候忘记删除我加进去的第一行注释造成出错
at DateFile.MakeNewItem 生成新物品
at ShopSystem.SetShopItems 设置商店
at MassageWindow.UpdateTaiWuShop 更新商店

沽酒对卿 发表于 2022-5-4 11:23

大佬,怎么解决的呀
页: [1]
查看完整版本: 帮我看下这是什么报错了