So after seeming to have some issues with placking pumpjacks to get oil out I did some more experimenting, It seems as if they have replaced the oil deposits in the game mechanics but just dont have it pop with a survay charge.... this is really messing with some things on my server. So Im asking if anyone can make an addon that no mater what make it where when using a pump jack 1 lowgrade = 1 crude oil?
[DOUBLEPOST=1460722528,1460498951][/DOUBLEPOST]I need some help. I place pumpjacks at places like the airfield and places around the map and I find that there is places when its taking 4 low grade to get 1 crude. Im just looking for something like:
If pumpjack then crude oil
1 lowgrade produces 1 crudeoil
[DOUBLEPOST=1460929350][/DOUBLEPOST]Is anyone able to work on this? I am willing to donate to get this done/moved up on a scripters que!
Rust Steady output for pump jacks
Discussion in 'Plugin Requests' started by Razor14150, Apr 17, 2016.
-
I would be interested in supporting the development of this plugin as well.
-
There was one developer whom said he would look into it (not to put names out there) and then never got back to me. I dont know if it is possible.
-
You talking like make it a ratio of 1:1, so 1lowgrade to 1 oil?
-
Yes 1 oil for 1 low grade no matter where its placed.
-
just answering because I'm interested if there is a solution for this
-
bump diggity
still interested in a final answer, yes or no. -
I think this is possible, I looked at several ways to do it and I THINK I might have found one, but it has a low chance of working. I'll give it a try and let you know.
[DOUBLEPOST=1462221717,1462208692][/DOUBLEPOST]Alright, I know they disabled pump jacks in a past update, are they still disabled? I'm flying around in the desert throwing thousands of survey charges and none of them are oil. Any ideas what I'm doing wrong? I don't play too much anymore so maybe something changed. -
Build Addon: Build for Rust | Oxide -
[DOUBLEPOST=1462238090][/DOUBLEPOST]
Until they add pumpjacks back in, you're out of luck. -
-
EDIT: And even though GatherManager plugs into it, if oil is never produced, you can't do anything with it. Even placing pumpjacks doesn't produce oil. -
Here's a snippet of code, do what you want with it. Right now, it just makes every oil pump jack, static or not, produce 1 crude oil for 1 low grade, regardless of if there was actually a resource deposit where it was.
Code:void OnServerInitialized() { MiningQuarry[] quarries = GameObject.FindObjectsOfType<MiningQuarry>(); FieldInfo _linkedDeposit = typeof(MiningQuarry).GetField("_linkedDeposit", (BindingFlags.Instance | BindingFlags.NonPublic)); foreach (MiningQuarry quarry in quarries) { var name = quarry?.LookupShortPrefabName() ?? string.Empty; if (!name.Contains("jack")) continue; var newDepo = new ResourceDepositManager.ResourceDeposit(); newDepo.Add(ItemManager.FindItemDefinition("crude.oil"), 1, 1000, 10f, ResourceDepositManager.ResourceDeposit.surveySpawnType.ITEM, true); _linkedDeposit.SetValue(quarry, newDepo); quarry.SendNetworkUpdateImmediate(); } }
Last edited by a moderator: May 3, 2016 -
Thank you for coming up with this
So just to be clear I would copy the majority of this snippet into say onentityspawned, place a few pump jacks, reload said plugin and it "should" work
-
-
I believe the number is 85 for it. I havent been able to do full testing as Ive been busy with work *cough cough* as I should be now *cough cough*
-
If you plant them it also needs luck,
i planted one and it works nice, i planted 7, they were doing nothing and the 8th produced one crude oil for 4 x fuel =/
[DOUBLEPOST=1462653490,1462471279][/DOUBLEPOST]just coming back to copy the code to test it but for your info:
/deploy "pump jack"
works also -
All the /plant 93 i have been doing is giving the correct 2x rate on my 2x gather server
-
lol... yes. /deploy seems to be luck... /plant works.
Thank you ^^