how to get rails direction

Place to get help with not working mods / modding interface.
drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

how to get rails direction

Post 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 2493 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?

kovarex
Factorio Staff
Factorio Staff
Posts: 8194
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: how to get rails direction

Post by kovarex »

Uhm ... that is (simple) error on the side of factorio, sorry for that.
Will be fixed in next version.

drs9999
Filter Inserter
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

Re: how to get rails direction

Post by drs9999 »

Thanks for the answer. I can not await it :D

Post Reply

Return to “Modding help”