Hi Angel,
Thanks for the mods first of all. Re infinite ores: I love the idea and the generation of the infinite patch within the natural ones (overlapping-resources-patch.lua) but I'm not a fan of the initial huge yields. When I played pre-space age I went into the editor and manually set the initial and starting yield of each tile to 100 which did exactly what I wanted.
Playing again, and after some experience learning LUA modding I've been perusing the mod code to try and set a static yield of 100% for the infinite ore patches.
I think I've found the two relevant areas:
ResourceBuilder.lua
--Set infinite yields according to mod options or default
if angelsmods.ores and angelsmods.ores.yield then
input.minimum = angelsmods.ores.yield * 15
input.output_probability = angelsmods.ores.loweryield
else
input.minimum = 300
input.output_probability = 1
end
--Set defaults for infinite resources normal and maximum
if input.infinite then
input.normal = 1500
input.maximum = 6000
end
and
vanilla-ore-inf.lua
for each infinite ore:
minimum = angelsmods.ores.yield,
normal = 1500,
maximum = 6000,
I've had weird behaviour when changing these values, and I feel like I'm missing something that might be obvious. Reducing the minimum
increases the yields to astronomical 6-digit amounts.
increasing these values actually reduces the initial yield. If I set it to say 100,000, I start getting patches with a per tile yield of single digit percents.
Additionally, the minimum yield setting has no effect (set to 100, I still see 0-1-2-3% tiles) and I'm unable to place miners via the editor in this situation too.
Is there somewhere in the code for infinite ores that I'm missing that takes precedence for where the yields are set? Is there a 1/input.yield calculations somewhere to explain the inverse behaviour when reducing / increasing yields?
I appreciate this is a fairly niche request but I'm losing the will to live changing LUA files and I'm at the "take stabs in the dark" phase now, so I figured I'd throw in the towel and ask for help. Any assistance is appreciated!
Cheers,
Darrel.