The International Simutrans Forum

Development => Bug Reports => Topic started by: Yona-TYT on December 26, 2024, 10:14:13 AM

Title: [Script Tools] Players can edit other players' text labels
Post by: Yona-TYT on December 26, 2024, 10:14:13 AM

In theory it should not be possible for a non-owning player to modify the text labels.

Put this example in a script tool:

local list = world.get_label_list()
// list is now of type label_list_x
foreach(label in list) {
label.set_text("If I'm not the owner this shouldn't change :P.")
}
Title: Re: [Script Tools] Players can edit other players' text labels
Post by: prissi on December 26, 2024, 12:45:47 PM
This is not allowed in network games, only for local games and is intended that way.