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

This subforum contains all the issues which we already resolved.
Post Reply
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

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

Post 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 ;)

Bilka
Factorio Staff
Factorio Staff
Posts: 2853
Joined: Sat Aug 13, 2016 9:20 am
Contact:

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

Post by Bilka »

I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

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

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.

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

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

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”