Page 1 of 1
Not possible to set the recipe request_paste_multiplier
Posted: Fri May 04, 2018 4:33 pm
by magu5026
I tried to override the "request_paste_multiplier" in a data-final-fixes file.
Code: Select all
for _,recipe in pairs(data.raw.recipe) do
recipe.request_paste_multiplier = 100
end
But that has no effect and the multiplier still has the default value of 30.
Re: Not possible to set the recipe request_paste_multiplier
Posted: Fri May 04, 2018 5:11 pm
by Rseding91
Thanks for the report howevr this isn't a bug: you need to set it for the difficulty if a recipe is using difficulties.
Re: Not possible to set the recipe request_paste_multiplier
Posted: Fri May 04, 2018 7:01 pm
by magu5026
.
Re: Not possible to set the recipe request_paste_multiplier
Posted: Fri May 04, 2018 7:01 pm
by magu5026
Rseding91 wrote:Thanks for the report howevr this isn't a bug: you need to set it for the difficulty if a recipe is using difficulties.
I found the mistake.
In the lua documentation, the property is called "request_paste_multiplier". This property can be used to get the value ingame (force.recipe.prototype.request_paste_multiplier (not 100% correct)).
But in the data.raw the property is called "request
er_paste_multiplier". That's difficult, but now it works.
Maybe you can change this, or create a documention for this.
Re: Not possible to set the recipe request_paste_multiplier
Posted: Fri May 04, 2018 7:09 pm
by Bilka
magu5026 wrote:Maybe you can change this, or create a documention for this.
Here ya go, official unofficial doc:
https://wiki.factorio.com/Prototype/Rec ... multiplier