Page 1 of 1

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

Posted: Sun Mar 13, 2016 10:08 pm
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.

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

Posted: Mon Mar 14, 2016 9:51 am
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.