Jump to content

An error occurs

Pending 2.3.1

maxalt
maxalt

Posted

Up until now, I’ve been adding and removing items by editing /Shop/Shops/Default.json directly.
However, after trying to manage the shop in-game, I encountered the following error when clicking the edit button for items that were added via the .json file.

Do I have to edit items added via .json only through the file itself?
Items added from within the in-game Shop UI can be edited and deleted just fine.

maxalt

Posted

35 minutes ago, maxalt said:

これまでは、/Shop/Shops/Default.json を直接編集してアイテムの追加と削除を行っていました。
しかし、ゲーム内でショップを管理しようとしたところ、.json ファイル経由で追加されたアイテムの編集ボタンをクリックした際に、以下のエラーが発生しました。

.json 経由で追加されたアイテムは、ファイル自体からのみ編集する必要がありますか?
ゲーム内のショップ UI から追加されたアイテムは、問題なく編集および削除できます。

errorlog↓
 

Failed to call hook 'CmdConsoleShop' on plugin 'Shop v2.3.1' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.Shop+ShopItem.ToDictionary () [0x00131] in <2f4f43ec1f7e442b8546d6949f594319>:0 at Oxide.Plugins.Shop.EditUi (BasePlayer player, System.Int32 itemId, System.Boolean First) [0x00054] in <2f4f43ec1f7e442b8546d6949f594319>:0 at Oxide.Plugins.Shop.CmdConsoleShop (ConsoleSystem+Arg arg) [0x01792] in <2f4f43ec1f7e442b8546d6949f594319>:0 at Oxide.Plugins.Shop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0245e] in <2f4f43ec1f7e442b8546d6949f594319>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0

MeventSupport

Posted

1 hour ago, maxalt said:

errorlog↓
 

Failed to call hook 'CmdConsoleShop' on plugin 'Shop v2.3.1' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.Shop+ShopItem.ToDictionary () [0x00131] in <2f4f43ec1f7e442b8546d6949f594319>:0 at Oxide.Plugins.Shop.EditUi (BasePlayer player, System.Int32 itemId, System.Boolean First) [0x00054] in <2f4f43ec1f7e442b8546d6949f594319>:0 at Oxide.Plugins.Shop.CmdConsoleShop (ConsoleSystem+Arg arg) [0x01792] in <2f4f43ec1f7e442b8546d6949f594319>:0 at Oxide.Plugins.Shop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0245e] in <2f4f43ec1f7e442b8546d6949f594319>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0

We will check it 

1.8m

Downloads

Total number of downloads.

8.3k

Customers

Total customers served.

125.9k

Files Sold

Total number of files sold.

2.6m

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.