Page 1 of 1

Does orientation work on chart tags?

Posted: Wed Oct 10, 2018 12:56 pm
by DutchTed
Has anybody been able to get a chart tag to draw in anything other than left-to-right direction? I can't get the orientation part to work for the life of me. I've tried expressing it in radians as well as whole numbers and decimals.

Attempting to create a chart tag at a 45 degree angle

Code: Select all

/c game.player.force.add_chart_tag(game.player.surface, { position = game.player.position, 
                                                          text = "This is a chart tag", 
                                                          orientation = (2 * math.pi * (45/360)) 
                                                        }
Documentation: https://lua-api.factorio.com/0.15.0/Lua ... rtTag.html

Any ideas guys or should I raise this in the bugs forum?

~DutchTed

Re: Does orientation work on chart tags?

Posted: Wed Oct 10, 2018 2:31 pm
by Bilka
This is a fun one :) I investigated, and not only does it read "laser_user" instead of "last_user" (just a typo), but it also doesn't care about the orientation when rendering the tag. I have moved this to bug reports.

Re: Does orientation work on chart tags?

Posted: Wed Oct 10, 2018 7:20 pm
by Rseding91
Thanks for the report. I've fixed the typo. "orientation" is only used for vehicle chart tags to render the triangle at a specific orientation.