Align buildings

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Linver
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 09, 2019 2:28 pm
Contact:

Align buildings

Post by Linver »

Hi to all,
I discover that rails prototype have a boolean value called building_grid_bit_shift settet to true.
Is possible use it on other entities that isn't rails?
Thank to all for answers.

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

Re: Align buildings

Post by Bilka »

There is no such boolean value in that Lua files that I can find. https://lua-api.factorio.com/latest/Lua ... _bit_shift is readable runtime, but the value that it returns is simply hardcoded and it's a uint.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

PyroFire
Filter Inserter
Filter Inserter
Posts: 356
Joined: Tue Mar 08, 2016 8:18 am
Contact:

Re: Align buildings

Post by PyroFire »

Bilka wrote:
Wed Nov 20, 2019 10:11 am
There is no such boolean value in that Lua files that I can find. https://lua-api.factorio.com/latest/Lua ... _bit_shift is readable runtime, but the value that it returns is simply hardcoded and it's a uint.
The idea is to align other entities e.g. assemblers, inserters etc to the rail grid.

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

Re: Align buildings

Post by Bilka »

As I said, the value Linver talks about is hardcoded.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
Linver
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 09, 2019 2:28 pm
Contact:

Re: Align buildings

Post by Linver »

I got it, thank u again Bilka

Post Reply

Return to “Modding help”