Page 1 of 1
Endless Resources mod, too much oil
Posted: Mon Mar 28, 2016 5:04 am
by snurpley
Hello all, loving the game and the mod but I seem to be getting massive amounts of oil, such as 40/second from fresh oil patches and all of my old 0.1/second patches have been bumped up to 0.5/second. Endless Resources feels pretty balanced but this amount of oil feels too cheaty to me. Does anyone know how I might lower the oil/second production? Thanks for your time!
Re: Endless Resources mod, too much oil
Posted: Mon Mar 28, 2016 10:59 am
by orzelek
snurpley wrote:Hello all, loving the game and the mod but I seem to be getting massive amounts of oil, such as 40/second from fresh oil patches and all of my old 0.1/second patches have been bumped up to 0.5/second. Endless Resources feels pretty balanced but this amount of oil feels too cheaty to me. Does anyone know how I might lower the oil/second production? Thanks for your time!
Endless resources sets min/normal value for every resource to be the same thats why it breaks.
Try using one attached here.
You might need to modify minimum and normal in this one since I think I changed it from original version. It does skip oil modification so oil should work like in vanilla.
Re: Endless Resources mod, too much oil
Posted: Tue Mar 29, 2016 12:03 am
by snurpley
orzelek wrote:snurpley wrote:Hello all, loving the game and the mod but I seem to be getting massive amounts of oil, such as 40/second from fresh oil patches and all of my old 0.1/second patches have been bumped up to 0.5/second. Endless Resources feels pretty balanced but this amount of oil feels too cheaty to me. Does anyone know how I might lower the oil/second production? Thanks for your time!
Endless resources sets min/normal value for every resource to be the same thats why it breaks.
Try using one attached here.
You might need to modify minimum and normal in this one since I think I changed it from original version. It does skip oil modification so oil should work like in vanilla.
Thank you this is so generous of you! I'm using it right now and everything appears normal except my depleted oil patches are saying 0.0/second. I hooked one of them up to a storage tank to see if it was actually pumping out 0.0, but it seems to be pumping out 0.1 every 4 pump cycles. I'm not too knowledgeable with mods but is there a way to make it back to 0.1 per pump? Or was 0.1 per every 4 pump cycles always normal and I just never noticed? Thanks again for this!
Re: Endless Resources mod, too much oil
Posted: Tue Mar 29, 2016 5:13 pm
by orzelek
That mod doesn't edit oil at all in theory. I'm not sure why it wouldn't say 0.1 - maybe some other mods you have or some leftover edits?
I'm not using it just had it updated so didn't test much.
Re: Endless Resources mod, too much oil
Posted: Thu Mar 31, 2016 7:19 pm
by snurpley
orzelek wrote:That mod doesn't edit oil at all in theory. I'm not sure why it wouldn't say 0.1 - maybe some other mods you have or some leftover edits?
I'm not using it just had it updated so didn't test much.
I checked an old save file that was never effected by endless resources and all of the oils were back to normal, so I think you're probably right and there is some leftover edit. The save file is very old and I don't want to go back 12 hours:(
Ive been having fun trying to figure this out on my own and get to the bottom of it (that's what factorio's all about!) but I think I've exhausted all of my ideas. I tried a few variations with adding some extra code to the one you provided to try to "overwrite" whatever is keeping my oil at 0.0/second but so far I have been unsuccessful. FYI I have 0 experience with LUA or anything like that I just copy pasted some bits from other posts and hoped it would work.
Code: Select all
for _, resource in pairs(data.raw.resource) do
if not resource.infinite then
resource.infinite = true
resource.minimum = 200
resource.normal = 1000
end
end
if data.raw.resource["oil"] then data.raw.resource["oil"].min=175 end
if data.raw.resource["oil"] then data.raw.resource["oil"].max=350 end
The mod loads with your part working and I apparently didn't break the game with it but the oil remains at 0.0/sec. Is there any way you could point me in the right direction for how to set oil independently or should I give up on this lol. Thanks again for all your help this community is the best!
EDIT: I also tried the words "crude-oil" instead of "oil" and it did not work:(
Re: Endless Resources mod, too much oil
Posted: Thu Mar 31, 2016 8:15 pm
by orzelek
Actual resource name is "crude-oil".
The thing is... that if your oil well has depleted below minimum level those modificatios won't change that.
You would need to fix the well itself.
I think it might work if you execute this command from console while mouse is over actual oil well(it's info must be shown - remove pumping jack first)
(while using not changed mod):
Code: Select all
/c game.local_player.selected.amount = 750
By default oil is 750 minimum and 7500 so this should get it back to being 0.1.
Re: Endless Resources mod, too much oil
Posted: Thu Mar 31, 2016 9:37 pm
by snurpley
orzelek wrote:Actual resource name is "crude-oil".
The thing is... that if your oil well has depleted below minimum level those modificatios won't change that.
You would need to fix the well itself.
I think it might work if you execute this command from console while mouse is over actual oil well(it's info must be shown - remove pumping jack first)
(while using not changed mod):
Code: Select all
/c game.local_player.selected.amount = 750
By default oil is 750 minimum and 7500 so this should get it back to being 0.1.
That worked perfectly! Thank you so much again for all your help! I let the pump cycle about 150 times, deconstructed it to take a peak, and the yield is still at 10%. This is perfect! I declare this solved!
