[0.12.26]Cannot edit selection_box of "straight-rail" entity

Bugs that are actually features.
Supercheese
Filter Inserter
Filter Inserter
Posts: 841
Joined: Mon Sep 14, 2015 7:40 am
Contact:

[0.12.26]Cannot edit selection_box of "straight-rail" entity

Post by Supercheese »

Mods can edit all other properties of "straight-rail"-type entities just fine, but edits to the selection_box seem to have no effect. A very simple mod:

Code: Select all

data.raw["straight-rail"]["straight-rail"].selection_box = {{-0.2, -0.2}, {0.2, 0.2}}
Does not have the desired effect at all; the selection box remains the same.

Performing a very similar edit to the collision box:

Code: Select all

data.raw["straight-rail"]["straight-rail"].collision_box = {{-0.7, -0.99}, {0.7, 0.99}}
Works just as expected, though. It seems only the selection_box is bugged.
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.12.26]Cannot edit selection_box of "straight-rail" entity

Post by kovarex »

Well, the collision box of rails are kind of custom, and shouldn't be played with as it can break a lot of stuff.
Post Reply

Return to “Not a bug”