Page 2 of 2
Re: [MOD_0.14.x] Compressed Materials
Posted: Fri Feb 17, 2017 11:19 am
by Lord_Soddy
There you go:
https://drive.google.com/drive/folders/ ... sp=sharing
Please let me know if anything else is required and I will add it right away.
Thanks once again for your efforts, making this really great mod
Re: [MOD_0.14.x] Compressed Materials
Posted: Fri Feb 17, 2017 11:54 am
by Nexela
Would it be possible for you to upload the contents of the mod folder (all the mods). Will make it easier for me to check these
Re: [MOD_0.14.x] Compressed Materials
Posted: Fri Feb 17, 2017 12:03 pm
by Lord_Soddy
Re: [MOD_0.14.x] Compressed Materials
Posted: Fri Feb 17, 2017 12:48 pm
by Nexela
Ok I figured it out.
StackSize mod makes stacks of 5k, The limit for compressed materials is 1000. If you really want to change this for some reason in data-final-fixes.lua (local max_stack_size_to_compress = 1000) you can try changing this line to a higher value, After doing this you will need to force enable them by running this command. (Don't go over 65535 or bad things will happen)
Code: Select all
/c
game.player.force.reset_technologies()
game.player.force.reset_recipes()
for _, force in pairs(game.forces) do
for i=1, 7 do
if force.technologies["compression-"..i].researched then
for _, effect in pairs(force.technologies["compression-"..i].effects) do
if effect.type == "unlock-recipe" then
force.recipes[effect.recipe].enabled = true
end
end
end
end
end
Re: [MOD_0.14.x] Compressed Materials
Posted: Fri Feb 17, 2017 1:18 pm
by Lord_Soddy
Thanks once again. I changes the stack size to 5,000, but the command won't work. Anyway, I will skip trying to use the compressing option altogether, and instead manage the stack size, that's seems way easier. Thank you very much nonetheless for all your work.
Re: [MOD_0.14.x] Compressed Materials
Posted: Fri Feb 17, 2017 7:23 pm
by orzelek
I'm using BigBags that also changes stack size and it makes compressed materials a bit unfriendly - big stacks to compress with very long processing times.
I'm adding special stack divider to code so that it cuts compressible batch to 1/3rd of stack. Since I added mod to a big game I did not use it really so not sure if this is helpful.