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

NewNPC always contains Marketboard and Summoning Bell #29

Open
ghost opened this issue Aug 23, 2017 · 1 comment
Open

NewNPC always contains Marketboard and Summoning Bell #29

ghost opened this issue Aug 23, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 23, 2017

I found that NewNPC always contains Marketboard and Summoning Bell.
This problem always occurs when the character is near the market.

Code:

ActorReadResult readResult = Reader.GetActors();
foreach (var id in readResult.NewNPC)
{
    string strNPC = "NPC => ID: " + id + ", Name: " + readResult.NPCEntities[id].Name;
    Console.WriteLine(strNPC);
}

Result:

NPC => ID: 2000402, Name: マーケットボード
NPC => ID: 2000401, Name: 呼び鈴
NPC => ID: 2000402, Name: マーケットボード

Remarks:
"Marketbord" is "マーケットボード" in Japanese.
"Summoning Bell" is "呼び鈴" in Japanese.

@ghost ghost changed the title Marketboard and Summoning Bell always contains NewNPC NewNPC always contains Marketboard and Summoning Bell Aug 23, 2017
@ghost
Copy link
Author

ghost commented Aug 23, 2017

ActorReadResult.RemovedNPC type is Dictonary disallowing duplicate keys.
But ActorReadResult.NewNPC type is List allowing duplicate values.

This issue may occur if an object with the same key exists in memory.

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

0 participants