Code: Select all
[item=iron-plate]
Code: Select all
[img=item/iron-plate]
Use the Rich Text Helper mod to create the later form if you don't want to type it in by hand.
Moderator: Optera
Code: Select all
[item=iron-plate]
Code: Select all
[img=item/iron-plate]
Thank you very, very much for this beautiful scriptletOptera wrote: ↑Sat Feb 13, 2021 4:48 pm Since I cant find my post about converting tags in console anymore here it is again:
I assume stops are on nauvis, for other surfaces change script accordingly.Code: Select all
/c local stops = game.surfaces["nauvis"].find_entities_filtered{type="train-stop"} for _, stop in pairs(stops) do stop.backer_name = string.gsub(stop.backer_name, "item=", "img=item/") stop.backer_name = string.gsub(stop.backer_name, "fluid=", "img=fluid/") end