Automatically set names of newly built train stations. Dirty update to Factorio 2.0 by Kamsta99
Providing the player with new tools or adjusting the game interface, without fundamentally changing gameplay.
Transportation of the player, be it vehicles or teleporters.
Trains are great, but what if they could do even more?
this is because, in the function on_new_entity_1, local entity is set to event.created_entity. It has changed in factorio 2.0 to just event.entity like in on_new_entity_2 https://lua-api.factorio.com/latest/events.html#on_built_entity
EDIT: changed to created_entity
deleted
as im poor in coding, how you fixed this ?
in control.lua change line 227 from:
local entity = event.created_entity
to
local entity = event.entity
that should fix it, I don't think I changed anything else, to my recollection.
Thanks it fixed issue i tried to solve, i will upload fixed version soon