Magic Loot

Simple components multiplier & loot system

Total Downloads: 13,494 - First Release: Nov 13, 2016 - Last Update: Nov 2, 2017

5/5, 44 likes
  1. Poked around Assembly-CSharp.dll to see what is going on with the refresh mechanic.
    Code:
    public float minSecondsBetweenRefresh = 3600f;
    public float maxSecondsBetweenRefresh = 7200f;public bool shouldRefreshContents
    {
        get
        {
            return (this.minSecondsBetweenRefresh <= 0f ? false : this.maxSecondsBetweenRefresh > 0f);
        }
    }public virtual void SpawnLoot()
    {
        if (this.inventory == null)
        {
            Debug.Log("CONTACT DEVELOPERS! LootContainer::PopulateLoot has null inventory!!!");
            return;
        }
        this.inventory.Clear();
        ItemManager.DoRemoves();
        this.PopulateLoot();
        if (this.shouldRefreshContents)
        {
            base.Invoke("SpawnLoot", Random.Range(this.minSecondsBetweenRefresh, this.maxSecondsBetweenRefresh));
        }
    }
    It looks like it assigns a random refresh value between 60-120 minutes to each LootContainer when it spawns.
     
  2. Hello,

    I explain my problem very quickly,
    I've installed the plugin on my server but the config file don't want "to be created" soo, the plugin is not working.

    Any solution ? By the way, I've try to reinstall the plugin multiples times.
     
  3. Wulf

    Wulf Community Admin

    Check your oxide/logs for errors and info.
     
  4. I've checked it but cannot find any issues, I see an error but this not help me out.
     
  5. Not appear green boxes. Everything else is working correctly. What did I do wrong?
     
    Last edited by a moderator: May 21, 2017
  6. Norn updated Magic Loot with a new update entry:

    0.1.11



    This doesn't actually modify vanilla loot spawns so this plugin wouldn't have an issue on spawns, cheers.
     
  7. Norn updated Magic Loot with a new update entry:

    0.1

     
  8. Code:
    18:48 [Info] [MagicLoot] No configuration file found, generating...
    18:48 [Error] Failed to initialize plugin 'MagicLoot v0.1.11' (ArgumentNullException: Argument cannot be null.
    Parameter name: source)
    18:48 [Stacktrace]  at System.Linq.Check.SourceAndPredicate (System.Object source, System.Object predicate) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.Where[ItemDefinition] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.MagicLoot.LoadDefaultConfig () [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.LoadConfig () [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    18:48 [Info] No previous version to rollback plugin: MagicLoot
     
    Last edited by a moderator: May 23, 2017
  9. Delete configuration and data and reload.
     
  10. Still the same error. There is no config file, no data files. I deleted the plugin, and downloaded it again. Others plugins work fine.
     
  11. Is there a way to edit the amount of types of items? For instaance I want more then 2 items to drop out of a barrel.
    also would like to add Medical Syringes
     
    Last edited by a moderator: May 24, 2017
  12. I just tried using this plugin today. Fresh load and start and got this:
    18:50 [Error] Failed to initialize plugin 'MagicLoot v0.1.11' (ArgumentNullException: Argument cannot be null.
    Parameter name: source)
    18:50 [Stacktrace] at System.Linq.Check.SourceAndPredicate (System.Object source, System.Object predicate) [0x00000] in <filename unknown>:0
    at System.Linq.Enumerable.Where[ItemDefinition] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.MagicLoot.LoadDefaultConfig () [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.LoadConfig () [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    18:50 [Info] No previous version to rollback plugin: MagicLoot
     
  13. Seems like an issue with your oxide installation, haven't been able to replicate.
     
  14. I've reinstalled oxide a few times now. I've also tried this on multiple servers with the same result.

    00:55 [Info] Loading Oxide Core v2.0.3291...
    00:55 [Info] Loading extensions...
    00:55 [Info] Downloading CSharpCompiler.exe for .cs (C#) plugin compilation
    00:55 [Info] Download of CSharpCompiler.exe for completed successfully
    00:55 [Info] Loaded extension CSharp v2.0.3291 by Oxide Team
    00:55 [Info] Loaded extension MySql v2.0.3291 by Oxide Team
    00:55 [Info] Loaded extension SQLite v2.0.3291 by Oxide Team
    00:55 [Info] Loaded extension Unity v2.0.3291 by Oxide Team
    00:55 [Info] Loaded extension Rust v2.0.3291 by Oxide Team
    00:55 [Info] Using Covalence provider for game 'Rust'
    00:55 [Info] Loading plugins...
    00:55 [Info] Loaded plugin Unity Core v2.0.3291 by Oxide Team
    00:55 [Info] Loaded plugin Rust v2.0.3291 by Oxide Team
    01:02 [Info] Loading Oxide Core v2.0.3291...
    01:02 [Info] Loading extensions...
    01:02 [Info] Loaded extension CSharp v2.0.3291 by Oxide Team
    01:02 [Info] Loaded extension MySql v2.0.3291 by Oxide Team
    01:02 [Info] Loaded extension SQLite v2.0.3291 by Oxide Team
    01:02 [Info] Loaded extension Unity v2.0.3291 by Oxide Team
    01:02 [Info] Loaded extension Rust v2.0.3291 by Oxide Team
    01:02 [Info] Using Covalence provider for game 'Rust'
    01:02 [Info] Loading plugins...
    01:02 [Info] Loaded plugin Unity Core v2.0.3291 by Oxide Team
    01:02 [Info] Loaded plugin Rust v2.0.3291 by Oxide Team
    01:02 [Info] AdminRadar, Airstrike, AutoDoors, AutomaticAuthorization, BetterChat, Build, BuildingBlocker, BuildingOwners, BuildRevert, Clans, ConnectionDB, ConnectMessages, CopyPaste, CorpseDuration, CraftingController, CupboardForFriends, CustomSets, DangerousTreasures, DeathNotes, Economics, FancyDrop, Finder, FriendlyFire, Friends, Give, Godmode, GUIAnnouncements, GUIShop, Healer, HeliControl, HelpText, ImageLibrary, InfoPanel, IPBlacklist, LustyMap, MagazinBoost, MagicLoot, MonumentFinder, NightLantern, NoDurability, NoFallDamage, NoGiveNotices, NTeleportation, PlaneCrash, PlayerList, PlayerRankings, PlaytimeTracker, PrivateMessage, Prod, QuickMenu, QuickSmelt, QuickSort, RandomDeployables, RemoverTool, RestoreUponDeath, Rewards, ServerRewards, SharedDoors, ShowCrosshair, SignArtist, Skins, SleeperAnimalProtection, SpawnControl, StackSizeController, StartProtection, SteamChecks, SuicideKill, TimedExecute, TimeOfDay, UniversalUI, Vanish, WeatherController, WheresMyCorpse, Whitelist, WoundedScreams, ZLevelsRemastered and ZoneManager were compiled successfully in 2933ms
    01:02 [Debug] CupboardForFriends plugin is waiting for requirements to be loaded: Friends
    01:02 [Debug] LustyMap plugin is waiting for requirements to be loaded: ImageLibrary
    01:02 [Debug] PlayerRankings plugin is waiting for requirements to be loaded: ConnectionDB
    01:02 [Info] Loaded plugin Admin Radar v2.0.14 by Austinv900 & Speedy2M
    01:02 [Info] Loaded plugin Airstrike v0.2.51 by k1lly0u
    01:02 [Info] Loaded plugin AutoDoors v3.1.2 by Wulf/lukespragg
    01:02 [Info] Loaded plugin AutomaticAuthorization v0.1.8 by k1lly0u
    01:02 [Info] Loaded plugin Better Chat v5.0.11 by LaserHydra
    01:02 [Info] Loaded plugin Build v1.1.8 by Reneb & NoGrod
    01:02 [Info] Loaded plugin BuildingBlocker v2.1.5 by Vlad-00003
    01:02 [Info] Loaded plugin Building Owners v3.0.2 by Reneb
    01:02 [Info] Loaded plugin BuildRevert v0.1.3 by nivex
    01:02 [Info] Loaded plugin Rust:IO Clans v1.7.3 by playrust.io / dcode
    01:02 [Info] Loaded plugin ConnectionDB v0.2.1 by Norn
    01:02 [Info] Loaded plugin PlayerRankings v2.0.2 by Ankawi
    01:02 [Info] Loaded plugin ConnectMessages v1.1.8 by Spicy
    01:02 [Info] Loaded plugin Copy Paste v3.1.7 by Reneb
    01:02 [Info] Loaded plugin Player corpse duration modifier v2.0.4 by Mughisi
    01:02 [Info] Loaded plugin Crafting Controller v2.4.7 by Mughisi
    01:02 [Info] Loaded plugin CustomSets v1.0.3 by Absolut
    01:02 [Info] Loaded plugin Dangerous Treasures v0.1.6 by nivex
    01:02 [Info] Loaded plugin Death Notes v5.2.12 by LaserHydra
    01:02 [Info] Loaded plugin Economics v2.0.5 by Nogrod
    01:02 [Info] Loaded plugin FancyDrop v2.6.20 by Fujikura
    01:02 [Info] Loaded plugin Finder v3.0.4 by Reneb
    01:02 [Info] Loaded plugin FriendlyFire v1.6.0 by playrust.io / dcode
    01:02 [Info] Loaded plugin Friends v2.2.2 by Nogrod
    01:02 [Info] Loaded plugin Cupboard for Friends v1.2.7 by LaserHydra
    01:02 [Info] Loaded plugin Give v2.1.6 by Reneb
    01:02 [Info] Loaded plugin Godmode v4.1.0 by Wulf/lukespragg
    01:02 [Info] Loaded plugin GUIAnnouncements v1.22.76 by JoeSheep
    01:02 [Info] Loaded plugin GUIShop v1.4.2 by Nogrod / Reneb
    01:02 [Info] Loaded plugin Healer v2.4.0 by Wulf/lukespragg
    01:02 [Info] Loaded plugin HeliControl v1.1.7 by Shady
    01:02 [Info] Loaded plugin HelpText v2.0.5 by Calytic/Domestos
    01:02 [Info] Loaded plugin ImageLibrary v2.0.2 by Absolut & K1lly0u
    01:02 [Info] Loaded plugin LustyMap v2.1.1 by Kayzor / k1lly0u
    01:02 [Info] Loaded plugin InfoPanel v0.9.5 by Ghosst / Nogrod
    01:02 [Info] Loaded plugin IPBlacklist v1.0.1 by Ankawi
    01:02 [Info] Loaded plugin MagazinBoost v1.6.1 by Fujikura
    01:02 [Info] Loaded plugin MagicLoot v0.1.11 by Norn
    01:02 [Info] [MagicLoot] No configuration file found, generating...
    01:02 [Error] Failed to initialize plugin 'MagicLoot v0.1.11' (ArgumentNullException: Argument cannot be null.
    Parameter name: source)
    01:02 [Stacktrace] at System.Linq.Check.SourceAndPredicate (System.Object source, System.Object predicate) [0x00000] in <filename unknown>:0
    at System.Linq.Enumerable.Where[ItemDefinition] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.MagicLoot.LoadDefaultConfig () [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.LoadConfig () [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    01:02 [Info] No previous version to rollback plugin: MagicLoot

    01:02 [Info] Loaded plugin MonumentFinder v1.0.1 by PsychoTea
     
  15. Seems like Oxide errors, I'm not sure. @Wulf
     
  16. Same Issue. Nothing fix it.
     
  17. [​IMG]

    Just did a clean test and there were no issues for me, either update your oxide or try deleting your configuration file/data and trying again.
     
  18. Thanks for ur help.

    Already did it, and doesn't work. Will try again.
    [DOUBLEPOST=1495636423][/DOUBLEPOST]16:30 [Info] Loaded plugin Better Chat v5.0.11 by LaserHydra
    16:30 [Info] Loaded plugin Clans v0.1.4 by k1lly0u
    16:30 [Info] Loaded plugin Crafting Controller v2.4.7 by Mughisi
    16:30 [Info] Loaded plugin Death Notes v5.2.12 by LaserHydra
    16:30 [Info] Loaded plugin Gathering Manager v2.2.4 by Mughisi
    16:30 [Info] Loaded plugin MagicLoot v0.1.11 by Norn
    16:30 [Info] [MagicLoot] No configuration file found, generating...
    16:30 [Error] Failed to initialize plugin 'MagicLoot v0.1.11' (ArgumentNullException: Argument cannot be null.
    Parameter name: source)
    16:30 [Stacktrace] at System.Linq.Check.SourceAndPredicate (System.Object source, System.Object predicate) [0x00000] in <filename unknown>:0
    at System.Linq.Enumerable.Where[ItemDefinition] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.MagicLoot.LoadDefaultConfig () [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.LoadConfig () [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    16:30 [Info] No previous version to rollback plugin: MagicLoot
    16:30 [Info] Loaded plugin NightLantern v2.0.8 by k1lly0u
    16:30 [Info] Loaded plugin QuickSmelt v3.0.2 by Wulf/Fujikura
    16:30 [Info] Loaded plugin Rules GUI v1.4.9 by PaiN
    16:30 [Info] Loaded plugin Stack Size Controller v1.9.4 by Canopy Sheep

    I reinstalled oxide. Updated it. Removed BetterLoot, Removed BetterLoot config.
    Apparently nothing work.
     
  19. Okai Fixed it.

    On first launch, it can't create the config file for some reason. I had to dot his :

    oxide.unload MagicLoot
    oxide.load MagicLoot

    And it fixed it.
     
  20. I was trying 'reload' to no avail. 'unload/load' seems to have worked! Thank you Shisiaha for posting your resolution.