Jump to content

KeyNotFoundException: The given key '76561198350416573' was not present in the dictionary.

Closed 1.4.2 1.4.5

Wizla
Wizla

Posted

KeyNotFoundException: The given key '76561198350416573' was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at Oxide.Plugins.TalkingNpc+ConversationHandler.EndConversation (BasePlayer player, System.Boolean endConversation) [0x00033] in <13ef7224633e40158413f8516454068b>:0
  at Oxide.Plugins.TalkingNpc+ConversationHandler.OnDestroy () [0x00032] in <13ef7224633e40158413f8516454068b>:0

I have been seeing this spam console every now and then, I caught it happening while I was testing different conversation endings to see if that was the issue.

The player seemed to close the menu really fast after the vehicle spawned, but I've been unable to re-create this error, and even got the same player to come and show me what he done, and it worked fine.

Heres the conversation config for this NPC:
 

{
  "0": {
    "Message": "Hi $displayName, take a look at some of these vehicles I made!",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "I would like to buy one of your vehicles.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": 1,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      },
      {
        "Message": "I am just browsing.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": null,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  },
  "1": {
    "Message": "I can currently spawn in: Helicopters. Which one would you like?",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "I would like a Littlebird.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": 2,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      },
      {
        "Message": "I would like a Warbird.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": 3,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  },
  "2": {
    "Message": "Nice choice! This has 10 seats and is much more nible than regular Minicopters!",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "Here is my 250 Coins.",
        "Needs Permission (null = No)": null,
        "Player Commands": [
          "talking_npc vehicle spawn minicopter $npcName"
        ],
        "Server Commands": [
          "give {player.id} parachute"
        ],
        "Next Message (null = Close UI)": 6,
        "Price": 250,
        "Currency": {
          "Item ID": 1,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": 7,
        "Cooldown": 600,
        "Server Wide Cooldown": false
      },
      {
        "Message": "I changed my mind.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": null,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  },
  "3": {
    "Message": "Nice choice! This can shoot H.V Rockets & 5.56 Ammo!",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "Here is my 1000 Coins.",
        "Needs Permission (null = No)": null,
        "Player Commands": [
          "talking_npc vehicle spawn scraptransporthelicopter $npcName"
        ],
        "Server Commands": [],
        "Next Message (null = Close UI)": 6,
        "Price": 1000,
        "Currency": {
          "Item ID": 1,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": 7,
        "Cooldown": 600,
        "Server Wide Cooldown": false
      },
      {
        "Message": "I changed my mind.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": null,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  },
  "5": {
    "Message": "Let me know if there's anything I can do to help!",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": []
  },
  "6": {
    "Message": "I've given you a Parachute too! Go get your ride before someone steals it and please stop by again.",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "See you later.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [
          "inventory.giveto $userID parachute"
        ],
        "Next Message (null = Close UI)": null,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  },
  "7": {
    "Message": "I am sorry you do not have enough money.",
    "Message Display Time (seconds) - Only used if there are no responses": 2.0,
    "Responses": [
      {
        "Message": "I will come back later.",
        "Needs Permission (null = No)": null,
        "Player Commands": [],
        "Server Commands": [],
        "Next Message (null = Close UI)": null,
        "Price": 0,
        "Currency": {
          "Item ID": -932201673,
          "Skin ID": 0
        },
        "Insufficient Funds Message (null = Close UI)": null,
        "Cooldown": 0,
        "Server Wide Cooldown": false
      }
    ]
  }
}

 

Yaan

Posted

Having the same issue, even when the player is not near or offline


KeyNotFoundException: The given key '76561199467393427' was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at Oxide.Plugins.TalkingNpc+ConversationHandler.EndConversation (BasePlayer player, System.Boolean endConversation) [0x00033] in <c8d9cdf884fd4f46ad38915d03f1465b>:0 
  at Oxide.Plugins.TalkingNpc+ConversationHandler.CheckPlayersWalkAway () [0x0006e] in <c8d9cdf884fd4f46ad38915d03f1465b>:0 
  at InvokeHandlerBase`1[T].DoTick () [0x00138] in <97363e0bbe864c65a9819cff9eddaf42>:0 
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <97363e0bbe864c65a9819cff9eddaf42>:

Razor

Posted

19 minutes ago, Yaan said:

Having the same issue, even when the player is not near or offline


KeyNotFoundException: The given key '76561199467393427' was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at Oxide.Plugins.TalkingNpc+ConversationHandler.EndConversation (BasePlayer player, System.Boolean endConversation) [0x00033] in <c8d9cdf884fd4f46ad38915d03f1465b>:0 
  at Oxide.Plugins.TalkingNpc+ConversationHandler.CheckPlayersWalkAway () [0x0006e] in <c8d9cdf884fd4f46ad38915d03f1465b>:0 
  at InvokeHandlerBase`1[T].DoTick () [0x00138] in <97363e0bbe864c65a9819cff9eddaf42>:0 
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <97363e0bbe864c65a9819cff9eddaf42>:

Ill check into this.

Razor

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.4.5

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.5k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.