Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSEA v236 的特定道具因出现重复键值导致 QuickView 无法正常输出 #281

Open
HikariCalyx opened this issue Oct 5, 2024 · 1 comment

Comments

@HikariCalyx
Copy link
Contributor

已知受影响的道具 ID 为 1006523。
image

System.ArgumentException: An item with the same key has already been added. Key: reqJob
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at WzComparerR2.CharaSim.Gear.CreateFromNode(Wz_Node node, GlobalFindNodeFunction findNode)
   at WzComparerR2.MainForm.quickView(Node node)
   at WzComparerR2.MainForm.advTree1_AfterNodeSelect_2(Object sender, AdvTreeNodeEventArgs e)
   at DevComponents.AdvTree.AdvTree.OnAfterNodeSelect(AdvTreeNodeEventArgs args)
   at DevComponents.AdvTree.AdvTree.SelectNode(Node node, eTreeAction action)
   at WzComparerR2.MainForm.OnSelectedWzNode(Wz_Node wzNode)
   at WzComparerR2.MainForm.listViewExStringFind()
   at WzComparerR2.MainForm.listViewExString_MouseDoubleClick(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseDoubleClick(MouseEventArgs e)
   at System.Windows.Forms.ListView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

image
作为 workaround,修改 Gear.cs 的逻辑可以解决此问题,见以下commit。
HikariCalyx@09ec96e

@Kagamia
Copy link
Owner

Kagamia commented Oct 6, 2024

"Property可以重复"这个假设真的会把整个wzlib击碎...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants