[1.0.0] Prototype/Car::minimap_representation

Schallfalke
Fast Inserter
Fast Inserter
Posts: 162
Joined: Sun Oct 28, 2018 7:57 am
Contact:

[1.0.0] Prototype/Car::minimap_representation

Post by Schallfalke »

I found minimap_representation (and selected_minimap_representation) in Prototype/Car, so I tried to use that for my modded tanks. (Like how it is done on vanilla locomotives and Spidertron.) For example, I tried to apply a bigger triangle on my bigger tanks, and a smaller triangle on my smaller tanks.
Then I found the following undesired behaviours about this property:

1/ First of all, the vanilla car and tank seems not having this property defined at all. (In contrast, vanilla locomotive, wagons and Spidertron all have this property defined.) Even though this alone is not a problem, please see point 3.
2/ The "default" triangle used on vanilla car and tank seems not appearing in base/graphics nor core/graphics at all. (In contrast, vanilla locomotive, wagons and Spidertron all have their graphics.) Even though this alone is not a problem, please see point 3.
3/ With points 1 and 2 combined, I cannot adjust the scale of the default triangle on my tanks. (In contrast, it can be done on Spidertron as both the property and graphics are present.)
4/ The default triangle seems to be hardcoded drawn for Prototype/Car??? When I have minimap_representation set (see my following photos, the four tanks are using different "scale"), the default triangle is still drawn. The worst thing is that the triangle was drawn ON TOP my custom icon. So I cannot use my larger to cover the hard-coded triangle.
My custom icon
My custom icon
tank-map.png (385 Bytes) Viewed 3148 times
The default triangle on top...
The default triangle on top...
Tank Minimap.png (11.82 KiB) Viewed 3148 times
So, the below are what I expected:
1/ Vanilla car and tank will have minimap_representation defined. (Just like what were done on vanilla locomotive, wagons and Spidertron.)
2/ The triangle png appears in some subfolder of base/graphics or core/graphics for vanilla or any mods to make use of.
4/ The hardcoded triangle is not needed if 1 and 2 are done. OR, just draw the triangle if and only if minimap_representation is undefined, to preserve compatibility. (Since most vehicle mods have this property undefined.)
Rseding91
Factorio Staff
Factorio Staff
Posts: 14281
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.0.0] Prototype/Car::minimap_representation

Post by Rseding91 »

Fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”