Jump to content

IceMan

Member
  • Posts

    17
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

IceMan's Achievements

Apprentice

Apprentice (3/15)

  • Dedicated
  • Collaborator
  • Reacting Well
  • One Year In
  • First Post

Recent Badges

1

Reputation

  1. Ok I put on my programmer hat and dug into it. The problem is that... if you enable zonemanager functionality the data/LightsOn-Zones file cannot be empty(no zones) as the case in a fresh install of LightsOn. I had not configured that data file because when I enabled zonemanager it gave that error right away. So that is what caused the problem. So nothing to fix other than handling the error in the code or maybe the default data/LightsOn-Zone has something in it like ["DummyZone"] as a default on fresh installs. So hope I explained it well enough. I hope you have a good weekend, and thanks again for looking into this.
  2. @Mals I figured out what stops the error..... if I set "Use Zone Manager Plugin" to true... I get that error. If I set to false... it stops the error.
  3. Sounds good.... Appreciate you looking into it.
  4. Failed to call hook 'OnServerInitialized' on plugin 'LightsOn v2.1.2' (JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[System.String]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. Path '', line 1, position 2.) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00374] in <271c58b7a8684db5a2c92be17a81f252>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in <271c58b7a8684db5a2c92be17a81f252>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000d9] in <271c58b7a8684db5a2c92be17a81f252>:0 at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00053] in <271c58b7a8684db5a2c92be17a81f252>:0 at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <271c58b7a8684db5a2c92be17a81f252>:0 at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <271c58b7a8684db5a2c92be17a81f252>:0 at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <271c58b7a8684db5a2c92be17a81f252>:0 at Oxide.Core.Configuration.DynamicConfigFile.ReadObject[T] (System.String filename) [0x00028] in <b76ec77c47d1449e92b2baab8603843d>:0 at Oxide.Plugins.LightsOn.OnServerInitialized (System.Boolean initial) [0x00016] in <d399bbce689248009f3bcf9b4b7fe13c>:0 at Oxide.Plugins.LightsOn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000ef] in <d399bbce689248009f3bcf9b4b7fe13c>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0
  5. IceMan

    Update Checker

    It is working as it should now. Much appreciate you looking into this. I am so thankful for you writing this plugin and sharing with the community.
  6. IceMan

    Update Checker

    All of the below is right after starting the updater after deleting the config file. For example if I have ServerArmour installed. ServerArmour installs DiscordApi.cs, once the updater runs it detects and adds to the updater config. I then will get the NullReferenceException when it tries to find out more info. In the system log I get.... NullReferenceException: Object reference not set to an instance of an object at Oxide.Plugins.UpdateChecker.ParseVersion (System.String v) [0x00019] in <571981a1742a41d6973733c685f22ac0>:0 at Oxide.Plugins.UpdateChecker+<CheckNewVersion>c__Iterator2.MoveNext () [0x00388] in <571981a1742a41d6973733c685f22ac0>:0 at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <0b31faaf1c50461d95c83ac166a20393>:0 This is the function that is causing the "NullReferenceException: Object reference not set to an instance of an object". It is the same error with every plugin that produces the above error, and then the updater stops working all together. I hope this helps. If you need anything else... let me know. Also it only appears to happen on plug-ins that do not exist on any market. It also has problems with finding some plugins on CodeFling. I dont know why. But this week I can remove my fixed config and try to reproduce things.
  7. IceMan

    Update Checker

    I deleted the config file and reloaded... This is what I get now. The config file gets created but nothing happens to it but to one plugin and then no more updates. UPDATE: There are few plugins that are causing the plugin to crash. I set them to ignore once I put in debugging info into the .cs file and figured out which ones are failing. I am now removing/replacing old plugins that are not being updated or are no longer exist.
  8. I loved this plugin but seems that no longer we get any updates.
  9. IceMan

    Not working now

    cancel... the spawnmodularcar mod was the issue
  10. IceMan

    Not working now

    Failed to call hook 'policecar' on plugin 'PoliceVehicles v1.2.2' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.PoliceVehicles.SpawnPoliceCar (BasePlayer player) [0x0009e] in <5257347dceba44b09ffea3edecc14688>:0 at Oxide.Plugins.PoliceVehicles.policecar (BasePlayer player) [0x00081] in <5257347dceba44b09ffea3edecc14688>:0 at Oxide.Plugins.PoliceVehicles.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003bb] in <5257347dceba44b09ffea3edecc14688>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0 I havent tried the others except for policeheli which is working.
  11. Economy mod config ... { "Allow negative balance for accounts": false, "Maximum balance for accounts (0 to disable)": 20000, "Remove unused accounts": true, "Starting money amount (0 or higher)": 100, "Wipe balances on new save file": false } If you use the ATM to deposit anything, resulting in the balance being over the "Maximum balance...", the amount deposited that is over the max is lost. Example according to the above Economy config... Current balance is 10000. You use the ATM and deposit 20000. Balance reads 20000 which is the max balance limit set in the config. The ATM takes the 20000 from you. However 10000 is lost because your max balance can only be 20000.
  12. When you have a max amount configured in the Economy mod, it accepts the amount deposited but because it is maxed, the deposit just disappears.
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.3k

Files Sold

Total number of files sold.

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