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

This subforum contains all the issues which we already resolved.
Post Reply
Mortu
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Mar 15, 2021 7:50 am
Contact:

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

Post 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?

Twinsen
Factorio Staff
Factorio Staff
Posts: 1233
Joined: Tue Sep 23, 2014 7:10 am
Contact:

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

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

Post Reply

Return to “Resolved Problems and Bugs”