-
Posts
10 -
Joined
-
Last visited
Content Type
Profiles
Warranty Claims
Downloads
Forums
Store
Support
DOWNLOADS EXTRA
Services
Everything posted by Pahuan
-
Everything’s fine - your config works. It just means that when the plugin is loaded for the first time, it generates a config file that causes errors. I’m using uMod.
-
When opening a casket, the following error appears in the console. And if there is a stack of caskets (for example 5), when trying to open one, two caskets are consumed at once, leaving only 3 in the stack. Failed to call hook 'OnItemAction' on plugin 'FishingTreasure v2.0.7' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.FishingTreasure.OpenCasket (BasePlayer player) [0x0003f] in <c3fe4d586ae24a92816b187b3fac9958>:0 at Oxide.Plugins.FishingTreasure.OnItemAction (Item item, System.String action, BasePlayer player) [0x00060] in <c3fe4d586ae24a92816b187b3fac9958>:0 at Oxide.Plugins.FishingTreasure.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00653] in <c3fe4d586ae24a92816b187b3fac9958>: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 <112d89ea5d3348c8b949af0ab1a866d2>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0 Could you share an example of a working configuration with some values filled in?
-
I tested it with only one plugin running - same issue. Maybe the default configuration is generated incorrectly. Here it is: { "General Settings": { "Base chance of obtaining a casket when catching a fish [%]": 3.0, "Permission based chance modifiers [1.0 = 100% increase to the base chance value]": {}, "Loot rolls per casket": 3, "Casket info": { "shortname": "halloween.lootbag.large", "skin": 2560835553, "displayName": "casket" }, "Sounds when opened": { "Common": "assets/prefabs/misc/halloween/lootbag/effects/bronze_open.prefab", "Rare": "assets/prefabs/misc/halloween/lootbag/effects/silver_open.prefab", "Epic": "assets/prefabs/misc/halloween/lootbag/effects/gold_open.prefab" }, "Should this plugin handle the item splitting for caskets? [set to false if using a stacks plugin]": false, "Automatically enable any new items that are added to the config from Rust updates?": false, "Item blacklist [shortname]": [] }, "Hotspot Settings": { "Enable fishing treasure hotspots": false, "Name the hotspot shows when it appears on the map": "Fishing Treasure Hotspot", "Sphere darkness": 6, "Hotspot size": 50.0, "Minimum time a hotspot can be alive for [seconds]": 1600.0, "Maximum time a hotspot can be alive for [seconds]": 2000.0, "Delay between hotspot deployments [seconds]": 3600.0, "Minimum modifier that will be applied to a hotspot": 1.0, "Maximum modifier that will be applied to a hotspot": 4.0, "Should the hotspot check to see if players have entered/left the zone and notify them?": true, "If monitoring for players, how often should we check for players in the hotspot?": 1.0 }, "SkillTree settings": { "Set to true if you want to add the FishingTreasure buff to the skill tree": true, "Maximum level for the modifier buff": 5, "Chance increase per level for finding caskets [0.2 = 20%]": 0.2 }, "Loot Table": { "Common": { "enabled": false, "tableWeight": 100, "loot": [] }, "Rare": { "enabled": false, "tableWeight": 25, "loot": [] }, "Epic": { "enabled": false, "tableWeight": 10, "loot": [] } } } Could you share an example of a working configuration with some values filled in?
-
When opening a casket, the following error appears in the console. And if there is a stack of caskets (for example 5), when trying to open one, two caskets are consumed at once, leaving only 3 in the stack. Failed to call hook 'OnItemAction' on plugin 'FishingTreasure v2.0.7' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.FishingTreasure.OpenCasket (BasePlayer player) [0x0003f] in <c3fe4d586ae24a92816b187b3fac9958>:0 at Oxide.Plugins.FishingTreasure.OnItemAction (Item item, System.String action, BasePlayer player) [0x00060] in <c3fe4d586ae24a92816b187b3fac9958>:0 at Oxide.Plugins.FishingTreasure.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00653] in <c3fe4d586ae24a92816b187b3fac9958>: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 <112d89ea5d3348c8b949af0ab1a866d2>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0
-
- 1,373 comments
-
- #leveling
- #progression
- (and 19 more)
-
- 1,373 comments
-
- #leveling
- #progression
- (and 19 more)
-
- 1,373 comments
-
- #leveling
- #progression
- (and 19 more)