Any chance anyone could help me adjust my gather so that items that are picked up off the ground are more than 50? After adjusting the gathermanager file to pick up more HQ in a recent post by the developer, it appears that all rocks, sulfur rocks, quarry, and everything just simply went back to normal gather rates. Ive adjusted by manually typing the command within the console and it acknowledges the changes but doesnt work. Gather for the HQ though is working great.
Any help would be greatly appreciated. Im sure its most likely something on my end. In case its needed this is the change ive applied to the gather file. Everything else is default . Not too familiar with the coding so not sure how to apply the change.
private void OnDispenserGather(ResourceDispenser dispenser, BaseEntity entity, Item item)
{
System.Random rand = new System.Random();
if (!entity.ToPlayer()) return;
var player = entity.ToPlayer();
var amount = item.amount;
var gatherType = dispenser.gatherType.ToString("G");
if (GatherResourceModifiers.ContainsKey(item.info.displayName.english))
item.amount = (int)(item.amount * GatherResourceModifiers[item.info.displayName.english]);
else if (GatherResourceModifiers.ContainsKey("*"))
item.amount = (int)(item.amount * GatherResourceModifiers["*"]);
if(item.info.displayName.english.Contains("Metal"))
{
var rands = rand.Next(1, 10);
int HQ = 100;
if(HQ <= 0)
{
var gatherRate = 1;
if (GatherResourceModifiers.ContainsKey("High Quality Metal Ore"))
gatherRate = (int)GatherResourceModifiers["High Quality Metal Ore"];
else if (GatherResourceModifiers.ContainsKey("*"))
gatherRate = (int)GatherResourceModifiers["*"];
HQ = 1 * gatherRate;
}
player.inventory.GiveItem(ItemManager.CreateByItemID(2133577942, HQ), player.inventory.containerMain);
}
if (!GatherDispenserModifiers.ContainsKey(gatherType)) return;
var dispenserModifier = GatherDispenserModifiers[gatherType];
dispenser.containedItems.Single(x => x.itemid == item.info.itemid).amount += amount - item.amount / dispenserModifier;
if (dispenser.containedItems.Single(x => x.itemid == item.info.itemid).amount < 0)
item.amount += (int)dispenser.containedItems.Single(x => x.itemid == item.info.itemid).amount;
}
GatherManager
Moved
Total Downloads: 59,074 - First Release: Oct 23, 2014 - Last Update: Aug 27, 2017
- 4.93893/5, 131 likes
-
[DOUBLEPOST=1500121424][/DOUBLEPOST] -
gather.rate dispenser * 10
Multiplying by 10 everything from dispenser -
so i'd like to get the gather rates on all metals, sulfur, wood and stone to times 1000, but i tried the gatherrate dispenser command and it does not work, i did see that it's due to the game etc so i was wondering if someone could tell me what would work for my purpose, thank you in advance.
Dominic -
Try that dispenser.scale ore 1000
-
-
No restart needed, it should be directly affected while you gather, did your config file is updated when you tip the command ?
-
-
"Options": {
"GatherDispenserModifiers": {},
"GatherResourceModifiers": {
"*": 1000.0
}, -
"Options": {
"GatherDispenserModifiers": {},
"GatherResourceModifiers": {},
"*": 1000.0
},
"MiningQuarryResourceTickRate": 5.0,
"PickupResourceModifiers": {},
"QuarryResourceModifiers": {},
"SurveyResourceModifiers": {}
and should i add that 1000,0 clause to every single modifier i'd like modified, such as pickup and quarry? -
I tried these options but no go.
-
could i get a responce on my example from saturday?
is it like option A
"Options": {
"GatherDispenserModifiers": {},
"GatherResourceModifiers": {},
"*": 1000.0
},
"MiningQuarryResourceTickRate": 5.0,
"PickupResourceModifiers": {},
"QuarryResourceModifiers": {},
"SurveyResourceModifiers": {}
or option B
"Options": {
"GatherDispenserModifiers": {},
"GatherResourceModifiers": 1000,0,
"MiningQuarryResourceTickRate": 5.0,
"PickupResourceModifiers": {},
"QuarryResourceModifiers": {},
"SurveyResourceModifiers": {}
or something different alltogether? -
It's more like option c :
Code:"Options": { "GatherDispenserModifiers": {}, "GatherResourceModifiers": { "*": 1000.0 }, "MiningQuarryResourceTickRate": 5.0, "PickupResourceModifiers": {}, "QuarryResourceModifiers": {}, "SurveyResourceModifiers": {}
-
i'm sorry if i'm stupid though haha -
setup it all up, set stone to 10k stack and it wont stack what matter what i do. i have restarted the server serval times, made sure i saved the edits, ect. everything else is working
-
Stack Size Controller for Rust | Oxide -
gather.rate "Corn or whatever is the name" 1 -
-
Don't work with "High Quality Metal Ore" ?
Can I up rate from loots on barrels or crates ? -
BetterLoot or other barrel loot modifier