Jump to content

I've been working with the following file.

oxide/data/RaidableBases/Base_Loot/Easy Bases.json.

 

It has 4 items in there.  I wanted to disable them all.  So I set Amount 0.

 

Every time the server restarts, Easy Bases.json seems to get recreated.  All my changes are lost and the original file returns.  I changed the following setting in the Easy Bases.json under Profiles as well, hoping it would stop changing the Base_Loot/Easy Bases.json file.  Didn't work.  However it appears that I'm no longer getting Base_Loot loaded in my bases.  Not really sure what the Base_Loot is for if we can't maintain edits.

Share this comment


Link to comment

heya,

you can't delete the file. Oxide will recreate it when the profile tries to load the base loot table. an empty file won't be used so that's why you don't see it in your bases. the plugin can't put items back into a file once you've edited them out, nor can it change amounts on its own. it just can't remember what you've done in order to do that. you can maintain any edits. if anything happens contrary to this then its caused by something else, such as Oxide, which has reverted prior edits of mine

base loot is to hold a few items that should always spawn for a specific profile of bases. difficulty loot is to hold all other items to be randomly picked from for specific difficulties. this is detailed in the documentation.

Share this comment


Link to comment

Yeah I didn't delete the file.  

 

Documentation for raidable bases says to prevent an item from being added to loot, you can set the Amount field of that item to zero.

 

So that's what I did.  Set all amounts for the 4 items to zero.   It reverts to all amounts being "1" after restarting the server.

Share this comment


Link to comment

So here's what I edit the /Base_Loot/Easy Bases.json to...

 

 

Quote

[
  {
    "shortname": "explosive.timed",
    "name": null,
    "amount": 0,
    "skin": 0,
    "amountMin": 1,
    "probability": 1.0,
    "stacksize": -1
  },
  {
    "shortname": "ammo.rocket.basic",
    "name": null,
    "amount": 0,
    "skin": 0,
    "amountMin": 1,
    "probability": 1.0,
    "stacksize": -1
  },
  {
    "shortname": "ammo.rifle.explosive",
    "name": null,
    "amount": 0,
    "skin": 0,
    "amountMin": 24,
    "probability": 1.0,
    "stacksize": -1
  },
  {
    "shortname": "scrap",
    "name": null,
    "amount": 100,
    "skin": 0,
    "amountMin": 100,
    "probability": 1.0,
    "stacksize": -1
  }
]

 

 

Then here's what it resets to.  Every time I restart the server.

 

Quote

[
  {
    "shortname": "explosive.timed",
    "name": null,
    "amount": 1,
    "skin": 0,
    "amountMin": 1,
    "probability": 1.0,
    "stacksize": -1
  },
  {
    "shortname": "ammo.rocket.basic",
    "name": null,
    "amount": 1,
    "skin": 0,
    "amountMin": 1,
    "probability": 1.0,
    "stacksize": -1
  },
  {
    "shortname": "ammo.rifle.explosive",
    "name": null,
    "amount": 24,
    "skin": 0,
    "amountMin": 24,
    "probability": 1.0,
    "stacksize": -1
  },
  {
    "shortname": "scrap",
    "name": null,
    "amount": 100,
    "skin": 0,
    "amountMin": 100,
    "probability": 1.0,
    "stacksize": -1
  }
]

 

Share this comment


Link to comment

Out of curiosity, does base_loot get loaded into base containers first?  before difficulty loot?  and are they cumlative?

 

So...

if my base_loot/easy bases.json gives 100 scrap

If my difficulty_loot/easy.json gives 50 scrap

 

does my base first get 100, then another 50?

does my base get 50 only?

does my base get 50 the difficulty then finds out base_loot is higher and gives only 100?

Share this comment


Link to comment

no problem

yes, base loot will get added first if Always Spawn Base Loot Table is enabled in its profile

yes, if you have them in both files then base loot will spawn (given the above) and difficulty loot may randomly spawn on top of that too

if you notice items spawning that are not in your loot tables then it would be from the copypaste file (not from my tier packages though) and you can enable Empty All Containers in the profile to fix that. should also report that issue to whomever you got the base from so they can take the items out for you

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.7k

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.