Factorio-Access / FactorioAccess

An accessibility mod for the video game Factorio, making the game accessible to the blind and visually impaired.
Other
24 stars 9 forks source link

underground belt auto-rotation sometimes gets stuck placing entrances #232

Open ahicks92 opened 2 months ago

ahicks92 commented 2 months ago

I have no idea how to repro yet. I also thought this already had an issue but I guess not.

We should probably rewrite it to just scan backward for an entrance in range or something like that so that it's not based on state at all.

LevFendi commented 2 months ago

The vanilla behavior is to place entrances unless it is lined up correctly to become an exit.

The vanilla game normally reports the direction facing away from the ground when placing an entrance.

The mod changes some of this behavior to make it more intuitive and it uses the kind of checks that you speak of. I would need to check the code to remember what it does in the latest iteration.

ahicks92 commented 2 months ago

Could have sworn it's a flipping boolean or something. Basically sometimes the mod decides to face them out rather than in, sometimes the mod decides to face them the right ways (as presented by the mod, not the game) but does so as both entrances. The only fix seems to be to put something else in hand, sometimes as far as placing and removing it. Very inconsistent and very odd behavior. If you don't look at it I will after scanner.