[2.0.24] Passing parameter into __ENTITY__ LocalisedString doesn't work
Posted: Tue Dec 10, 2024 12:34 am
In 1.1 I had the following:
In 2.0, it just displays as the following, which is not correct:
It should display as "Big electric pole".
Obviously this is a simplified case, in reality I have a whole list of pole_names which I want to create settings for, which is why the `__ENTITY__` thing is very helpful... if I was able to pass parameters into it.
Code: Select all
[mod-setting-name]
power-overload-entity=__ENTITY____1____
Code: Select all
local pole_name = "big-electric-pole"
data:extend{
{
type = "string-setting",
name = "power-overload-max-power-" .. pole_name,
localised_name = {"mod-setting-name.power-overload-entity", pole_name},
setting_type = "startup",
default_value = "100MW",
}
}
Obviously this is a simplified case, in reality I have a whole list of pole_names which I want to create settings for, which is why the `__ENTITY__` thing is very helpful... if I was able to pass parameters into it.