Jump to content

1 Screenshot

  • 832k
  • 7.2k
  • 52.51 kB

Recommended Comments



  • Administrator

What the heck? I didn't change anything relating to the data structure.
Just just compared v1.1.5 + 1.1.6 in editor to make sure nothing got changed by mistake but it's all good.

Would you mind throwing in 1.1.6 again to see if it was some weird coincidence?

Link to comment
Share on other sites
23 minutes ago, Steenamaroo said:

What the heck? I didn't change anything relating to the data structure.
Just just compared v1.1.5 + 1.1.6 in editor to make sure nothing got changed by mistake but it's all good.

Would you mind throwing in 1.1.6 again to see if it was some weird coincidence?

Just tried, same issue. 1.1.5 working fine

Link to comment
Share on other sites
42 minutes ago, Steenamaroo said:

What the heck? I didn't change anything relating to the data structure.
Just just compared v1.1.5 + 1.1.6 in editor to make sure nothing got changed by mistake but it's all good.

Would you mind throwing in 1.1.6 again to see if it was some weird coincidence?

Quote

 

I'm getting the same after updating to current version, happy to send my files over discord so you can test on your side?

same.PNG

Link to comment
Share on other sites
2 hours ago, Steenamaroo said:

@Jaws@Baron Von Finchus
Sorted now in V1.1.7
Thanks fellas.

Can confirm it is fixed. Now how about those custom names? 😆
I'm kidding, I realize that can take some time. Thank you once again for all you do man. Will own BotRespawn soon... as soon a Christmas is over.

Edited by Jaws
Link to comment
Share on other sites
  • Administrator

🤣
Glad that sorted it - Will definitely be looking into the names thing in the near future. Thanks for all the info on that. 😉

Link to comment
Share on other sites

I'm trying to understand how this works but I'm totally overwhelmed...I can't get my own LootTable to add in BotRespawn.

image.png.bc4803800ac47a611dbbfd5bead71ef7.png

I have the lootTable test

image.png.cb393f2a7a82f99dc717c26bd0b7e4a2.png

But in-game i dont have the LootTable test
image.png.ff3ef724f21bf5906606378994ce31c5.png

What am I doing wrong here ?

Link to comment
Share on other sites
  • Administrator

Hi,
The BotReSpawn UI only shows alternative vanilla tables as replacements for default scientist loot.

CustomLoot can provide loot instead of that, or as well as it, but they don't show up in the BotReSpawn UI.
All the setup for them is just done within CustomLoot files.

If you want to disable any vanilla loottable in favour of CustomLoot, set 'Allow_Rust_Loot' to false in the UI for your BotReSpawn profile.

 


I can see you've already enabled entries per BotReSpawn profile in CustomLoot config, found the Airfield entry, and created a loottable called test.json.

All you need to do now is balance some categories/items in that test.json loottable then reload CustomLoot. 🙂

 

For every item CustomLoot puts in a container, it chooses a category first, based on your probabilities,
then an item from that category, also based on your probabilities.

If you had

  • Weapons 4
  • Food 1
  • Resources 5
  • Everything else 0


Then the item would be a weapon 4 times in 10...food 1 time in 10...resource 5 times in 10.

Say it chooses resources, the same now applies for choosing a specific resource.
You could have

  • Wood 1
  • Stone 8
  • Scrap 2
  • Everything else 0


Same thing - There's a 1 in 10 chance of wood, 8 in 10 for stone, 2 in 10 for scrap

The minimum to make it work is to open test.json and set 

1: Probability for at least one category to greater than 0
2: Probability for at least one item in such a category to greater than 0.

 

There's no maximum range or limit, so you can make items as rare as you like by balancing probabilities as drastically as you want.

  • Wood 100
  • Stone 1
  • Scrap 200
  • Everything else 0


That would make stone very rare, for example.

Edited by Steenamaroo
Link to comment
Share on other sites

Thank you very much for the help !
I'm trying to follow your instruction but I've already got the problem at the beginning set 'Allow_Rust_Loot' to false doesn't exist in the settings. I've checked multiple times and it doesn't exist.
Maybe did you mean the setting "allow_rust_loot_percent" ?

Link to comment
Share on other sites
  • Administrator

Yes, sorry, I was mistaken.
If you want to disable vanilla loot from scientist, or your chosen loottable (in BotReSpawn), set Allow_Rust_Loot_Percent to 0 for that profile, via the BotReSpawn UI,.

  • Like 1
Link to comment
Share on other sites

I think I have a completely different problem now and I don't even know if that's possible with your plugin. I want to give different NPC's different LootTables. At the moment there are only the vanilla LootTables and I have no idea how to give 2 different NPCs 2 different LootTables. Would you have maybe 5 minutes to show me this in Discord? l

Link to comment
Share on other sites
  • Administrator

Oh, I'm sorry. I misread some of your info!

 

In CustomLoot config, the image you pasted above, change corpseTypePerBotReSpawnProfile to true, then save and reload CustomLoot.
After doing that, close and reopen the config file, and you'll see entries now for every single BotReSpawn profile, by name, with BotReSpawn in the name for clarity.

My apologies - I saw "Airfield" and thought you had already done this, forgetting that Rust has vanilla npcs at the airfield. 

When you've done that, and found some of the BotReSpawn profiles you want to give custom loot to, you can enter "lootTable": "SomeNameHere", like you put in test, to get new loottables for those BotReSpawn profiles.

 

You can use the same loottable for many profiles, if you wish, or put in unique names for each.

Edited by Steenamaroo
Link to comment
Share on other sites
9 minutes ago, Steenamaroo said:

Oh, I'm sorry. I misread some of your info!

 

