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
[MOD_0.14.x] Compressed Materials
-
- Burner Inserter
- Posts: 10
- Joined: Fri Feb 10, 2017 2:49 am
- Contact:
Re: [MOD_0.14.x] Compressed Materials
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
-
- Burner Inserter
- Posts: 10
- Joined: Fri Feb 10, 2017 2:49 am
- Contact:
Re: [MOD_0.14.x] Compressed Materials
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)
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
-
- Burner Inserter
- Posts: 10
- Joined: Fri Feb 10, 2017 2:49 am
- Contact:
Re: [MOD_0.14.x] Compressed Materials
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
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.
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.