Jump to content

Error in console and NPCs not spawning

Closed 1.2.6

Infidel
Infidel

Posted

Ever since yesterdays update BettterNpc has not been working and been getting this error message


Failed to call hook 'OnServerInitialized' on plugin 'BetterNpc v1.2.5' (ArgumentNullException: Value cannot be null.
Parameter name: input)
  at System.TimeSpan.Parse (System.String s) [0x00003] in <47fc8c70fa834cbf8141d7c1a7589125>:0 
  at Oxide.Plugins.BetterNpc.OnServerInitialized () [0x00051] in <6ceb34dfff314ae3b14d5771f0bba660>:0 
  at Oxide.Plugins.BetterNpc.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002de] in <6ceb34dfff314ae3b14d5771f0bba660>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e3740cd7ab6f40909737d74eeeaf1a8a>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <032ab7611607468ebf42c14e3cf9df20>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <032ab7611607468ebf42c14e3cf9df20>:0

KpucTaJl

Posted

Hello, the error says that you have the time specified in the wrong format in the plugin configuration. Updating plugins has nothing to do with this. If you have this error, then it was always there after the time in the configuration was changed in this way

KpucTaJl

Posted

"Start time of the day"
"Start time of the night"

Infidel

Posted

I've never seen these options for Better npcs, all my settings havnt changed since before last month are they in all data files for each monument? 

Infidel

Posted

i found it and changed to this 

  "Start time of the day": 0,
  "Start time of the night": 0,

Will this keep them spawning allday/niight?

KpucTaJl

Posted

no, these parameters are only in the plugin configuration. And you can see that the standard values had the form
 

"Start time of the day": "8:00",
"Start time of the night": "20:00",


and if they now have a different look, then they have been changed by someone
you can see this for yourself, you can create such a new file and see what values will be created by default

in your second message, you indicated that the time of the morning and evening is 0, but this is an incorrect entry, perhaps you wanted to specify "0:00", then the plugin will have the opportunity to read this and start. But even in this case, it is better to use "0:01" for the time of day and "23:59" for the time of night. So that these values do not equal each other

KpucTaJl

Posted

Hi, as far as I understand the problem has been solved. If you still have any questions about my plugins, then you can create a ticket in Discord Mad Mappers (https://discord.gg/w6ayNfDGAk)

KpucTaJl

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.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.