In CustomLoot config, the image you pasted above, change corpseTypePerBotReSpawnProfile to true, then save and reload CustomLoot.
After doing that, close and reopen the config file, and you'll see entries now for every single BotReSpawn profile, by name.

My apologies - I saw "Airfield" and thought you had already done this, forgetting that Rust has vanilla npcs at the airfield. 

It works ! Thanks very much. It will take me some time now to bring this perfectly to my server but I think I can do it 🙂

Link to comment
Share on other sites
  • Administrator

Great! Glad to hear that!
Don't hesitate to come back if you have any trouble.

Link to comment
Share on other sites

So far everything is working fine but for some reason there are default items in my LootTable that I haven't set. I activated Ammo,medic. I would like to add KeyCards as well but apparently they are not in the LootTable. There is an option "allowKeycards": but there is no setting which keycard I want to add to which bot in the drop.

image.png.2a9c9dda6b4d0e74848707eaca4cdd93.png


I think this is due to the default NPC loot source, but I can't disable it.
image.png.fa7cf893d2715df526478477280e98c5.png

You also said I should set 'Allow_Rust_Loot' to false
If I do that then I don't get any more loot. If I enable that I get my custom loot along with the default loot.


€dit : I have to correct myself...somehow it doesn't work at all. It's all completely weird. For example. I have set that an NPC can drop between 5-12 pistol bullets, but it always comes with 15 bullets. 🤣
wtf is going on

Edited by Hi im billa
Link to comment
Share on other sites
7 hours ago, Steenamaroo said:

Oh, I'm sorry. I misread some of your info!

 

In CustomLoot config, the image you pasted above, change corpseTypePerBotReSpawnProfile to true, then save and reload CustomLoot.
After doing that, close and reopen the config file, and you'll see entries now for every single BotReSpawn profile, by name, with BotReSpawn in the name for clarity.

My apologies - I saw "Airfield" and thought you had already done this, forgetting that Rust has vanilla npcs at the airfield. 

When you've done that, and found some of the BotReSpawn profiles you want to give custom loot to, you can enter "lootTable": "SomeNameHere", like you put in test, to get new loottables for those BotReSpawn profiles.

 

You can use the same loottable for many profiles, if you wish, or put in unique names for each.

Can you  make it available for Huntsman plugin bots ?

Link to comment
Share on other sites
  • Administrator

@Hi im billa

"You also said I should set 'Allow_Rust_Loot' to false
If I do that then I don't get any more loot."


That suggests that the CustomLoot setup isn't working right.
Set Allow_Rust_Loot_Percent to 0 and reload your profile, to keep things simple for now.


"I have set that an NPC can drop between 5-12 pistol bullets, but it always comes with 15 bullets. "

Any chance you've set the min + max amounts backwards? I've seen people doing that.
If CustomLoot gave that ammo three times, with the numbers reversed, that would be 5x3, stacked - 15.

 

"There is an option "allowKeycards": but there is no setting which keycard I want to add to which bot in the drop."

allowKeycards is false by default. If you set it to true then reload CustomLoot, your loottable should now list the keycard items.

Link to comment
Share on other sites
  • Administrator
4 hours ago, pookins said:

Can you  make it available for Huntsman plugin bots ?

Hi,
CustomLoot has API so any plugin can use it to populate containers.
If Krungh is willing, he could add config option for "CustomLoot_table": "",
and make a call to CustomLoot for items if that entry isn't empty. 🙂

  • Like 2
Link to comment
Share on other sites
11 hours ago, Steenamaroo said:

@Hi im billa

"You also said I should set 'Allow_Rust_Loot' to false
If I do that then I don't get any more loot."


That suggests that the CustomLoot setup isn't working right.
Set Allow_Rust_Loot_Percent to 0 and reload your profile, to keep things simple for now.


"I have set that an NPC can drop between 5-12 pistol bullets, but it always comes with 15 bullets. "

Any chance you've set the min + max amounts backwards? I've seen people doing that.
If CustomLoot gave that ammo three times, with the numbers reversed, that would be 5x3, stacked - 15.

 

"There is an option "allowKeycards": but there is no setting which keycard I want to add to which bot in the drop."

allowKeycards is false by default. If you set it to true then reload CustomLoot, your loottable should now list the keycard items.

I've tested it several times now and did it exactly as you told me and it doesn't work. I send you the pictures and the config. Of course, I always reloaded all the plugins after I made a change.

image.png.434d9be1584a9b734920b3ed1e9ead5f.png
image.png.7eff575997395d0a91c2794db6d3466b.png


I tried it with the probability of ammo with 10 and 0 and both got the same result. I tested this line
image.png.27d9582483b3e1d5b51efd14a2a0015a.png
image.png.afe86926af533ec85c83759c5e4c817a.png

image.png.a082baa18776e0a201cfeaa62ba57050.png

After I set Allow_Rust_Loot_Percent to to 0 I don't get any more loot from the NPC's

CustomLoot.json yellow.json

Edited by Hi im billa
Link to comment
Share on other sites

Hello, 
I wanted to report again. It's working now...I don't know what I did but today it suddenly worked. One less problem ^^

Thanks again for your help!

Link to comment
Share on other sites
  • Administrator

Hey,
Glad to hear it's working.
I know it's not the most intuitive of things but glad you're up and running now. 👍

Link to comment
Share on other sites

Would you like to add Display Name to this plugin? I need it because I have non-standard items on the server

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 3
  • Love 6

User Feedback

1.3m

Downloads

Total number of downloads.

6.5k

Customers

Total customers served.

95.8k

Files Sold

Total number of files sold.

1.9m

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.