Allow LuaPlayer.add_pin to accept LocalisedString
- protocol_1903
- Filter Inserter

- Posts: 483
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Allow LuaPlayer.add_pin to accept LocalisedString
As in title, I'd like to be able to use a LocalisedString instead of a plain string for the label property when adding pins to the player.
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
Buy me a coffee
https://mods.factorio.com/user/protocol_1903
Buy me a coffee
Re: Allow LuaPlayer.add_pin to accept LocalisedString
Given the direction we went with display panel which for a brief moment supported LocalisedStrings but was downgraded to a regular string due to various problems (limit restriction bypasses, desyncs), i am not considering this to be an interesting direction to go, especially since this is a player editable string and players cannot compose localised strings. Given that no use case was provided i am considering this request as you just throwing ideas and seeing what sticks, this is likely an alternative to 133305. I will throw this to wont implement.
- protocol_1903
- Filter Inserter

- Posts: 483
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: Allow LuaPlayer.add_pin to accept LocalisedString
They're tangentially related ideas, all of this was the result of not being able to make alerts that last longer. I'm working on adding more 'in your face' notifications to the beacon interference mechanic in pY, which necessitates alerts. Short alerts is fine when you're actively building, but for migrating existing saves I was looking to make them last longer, so you can find existing unnoticed issues. Since that's not possible, I'm adding pins for existing interference. Normally creating a pin from an alert copies the string in the label of the alert, which is an already translated localized string. I was trying to replicate the behavior so that each player gets a localized version of "Beacon interference" in their pins after the migration, but since that's not possible I'm fine using a plain string for this edge case.
I don't have a use case for this outside of the migrations mentioned, so not implementing it is fine with me.
I don't have a use case for this outside of the migrations mentioned, so not implementing it is fine with me.
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
Buy me a coffee
https://mods.factorio.com/user/protocol_1903
Buy me a coffee
