[0.17.59] clone_entities() and clone() can clone rails off the rail grid

Bugs that are actually features.
Post Reply
mulark
Long Handed Inserter
Long Handed Inserter
Posts: 54
Joined: Wed Oct 18, 2017 11:32 pm
Contact:

[0.17.59] clone_entities() and clone() can clone rails off the rail grid

Post by mulark »

Code: Select all

/c game.player.surface.clone_entities({entities={game.player.selected}, destination_offset={0,-1}})
If you run such a command hovering on a rail piece, the rail will be cloned to the midpoint of two rail grids. You cannot use create_entity() or teleport() in the same way.

Editor's clone doesn't have the same issue.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13225
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.59] clone_entities() and clone() can clone rails off the rail grid

Post by Rseding91 »

Thanks for the report. The editor clone does allow that - you just have to un-check the "snap to grid" setting. There's nothing that disallows placing rails off-grid that makes this an error. If you don't want them off-grid then you'd just not give it offsets that are off grid.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Not a bug”