[2.0.68] CustomTooltipField doesn't show up on Recipes

Bugs which we just recently fixed in our development version and will reach you in the next release.
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 135
Joined: Wed Jan 18, 2023 3:49 am
Contact:

[2.0.68] CustomTooltipField doesn't show up on Recipes

Post by PennyJim »

As the title states, we cannot do custom tooltips on recipes when we can still do localized descriptions (the old method of custom tooltips)

Since it's on the Prototype I would've expected it to work on at least the major four (Items, Entities, Recipes, and Technologies).
I can concede it maybe not showing up on Technologies, but Recipes seems like an oversight.

Sample code snippet:

Code: Select all

local custom_tooltips = {
	{
		name = "TEST TOOLTIP",
		value = "SHOULD SHOW UP"
	}
}
data.raw["item"]["iron-plate"].custom_tooltip_fields = custom_tooltips
data.raw["recipe"]["basic-oil-processing"].custom_tooltip_fields = custom_tooltips
data.raw["technology"]["oil-processing"].custom_tooltip_fields = custom_tooltips

local custom_description = "TEST DESCRIPTION: SHOULD SHOW UP"

data.raw["item"]["iron-plate"].localised_description = custom_description
data.raw["recipe"]["basic-oil-processing"].localised_description = custom_description
data.raw["technology"]["oil-processing"].localised_description = custom_description
Results:
Screenshot from 2025-09-25 18-08-31.png
Screenshot from 2025-09-25 18-08-31.png (61.74 KiB) Viewed 164 times
Screenshot from 2025-09-25 18-08-04.png
Screenshot from 2025-09-25 18-08-04.png (108.99 KiB) Viewed 164 times
09-25-2025, 18-20-10.png
09-25-2025, 18-20-10.png (46.51 KiB) Viewed 164 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4195
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.68] CustomTooltipField doesn't show up on Recipes

Post by boskid »

Ok, i did some small tweaks and made it work for 2.0.69. Recipe tooltip uses completly different tooltip creation code due to everything being manually placed and coordinated (like some lines showing different content if you have not enough items to craft a recipe), so at best what i can do is to put the custom tooltip near the bottom. As for the factoriopedia, it looks like there was a condition that skipped showing recipe prototype custom fields when recipe has no description - for this i added an extra check that will bypass valid description check when custom tooltip fields are present.

09-26-2025, 10-10-35.png
09-26-2025, 10-10-35.png (81.71 KiB) Viewed 82 times
09-26-2025, 10-10-52.png
09-26-2025, 10-10-52.png (21.41 KiB) Viewed 82 times
Post Reply

Return to “Resolved for the next release”