Page 1 of 1

[Rseding91] [0.17.58]LuaEntityPrototype.collision_box returns 0 size area for rails

Posted: Fri Jul 19, 2019 12:45 pm
by Choumiko
collision_box doesn't return the expected result when used with straight or curved rails.

To reproduce:

Code: Select all

/c game.print(serpent.line(game.entity_prototypes["straight-rail"].collision_box))
Expected: Actual collision box ;)

Re: [0.17.58]LuaEntityPrototype.collision_box returns 0 size area for rails

Posted: Fri Jul 19, 2019 12:50 pm
by Bilka

Re: [0.17.58]LuaEntityPrototype.collision_box returns 0 size area for rails

Posted: Fri Jul 19, 2019 12:52 pm
by Rseding91
Bilka wrote: Fri Jul 19, 2019 12:50 pm Just hardcode it :p https://wiki.factorio.com/Prototype/Rai ... ory_values
Right up until it changes again then every mod would be wrong :P I'll just fix it in the game.

Re: [Rseding91] [0.17.58]LuaEntityPrototype.collision_box returns 0 size area for rails

Posted: Fri Jul 19, 2019 1:00 pm
by Rseding91
Thanks for the report. It's now fixed for the next version of 0.17.