Rich Text in LTN stops?
Moderator: Optera
Removing localized item label name after the icon in console
Hello,
I just have a quick question : is there a way to remove the localized item name following the icon in console info messages ? They take so much place it gets confusion and keeps me from knowing what is happening quickly.
Here is an example :
I would like to remove the part in bracket that appears in green (the localized string).
I noticed by watching Nilaus youtube channel that he does not have this problem, here is how it looks for him :
It is much more compact and readable.
Does anyone have an idea how i could do that ?
Thanks
I just have a quick question : is there a way to remove the localized item name following the icon in console info messages ? They take so much place it gets confusion and keeps me from knowing what is happening quickly.
Here is an example :
I would like to remove the part in bracket that appears in green (the localized string).
I noticed by watching Nilaus youtube channel that he does not have this problem, here is how it looks for him :
It is much more compact and readable.
Does anyone have an idea how i could do that ?
Thanks
-
- Inserter
- Posts: 48
- Joined: Tue Feb 26, 2019 5:49 pm
- Contact:
Re: Removing localized item label name after the icon in console
Hi,
using tags like:
results in those mixed text messages.
using:
will result in the icon without text
using tags like:
Code: Select all
[item=iron-plate]
using:
Code: Select all
[img=item/iron-plate]
Re: Removing localized item label name after the icon in console
Yes it worked ! Thank you very much for the information, sir
Rich Text in LTN stops?
I have noticed that LTN train stops do not support the new rich-text feature... is this something that's fixable?
Re: Rich Text in LTN stops?
Be precise.
What did you use as stop name, what did you expect to happen, what did happen.
What did you use as stop name, what did you expect to happen, what did happen.
My Mods: mods.factorio.com
Re: Rich Text in LTN stops?
I went to take a screenshot for you... and it is now working, so I am very confused... but at least we can call this not-a-bug (for now).
Re: Rich Text in LTN stops?
Ok I also found the same error
Update:
I'm stupid and don't know who to rich text.
Update:
I'm stupid and don't know who to rich text.
Code: Select all
[item=iron-plate] is not [img=item/iron-plate]
Re: Rich Text in LTN stops?
With v 1.1. now adding easy support for RT in names it looks like it will use the [item=] format not [img/item=] format. This makes the notices LTN posts rather verbose like the image posted my Monsignor.
Can we change the RT outputted by LTN messages only use the image only ( or at least make it an option ) ?
Can we change the RT outputted by LTN messages only use the image only ( or at least make it an option ) ?
Re: Rich Text in LTN stops?
LTN will use the same format as in game chat.
If you want images only use the img= format when naming stops.
If you want images only use the img= format when naming stops.
My Mods: mods.factorio.com
Option for image version of icon picker
TL;DR
The rich text from the icon picker is ugly in LTN notificationsWhat ?
In the LTN notification shown, the first station tag was made with the icon picker, and looks like [item=copper-ore]. The second station tag is img=item.copper-ore (brackets omitted). I don't like seeing the green item links in the notifications.Why ?
It makes the rich text generated by LTN, and possibly other mods, cleaner to look at.- NotRexButCaesar
- Smart Inserter
- Posts: 1133
- Joined: Sun Feb 16, 2020 12:47 am
- Contact:
Re: Option for image version of icon picker
No, please. If this is added, how will we differentiate between the different ones?
Ⅲ—Crevez, chiens, si vous n'étes pas contents!
Re: Option for image version of icon picker
I'll admit some icons are close in appearance. I envision a checkbox to let you choose if you want the item= version or the img= version.
Re: Option for image version of icon picker
[Koub] This is a LTN request I guess ?
Koub - Please consider English is not my native language.
Re: Option for image version of icon picker
Not really an LTN issue. That's simply how chat parses rich text.
Since you moved it into LTN Subforum I'll merge it with an older thread explaining how to use rich text.
My Mods: mods.factorio.com
Re: Rich Text in LTN stops?
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
My Mods: mods.factorio.com
Re: Rich Text in LTN stops?
Is there any option to disable rich text gps (green text with map icon) for station names is chat messages?
-
- Burner Inserter
- Posts: 16
- Joined: Sun Jul 30, 2017 10:51 am
- Contact:
Log messages containing icons show both the icon and the icondescription
When displaying log messages, a station name containing an icon will show both the icon and the name of the icon in the notification.
If at all possible, it would be prettier if only the icon could be displayed.
An example of this is the following screencap:
If at all possible, it would be prettier if only the icon could be displayed.
An example of this is the following screencap:
3000 hours+ ingame. Onboard the hypetrain since January 2017.