Page 1 of 1

how to get rails direction

Posted: Tue Jun 25, 2013 7:01 am
by drs9999
So atm I have to exclude the ability to copy rails from my blueprintsmod, because they are not copyied correctly. On the attached screenshot you can see that the rails are copied, but the texture is missing and the direction is messed up.
rail.png
rail.png (284.03 KiB) Viewed 2492 times
After some research I found that the problem was not in the entity-creation, but in the part where I save information of the entities that should be copied.
As a test I print out the created entity's direction in the onbuiltentity-event. This works fine/correct for everything except rails, they always return 8, it does not matter in which direction they are facing.

So my question is, is there a way or another keyword to get the correct rails-direction?

Re: how to get rails direction

Posted: Tue Jun 25, 2013 12:17 pm
by kovarex
Uhm ... that is (simple) error on the side of factorio, sorry for that.
Will be fixed in next version.

Re: how to get rails direction

Posted: Tue Jun 25, 2013 1:05 pm
by drs9999
Thanks for the answer. I can not await it :D