Page 1 of 1

[Twinsen][1.1.27] (Re)naming Spidertron doesn't trigger on_entity_renamed

Posted: Mon Mar 15, 2021 8:10 pm
by Mortu
1. What did you do?
Writing a mod to put spidertron names on the map. Using;

Code: Select all

-- control.lua
script.on_event( defines.events.on_entity_renamed, function(event)
  game.print( "got rename" )
end)
Then renaming a spidertron.

2. What happened?
The print didn't occur. However, when naming e.g. a train station it does work.

3. What did you expect?
I expect the event to be fired when renaming a spidertron.

P.S. Are there other entities that can be renamed besides spidertron and train stations?

Re: [Twinsen][1.1.27] (Re)naming Spidertron doesn't trigger on_entity_renamed

Posted: Tue Mar 16, 2021 12:43 pm
by Twinsen
Fixed in Version: 1.1.28.
The event should now be triggered when renaming the spider either though the GUI, game interaction or through lua using entity_label.

Thanks for the report.