Jump to content

Failed to call hook 'ShowSpawns'

Pending 1.3.6

lystor
lystor

Posted

Hi

showspawns command doesn't work from the console but works from UI.

Exception:

Failed to call hook 'ShowSpawns' on plugin 'BotReSpawn v1.3.6' (KeyNotFoundException: The given key 'RadtownSPACE0' 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.BotReSpawn.ShowSpawns (ConsoleSystem+Arg arg) [0x000bf] in <ce570697c7be4077861e3d188ca43438>:0
  at Oxide.Plugins.BotReSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01ac7] in <ce570697c7be4077861e3d188ca43438>:0                                                                                                                                                                         3kb/s in, 8kb/s out
  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 <d646191a355d43a6b3ab36b7ee14c740>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0
Failed to call hook 'ShowSpawns' on plugin 'BotReSpawn v1.3.6' (KeyNotFoundException: The given key 'AbandonedSPACESupermarketSPACE0' 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.BotReSpawn.ShowSpawns (ConsoleSystem+Arg arg) [0x000bf] in <ce570697c7be4077861e3d188ca43438>:0
  at Oxide.Plugins.BotReSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01ac7] in <ce570697c7be4077861e3d188ca43438>:0                                                                                                                                                                        5kb/s in, 40kb/s out
  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 <d646191a355d43a6b3ab36b7ee14c740>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0

Please fix this bug.

Thank you

  • Administrator
Steenamaroo

Posted

Hi,
There's no bug, although I'll suppress the error for misuse.

From description : 
 

botrespawn showspawns - Added for binding convenience.
botrespawn checknav - Added for binding convenience.

* Note = addspawn and showspawns commands require the user to select "Edit with console commands" first, from a profile's spawnpoints menu.

  • Administrator
Steenamaroo

Posted

Sorry, you're quite right.
I found an issue that would affect default profiles.

It'll be addressed in the next update, which is overdue.

If you want to self-patch, you can change
var p = RS(Editing[arg.Player().userID]);
to
var p = RD(Editing[arg.Player().userID]);

at approx line 5432

  • Like 1
1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.6k

Files Sold

Total number of files sold.

2.5m

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.