[MOD_0.14.x] Compressed Materials

Topics and discussion about specific mods
Lord_Soddy
Burner Inserter
Burner Inserter
Posts: 10
Joined: Fri Feb 10, 2017 2:49 am
Contact:

Re: [MOD_0.14.x] Compressed Materials

Post 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
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: [MOD_0.14.x] Compressed Materials

Post 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
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: [MOD_0.14.x] Compressed Materials

Post 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
Lord_Soddy
Burner Inserter
Burner Inserter
Posts: 10
Joined: Fri Feb 10, 2017 2:49 am
Contact:

Re: [MOD_0.14.x] Compressed Materials

Post 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.
orzelek
Smart Inserter
Smart Inserter
Posts: 3924
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [MOD_0.14.x] Compressed Materials

Post 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.
Post Reply

Return to “Mods”