Loaders, another order makes another result

Bugs that are actually features.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Loaders, another order makes another result

Post by darkfrei »

Hi!

I have small setup:
2019-06-21T22_42_12-Window.png
2019-06-21T22_42_12-Window.png (93.13 KiB) Viewed 617 times
If I choose the loader and set this console command than I get expected result:

Code: Select all

/c game.player.selected.loader_type="output" game.player.selected.direction=4
2019-06-21T22_44_01-Window.png
2019-06-21T22_44_01-Window.png (98.54 KiB) Viewed 617 times

But here is another result by another order of this commands:

Code: Select all

/c game.player.selected.direction=4 game.player.selected.loader_type="output"
2019-06-21T22_43_13-Window.png
2019-06-21T22_43_13-Window.png (92.93 KiB) Viewed 617 times
Thy I need to be careful with the order of this commands?

Code: Select all

/c game.player.print (game.player.selected.direction .. ' ' .. game.player.selected.loader_type)
Rseding91
Factorio Staff
Factorio Staff
Posts: 16098
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Loaders, another order makes another result

Post by Rseding91 »

Thanks for the report. Setting the loader type on an entity swaps the direction so if you set the direction first then change the direction it's different than setting the direction and then changing the type.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”