Jump to content

Also cannot integrate ship into Welcome Panel

Not a Bug 3.0.7

Flint Monkey
Flint Monkey

Posted

@David - I've seen this posted by several users. I cannot get Shop to show up in Welcome Panel. When I attempt to load Shop, here's what I am seeing in console:

Unloaded plugin Shop v1.1.62 by David
Failed to call hook 'OnServerInitialized' on plugin 'Shop v1.1.62' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.Shop.SelectLayout () [0x00040] in <493a29a7e733420da4c2001051e6d2bc>:0 
  at Oxide.Plugins.Shop.OnServerInitialized () [0x00036] in <493a29a7e733420da4c2001051e6d2bc>:0 
  at Oxide.Plugins.Shop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002b1] in <493a29a7e733420da4c2001051e6d2bc>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bae5f1223fce49c493b01571c99dce02>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bae5f1223fce49c493b01571c99dce02>:0 
Loaded plugin Shop v1.1.62 by David

Here's my code in the config/WelcomePanel.json file...

Under custom chat commands...

image.thumb.png.19d91b71ddd4701ed174f049f3031202.png

And under tab settings...

image.thumb.png.e77a25ef6c608ed3f7f9c59eee11b555.png

and under addons...

image.png.942dd52c20a7c22427737df33ca471e6.png

And here's the reference in config/Shop.json:

image.thumb.png.25465065345375a742485255d7d5e424.png

I have tried with both detecting the template and not detecting it. If I use...

"» Use Shop as WelcomePanel Addon": false,

the shop can/will come up and works as expected when using "/shop" in chat.

David

Posted

Sent api for detecting template in DM.

David

Posted

Changed Status from Pending to Not a Bug

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

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.