Fairgia 发表于 2018-10-7 00:00

时节变换卡住了,有dalao能看懂这个代码吗

出来一串字符,ArgumentException: key already present in dictionary
Parameter name: key

打开log文件,是这样的
Info: initialize DeadTaiwuManager.
Info: full scan on grave done, found 0 dead taiwus
ArgumentException: key already present in dictionary
Parameter name: key
at System.Collections.Generic.SortedDictionary`2].Add (Int32 key, System.Collections.Generic.List`1 value) in /Users/builduser/buildslave/mono/build/mcs/class/System/System.Collections.Generic/SortedDictionary.cs:174
at DateFile.AddSocial (Int32 actorId1, Int32 actorId2, Int32 scoialTyp) in I:\Scroll Of TaiWu\Scroll Of TaiWu 1.0\Assets\Scripts\GongFaTreeWindow.cs:57
at PeopleLifeAI.DoTrunAIChange (Int32 actorId, Int32 partId, Int32 placeId, Int32 mianActorId, Int32 worldId, System.Collections.Generic.Dictionary`2 mianActorItem) in I:\Scroll Of TaiWu\Scroll Of TaiWu 1.0\Assets\Scripts\StorySystem.cs:327
at PeopleLifeAI+<DoPeopleTrunChange>c__Iterator0.MoveNext () in I:\Scroll Of TaiWu\Scroll Of TaiWu 1.0\Assets\Scripts\StorySystem.cs:1588
at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) in <filename unknown>:0

(Filename: /Users/builduser/buildslave/mono/build/mcs/class/System/System.Collections.Generic/SortedDictionary.cs Line: 174)

Fairgia 发表于 2018-10-7 00:30

Info: initialize DeadTaiwuManager.
Info: full scan on grave done, found 0 dead taiwus
开始装备功法演算
装备功法演算用时 5070ms
KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2<int, string>.get_Item (int) in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:151
at DateFile.MakeGangActor (int,int,int,int,int,int,int,int,int,string,int,string[],string[],int,int,int) <IL 0x00279, 0x00a25>
at (wrapper dynamic-method) DateFile.MakeNewChildren_Patch3 (object,int,int,bool,bool,int,int,int) <IL 0x004a8, 0x011de>
at AgeChanage/<AllActorAgeChanage>c__Iterator0.MoveNext () in I:\Scroll Of TaiWu\Scroll Of TaiWu 1.0\Assets\Scripts\BattleSystem.cs:1185
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator,intptr) <IL 0x00028, 0x00058>


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


又换了一种错误模式

膜法师晋总 发表于 2018-12-10 15:22

我好像也是这样,开新档义父都不出来了,楼主的问题现在解决了吗?
页: [1]
查看完整版本: 时节变换卡住了,有dalao能看懂这个代码吗