Allow LuaPlayer.add_pin to accept LocalisedString

Things that we aren't going to implement
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 483
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Allow LuaPlayer.add_pin to accept LocalisedString

Post by protocol_1903 »

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
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4443
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Allow LuaPlayer.add_pin to accept LocalisedString

Post by boskid »

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.
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 483
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Allow LuaPlayer.add_pin to accept LocalisedString

Post by protocol_1903 »

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

Return to “Won't implement”