[2.0.55] [img=ammo-category/land-mine] unrecognized.

Bugs that are actually features.
draslin
Inserter
Inserter
Posts: 27
Joined: Thu Nov 14, 2019 2:27 am
Contact:

[2.0.55] [img=ammo-category/land-mine] unrecognized.

Post by draslin »

What did you do?
I attempted to use the following rich text markup in a constant combinator description.

img=ammo-category/land-mine

What happened?
It comes up as unrecognized red text

What did you expect to happen instead? It might be obvious to you, but do it anyway!
I expected to see the same Land-mine category icon found on the military tab of the Factoriopedia. The land-mine category is the only one that doesn't work. The following markup all works.

img=ammo-category/artillery-shell
img=ammo-category/beam
img=ammo-category/bullet
img=ammo-category/cannon-shell
img=ammo-category/capsule
img=ammo-category/electric
img=ammo-category/flamethrower
img=ammo-category/grenade
img=ammo-category/laser
img=ammo-category/railgun
img=ammo-category/rocket
img=ammo-category/shotgun-shell
img=ammo-category/tesla

Does it happen always, once, or sometimes?
Always.
eugenekay
Filter Inserter
Filter Inserter
Posts: 560
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: [2.0.55 (Build 83138 expansion, win64] [img=ammo-category/land-mine] unrecognized.

Post by eugenekay »

Land Mines are an Item/Entity of their own right.

The land-mine Item Definition is more like a Wall ("Defensive Structure"). There is a Ammo Category defined for "landmine" types, but nothing for "land-mine".

Try one of these:

Code: Select all

[img=ammo-category/landmine]
[img=item/land-mine]
[item=land-mine]
draslin
Inserter
Inserter
Posts: 27
Joined: Thu Nov 14, 2019 2:27 am
Contact:

Re: [2.0.55] [img=ammo-category/land-mine] unrecognized.

Post by draslin »

Thanks. img=ammo-category/landmine does work. I didn't notice the class name and .png file name didn't match.
Post Reply

Return to “Not a bug”