Jump to content

Error Failed to run command

Closed 1.1.10 1.1.12

Kaooa
Kaooa

Posted

Failed to run command '/trade' on plugin 'WTrading'. (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.WTrading+Trade.Accept () [0x000b4] in <d52b4dbe82f34c27844d531074483854>:0 
  at Oxide.Plugins.WTrading+AcceptTradeCommand.Execute (Oxide.Plugins.WTrading+TradePlayer caller, System.String[] arguments) [0x00128] in <d52b4dbe82f34c27844d531074483854>:0 
  at Oxide.Plugins.WTrading.CommandHandler (BasePlayer player, System.String name, System.String[] arguments) [0x00023] in <d52b4dbe82f34c27844d531074483854>:0 
  at Oxide.Plugins.WTrading+TradeCommand.ProcessAliases (Oxide.Plugins.WTrading+TradePlayer player, System.String[] arguments) [0x0005e] in <d52b4dbe82f34c27844d531074483854>:0 
  at Oxide.Plugins.WTrading+TradeCommand.Execute (Oxide.Plugins.WTrading+TradePlayer caller, System.String[] arguments) [0x00037] in <d52b4dbe82f34c27844d531074483854>:0 
  at Oxide.Plugins.WTrading.CommandHandler (BasePlayer player, System.String name, System.String[] arguments) [0x00023] in <d52b4dbe82f34c27844d531074483854>:0 
  at Oxide.Game.Rust.Libraries.Command+ChatCommand.HandleCommand (BasePlayer sender, System.String name, System.String[] args) [0x0001b] in <dfdf477e6daf4317a0bcc18cf1c4c7f5>:0 
  at Oxide.Game.Rust.Libraries.Command.HandleChatCommand (BasePlayer sender, System.String name, System.String[] args) [0x00015] in <dfdf477e6daf4317a0bcc18cf1c4c7f5>:0 
  at Oxide.Game.Rust.RustCore.TryRunPlayerCommand (BasePlayer basePlayer, System.String message, System.String commandPrefix) [0x000c2] in <dfdf477e6daf4317a0bcc18cf1c4c7f5>:0 

Kaooa

Posted

also everytime i send a trade to someone to test things, I see this pop up "NullReferenceException: Object reference not set to an instance of an object"

Tom.bat

Posted

Changed Status from Pending to Can't Reproduce

Tom.bat

Posted

I need steps to reproduce this error, did the recipient of the trade request leave?

If you can work out what causes this it would be incredibly useful for fixing the problem.

Kaooa

Posted

didnt update the config was the issue.

Kaooa

Posted

everything is working so far. no issues other than cooldown?  

" "request_repeats": 1,
  "request_timeout": 20.0,
  "accept_delay": 0.01,
  "trade_cooldowns": {
    "default": 900
  }, "

I set the trade cooldown to 900 but it is going off of something else? image.png.cce37a116224166786b4451c2eff8fc9.pngimage.png.cfe6a26a10790459de89dbb6aa487a69.png

Tom.bat

Posted

Is it possible that player doesn't have the default role?

Kaooa

Posted

  On 3/16/2025 at 7:24 PM, Tom.bat said:

Is it possible that player doesn't have the default role?

Expand  

its everyone, including myself and others. and a player not having default group is impossible because it is assigned upon first join for every server.

Tom.bat

Posted

Thought so, releasing an update right now which should hopefully resolve this.

Tom.bat

Posted

Changed Status from Can't Reproduce to Work in Progress

Changed Fixed In to 1.1.11

Kaooa

Posted

Seems to be fixed now, however I cant help but to notice a typo lol

 image.png.cf8904ae8b23d83c351823b0f1cf53c0.png

Kaooa

Posted (edited)

Also it appears the trade never cancels? I trade a player,  and have them decline it, i waited about 10 minutes and tried to trade the same guy again and it still says "you've already sent a trade request to this player." as well when i leave the trade accept/decline ui on screen, it never goes away.

Edited by Kaooa
Tom.bat

Posted

  On 3/17/2025 at 12:50 AM, Kaooa said:

Seems to be fixed now, however I cant help but to notice a typo lol

 image.png.cf8904ae8b23d83c351823b0f1cf53c0.png

Expand  

Well spotted, not sure how I managed this lol

 

  On 3/17/2025 at 1:08 AM, Kaooa said:

Also it appears the trade never cancels? I trade a player,  and have them decline it, i waited about 10 minutes and tried to trade the same guy again and it still says "you've already sent a trade request to this player." as well when i leave the trade accept/decline ui on screen, it never goes away.

Expand  

Interesting, do you recall this occuring in previous versions? Getting any errors?

Kaooa

Posted (edited)

I do not know if it has worked in past versions just now noticing it.  sometimes i see "FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list." but i do not know which plugin this is from, haven't noticed that error until yesterday when i noticed the issue 

 

also missing some item images in the generative images - console log

03/18 00:56:30 | [WTrading] Started trade between pulse_code_77 and Teflon.

03/18 00:56:43 | [WTrading] Completed trade between pulse_code_77 and Teflon:
pulse_code_77 gave 12 item(s): - Bandage x2
- Sheet Metal x1
- Pickaxe x1
- Tech Trash x3
- Rifle Body x1
- Medical Syringe x2
- Scrap x16
- High Quality Metal x33
- Salvaged Sword x1
- Reinforced Wooden Shield x1
- Road Signs x3
- Bucket Helmet x1
Teflon gave no items.

 

image.png.da5810e2386d156ab47ef7d68fcdcee6.png

Edited by Kaooa
Tom.bat

Posted

  On 3/17/2025 at 11:09 PM, Kaooa said:

I do not know if it has worked in past versions just now noticing it.  sometimes i see "FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list." but i do not know which plugin this is from, haven't noticed that error until yesterday when i noticed the issue 

Expand  

This will likely be another plugin, I always log messages alongside exceptions and include the full thing so it'd be a bit more traceable.

 

  On 3/17/2025 at 11:09 PM, Kaooa said:

also missing some item images in the generative images - console log

03/18 00:56:30 | [WTrading] Started trade between pulse_code_77 and Teflon.

03/18 00:56:43 | [WTrading] Completed trade between pulse_code_77 and Teflon:
pulse_code_77 gave 12 item(s): - Bandage x2
- Sheet Metal x1
- Pickaxe x1
- Tech Trash x3
- Rifle Body x1
- Medical Syringe x2
- Scrap x16
- High Quality Metal x33
- Salvaged Sword x1
- Reinforced Wooden Shield x1
- Road Signs x3
- Bucket Helmet x1
Teflon gave no items.

 

image.png.da5810e2386d156ab47ef7d68fcdcee6.png

Expand  

The image generation relies on FP uploading item images to their CDN which they've not done for several items. I'm not sure there's a good workaround to this except you can manually add the images yourself if you upload them to: oxide/data/WTradingDiscord/ItemCache/{item_id}.png.

Tom.bat

Posted

Changed Status from Work in Progress to Fixed

Changed Fixed In from 1.1.11 to Next Version

Tom.bat

Posted

Changed Status from Fixed to Closed

1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

119.3k

Files Sold

Total number of files sold.

2.4m

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.