Page 1 of 1

[16.45] function for auto_barrel

Posted: Tue May 29, 2018 8:47 am
by L0771
What happened?
Functions "create_barrel_item", "create_fill_barrel_recipe" and "create_empty_barrel_recipe" from "Base mod" aren't showing the localised_name, only reads {"fluid-name."..fluid.name}

Image

How can it be solved?
Only add a check for fluid.localised_name before {"fluid-name." .. fluid.name}
On Factorio\data\base\data-updates.lua
line 95:

Code: Select all

    localised_name = {"item-name.filled-barrel", fluid.localised_name or {"fluid-name." .. fluid.name}},
line 179:

Code: Select all

    localised_name = {"recipe-name.fill-barrel", fluid.localised_name or {"fluid-name." .. fluid.name}},
line 210:

Code: Select all

    localised_name = {"recipe-name.empty-filled-barrel", fluid.localised_name or {"fluid-name." .. fluid.name}},
Result

Re: [16.45] function for auto_barrel

Posted: Tue May 29, 2018 11:22 am
by Dev-iL
I must ask - what is the context of "blood barrels"?

Re: [16.45] function for auto_barrel

Posted: Tue May 29, 2018 5:27 pm
by L0771
Dev-iL wrote:I must ask - what is the context of "blood barrels"?
Updating Cursed Exp, is finished, I found this bug testing my mod.

Re: [16.45] function for auto_barrel

Posted: Tue May 29, 2018 6:43 pm
by Rseding91
Thanks for the report however this is up to you to fix. If you don't want to use the standard naming system the barreling logic expects you can alter the prototypes yourself after the script has run in the final-fixes step.