BetterLoot

Moved

Total Downloads: 42,620 - First Release: Feb 26, 2015 - Last Update: Mar 20, 2018

4.95699/5, 93 likes
  1. I`ve lost my head in this configs. I cant restrict normal blueprints from apearing and cant set droplimit for BP frags. PLEASE. can anyone give me config with restricted usual blueprints for items and BP frags which drops not larger then 10 frags per time?

    Ive added item short names from (http://docs.oxidemod.org/rust/#item-list). It makes me go crazy x_x.

    Or can you tell me what is wrong with my config? I`ve tried anything (even tried to change BP frags rarity to rare with ItemConfig), but everything is useless.
     

    Attached Files:

  2. Yep, this.
     
  3. Here is a version of the plugin that I've rewrite a little. The vanilla plugin add new items to the airdrop, but erase contents of barrels and crates.
    This version add 3 value for chossing to add or erase.
    If you choose to add, the number of items original and new items are calculate after populating phase of the container.
    This version add the possibility of droping of rarity None items because this is the rarity of quarrel or large water container.
    The default BP (those we already have at the beginning) are not dropping too and items that're never dropped is hardcoded too like the original plugins.
    Hope you will find it useful.

    CONS : I do not know if other plugins by modifying the rarity will not caused problems, because of the plugins load order. By adding a space in a plugin file and saving, we force recompilation of it ant it will be reloaded last.
     

    Attached Files:

  4. 2 csv files that I've generated to list items and blueprints for my research.
     

    Attached Files:

  5. Thank you for your contribution. Does this help increase finding blueprint_fragment?
     
  6. For what I've see, yes. Even too easy I think. Perhaps these items need there own rules for dropping, with parameters for tweaking.
     
  7. @blaseosar

    Your BetterLoot.cs didn't seem to work for us. When we tried it we started seeing more BP's and Oil Barrels were empty. Can you paste your config?

    I agree they need their own rules for dropping.
     
  8. I'm testing it now, my version add more fragments and drop BP too (11 %). You're right, sorry for the inconvenance, i've invert a parameter for not erasing OilBarrel. I've tested right now and one Oilbarrel give me +10000 and I have for now more than 5k BP fragments.

    My config and the correction in the file.
     

    Attached Files:

  9. Hmm Oil Barrel is now dropping items rather than Crude Oil only.
     
  10. Only one item maybe ? If it's that I see the problem.

    Edit: with the previous version, I've see the same problem, but now with 4 oil barrel I have more than 90000 crude oil and only this. Because of the max set to 1. But I have see Oil Barrel empty before, so in that case, the algorithm add one element.

    Edit 2 : I test another algorithm now.
    [DOUBLEPOST=1439081322][/DOUBLEPOST]A new correction, with a little different algorithm for the method PopulateContainer.
    I'm seeing no error for now (I've corrected another message. I used code MSG## for all messages, so that compare for printing message is more efficient this way, there is less caracters to test.).
     

    Attached Files:

    Last edited by a moderator: Aug 9, 2015
  11. Ok seems to be working good now.

    When enforceBlacklist is true - people can't craft items on the blacklist. Are you able to fix that also?
     
  12. Can you describe the error ? I've not uses this option of the plugin until now.
     
  13. Code:
      "enforceBlacklist": true,
      "itemBlacklist": [
       "building.planner"
      ],
    Try to craft a building planner and it doesn't allow it.

    Also blueprints are still spawning when:
    Code:
    "blueprintProbability": 0.0,
    [DOUBLEPOST=1439085746][/DOUBLEPOST]
    Code:
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: Updating internals ...
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: There are 196 items and 136 blueprints in the game.
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: We are going to use 155 items and 73 blueprints of them.
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: Base item rarity is 2.00% and base blueprint rarity is 5.00%.
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: With a 0.0% chance that any drop is a blueprint we get:
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: There is a 11.765% chance to get one of 20 None items (w=4000, 80000/680000).
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: There is a 41.176% chance to get one of 35 Common items (w=8000, 280000/680000).
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: There is a 38.235% chance to get one of 65 Uncommon items (w=4000, 260000/680000).
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: There is a 7.353% chance to get one of 25 Rare items (w=2000, 50000/680000).
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: There is a 1.471% chance to get one of 10 VeryRare items (w=1000, 10000/680000).
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: There is a 0.000% chance to get one of 1 None blueprints (w=25000, 25000/2001000).
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: There is a 0.000% chance to get one of 8 Common blueprints (w=125000, 1000000/2001000).
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: There is a 0.000% chance to get one of 34 Uncommon blueprints (w=25000, 850000/2001000).
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: There is a 0.000% chance to get one of 24 Rare blueprints (w=5000, 120000/2001000).
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: There is a 0.000% chance to get one of 6 VeryRare blueprints (w=1000, 6000/2001000).
    [Oxide] 10:00 PM [Info] [BetterLoot] BetterLoot: Internals have been updated
    But still finding blueprints in new barrels/crates.
     
  14. For the first error, what i see on method OnItemAddedToContainer, it's perfectly normal. Only Admin and Moderator are autorized to have the item/bp blacklisted on their inventory. As an admin on my server I can craft building.planner and when I desactivate the test if i'm owner or moderator, now I can't.

    For the second error, I've made a correction and I'm testing it.
     
  15. Ah I see, ok I just add the items I don't want to drop to the neverdrop list in the .cs file.
     
  16. The correction for the error with blueprints spawn with 0% of probability.
    For the error with property enforceBlacklist, the plugin's behavior seems normal for me, sorry.
     

    Attached Files:

  17. God bless you!!! I`ve lost a hope that someone will help to solve this problem. Its sad that there nothing can be done with droplimits for blueprint fragments =(, because even with setting of 5, they still drop from 10-150 x_x.
     
  18. I duno, retry with this version, it's not the "legacy". I've moved the part responsible of droplimits, perhaps this version correct this anomaly too. I'll test it.

    Edit: I've find the cause of the problem. It was the last type of loot container, TrashPile, that was not handled by the plugin. I apply for him now the same thing than for OilBarrel + an operation to remove unwanted/blacklisted contents and only applying the droplimits parts after.
     

    Attached Files:

    Last edited by a moderator: Aug 9, 2015
  19. That last .cs file you provided seems to me give up to 65000 of everything lol