Jump to content

Console Error/Vanishing Placements

Can't Reproduce 1.0.6

Somescrub
Somescrub

Posted

Multiple instances of players placing objects and them vanishing when attempting to place - I finally caught the console error below when it happened to someone placing a recycler. Seems to have only started after the October update.


 

Exception while calling NextTick callback (ArgumentNullException: Value cannot be null.

Parameter name: key)

at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x00000] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0

at Oxide.Plugins.PlaceAnything+<>c__DisplayClass7_0.<OnEntityBuilt>b__0 () [0x0000c] in <3e5d1fb2c1254f9186c2d340c4938a4c>:0

at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <beb2b64691c64e2b95b99491bd85442c>:0

 

  • Like 1
David

Posted

I noticed few more people reporting same thing unfortunately I'm not able to replicate this on my test server, this is 3rd time I'm testing it and every single item from default config is working just fine.  Unless someone can provide me with access to server where this is happening I can't really do much. 



placeanythingtestgif.gif.d019849e80931146b9e1e7702b7aadde.gif

David

Posted

Changed Status from Pending to Can't Reproduce

Neighigh

Posted

Same happening here David. I can't replicate it either, it's completely random. Only things to go on are the different terrains players placed on and that the server saved just moments afterwards. I'll keep trying to find some commonality between reports but so far I've got nothing just yet. 

Mine's happening with minicopters:

Exception while calling NextTick callback (ArgumentNullException: Value cannot be null.
Parameter name: key)
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <f98723dd4586469db5213ec59da723ca>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x00000] in <f98723dd4586469db5213ec59da723ca>:0
at Oxide.Plugins.PlaceAnything+<>c__DisplayClass7_0.<OnEntityBuilt>b__0 () [0x0000c] in <621d60da015246adb4ee426829af03ba>:0
at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <beb2b64691c64e2b95b99491bd85442c>:0

Rust Admin

Posted (edited)

Same issue......this has worked with no issue for almost 2 years....
On 5 attempts, 2 succeeded and 3 failed with this exception when placing.

 

When the error happens, the exception is throwing at this line:

       if (placeable[item.name].NeedsTCAuth)

 

 

Exception while calling NextTick callback (ArgumentNullException: Value cannot be null.

Parameter name: key)

at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <f98723dd4586469db5213ec59da723ca>:0

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x00000] in <f98723dd4586469db5213ec59da723ca>:0

at Oxide.Plugins.PlaceAnything+<>c__DisplayClass7_0.<OnEntityBuilt>b__0 () [0x0000c] in <5df568b039214ccda04a549d12a68ac8>:0

at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <beb2b64691c64e2b95b99491bd85442c>:0


========================

When placing a craftable water pump from CraftMenu - here is the config from CraftMenu Blueprints.json:
 

"box.wooden": {
      "Name": "Placeable Water Pump",
      "Image": "waterpump.png",
      "SkinID": 2682449233,
      "Category": "construction",
      "Tier": 2,
      "ResearchCost": 300,
      "Resources": {
        "valve2": 1,
		"fluid.switch": 1,
		"wood": 600
      } 
  }


And PlaceAnything - Entities.json:

"Placeable Water Pump": {
    "BaseItem": "box.wooden",
    "SkinID": 2682449233,
    "Prefab": "assets/prefabs/deployable/playerioents/waterpump/water.pump.deployed.prefab",
    "NeedsTCAuth": true,
    "CanBePickedUp": true,
    "AdjustHeight": 0.0
  }


 

Edited by Rust Admin
David

Posted

On 11/16/2024 at 7:55 AM, Rust Admin said:

worked with no issue for almost 2 years....

Well it's mystery for me as well why all of the sudden it's throwing random errors meanwhile I can't replicate it on my server at all. I added catch method so when error does happen, item will be refunded back to player so they can try placing it again. Unfortunately that's all I can do for now.

  • Love 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

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.