Rich Text in LTN stops?

Adds new train stops forming a highly configurable logistic network.

Moderator: Optera

mrvn
Smart Inserter
Smart Inserter
Posts: 5873
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Log messages containing icons show both the icon and the icondescription

Post by mrvn »

That's the difference between

Code: Select all

[item=iron-plate]
and

Code: Select all

[img=item/iron-plate]
and is something the game engine does and not LTN.

Use the Rich Text Helper mod to create the later form if you don't want to type it in by hand.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Rich Text in LTN stops?

Post by Optera »

merged into existing thread
SteveMacGyver
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sun Jul 30, 2017 10:51 am
Contact:

Re: Rich Text in LTN stops?

Post by SteveMacGyver »

Optera wrote: Sat Feb 13, 2021 4:48 pm Since I cant find my post about converting tags in console anymore here it is again:

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
I assume stops are on nauvis, for other surfaces change script accordingly.
Thank you very, very much for this beautiful scriptlet
3000 hours+ ingame. Onboard the hypetrain since January 2017.
Post Reply

Return to “Logistic Train Network”