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.
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.)
[1.0.0] Prototype/Car::minimap_representation
-
- Fast Inserter
- Posts: 162
- Joined: Sun Oct 28, 2018 7:57 am
- Contact:
Re: [1.0.0] Prototype/Car::minimap_representation
Fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.