Flag to hide car "triangle" on the map for custom prototypes

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Flag to hide car "triangle" on the map for custom prototypes

Post by eradicator »

What?
The ability to specify that a custom type = "car" prototype never renders an icon on the (mini-) map.
Why?
Cars are often abused ... repurposed by mods for varius things. The old nixies tubes and the Helicopters mod are just two examples of existing mods. So it would be pretty nice if it was possible to hide the little triangle that is shown on the map for car entities that are not actually cars in the... traditional sense.
cararrow.png
cararrow.png (554 Bytes) Viewed 1817 times
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5341
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Flag to hide car "triangle" on the map for custom prototypes

Post by Klonan »

You could just set the force of the other car to 'neutral', that way it won't show on the map
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Flag to hide car "triangle" on the map for custom prototypes

Post by darkfrei »

Why not just easy_entity_with_rotation and easy_entity_with_direction?
Not on the map, needs no action, script only.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14912
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Flag to hide car "triangle" on the map for custom prototypes

Post by Rseding91 »

In 0.16 simple entity has a graphics variation you can get/set through the API so it would be able to do what you're trying to do here.
If you want to get ahold of me I'm almost always on Discord.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Flag to hide car "triangle" on the map for custom prototypes

Post by eradicator »

Rseding91 wrote:In 0.16 simple entity has a graphics variation you can get/set through the API so it would be able to do what you're trying to do here.
For the graphical variation this might be a working solution (though i kinda doubt the guy who made Helicopters is going to migrate to a different entity). For my personal modding "needs" i'm more interested in the inventory of the car prototype along with it's unique property to be movable. I'm not sure about @Klonan's solution either as i don't know how i.e. inserters interact with entities that belong to a different force - intuitively i'd guess they don't interact at all...
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
User avatar
kumpu
Fast Inserter
Fast Inserter
Posts: 111
Joined: Wed Jun 07, 2017 10:10 am
Contact:

Re: Flag to hide car "triangle" on the map for custom prototypes

Post by kumpu »

Rseding91 wrote:In 0.16 simple entity has a graphics variation you can get/set through the API so it would be able to do what you're trying to do here.
Can we rely on this to be supported in future versions?
Post Reply

Return to “Implemented mod requests”