Page 1 of 1

Map Pin API?

Posted: Fri Aug 24, 2018 5:37 pm
by credomane
Perhaps I'm just missing it but is there an API for accessing the Map pins? The feature originally came with 0.15 but I don't know if it was every exposed to the LUA API as I can't seem to find it anywhere in the API docs.

I'm aware of the LuaPlayer alert api but that is per player only. I would assume the Map Pin API would, logically to me, belong under LuaForce since when a player creates a pin it is visible to all players on that force.

If this API doesn't exist can I get this post moved to the API request forum?

Justification for this API:
  1. Mods could export all of the pins for usage in external [screenshot generated] maps. FactorioMaps.com operators would love this, I'm sure, and so would my, currently neglected, FactorioMaps mod.
  2. Player created Scenarios and the 0.17 NPE campaign could make use of this as quest location or other important markers.

Re: Map Pin API?

Posted: Fri Aug 24, 2018 6:04 pm
by Bilka

Re: Map Pin API?

Posted: Wed Aug 29, 2018 2:04 pm
by credomane
I forgot about this post over the weekend. Oops.
Bilka wrote:They are called chart tags
Thanks! I tried every word I could think of trying to search the entire documentation for these. Neither chart nor tags even came to mind as a possibility.

Quick question.
Note: The chunk must be charted for a tag to be valid at that location.
Would it be possible to remove this limitation? Would be nice to throw up a distant marker without having to chart the chunk before hand. Sure you can chart that one particular chunk then throw up the marker, I suppose.