Factorio-Access / FactorioAccess

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

belt refactoring probably broke having the cursor on the end of a belt #155

Closed ahicks92 closed 4 months ago

ahicks92 commented 4 months ago

traceback:

b'Error while running event FactorioAccess::cursor-up (ID 222)\r\n'
b"__FactorioAccess__/control.lua:337: attempt to index local 'next_belt' (a nil value)\r\n"
b'stack traceback:\r\n'
b"\t__FactorioAccess__/control.lua:337: in function 'ent_info'\r\n"
b"\t__FactorioAccess__/control.lua:1681: in function 'read_tile'\r\n"
b"\t__FactorioAccess__/control.lua:3594: in function 'cursor_mode_move'\r\n"
b"\t__FactorioAccess__/control.lua:3556: in function 'move_key'\r\n"
b'\t__FactorioAccess__/control.lua:3750: in function <__FactorioAccess__/control.lua:3749>\r\n'

To repro: in the attached save go east to the belts and then follow the one with engines north Happens 99% of the time when you hit the end of it. It's probably the belt refactor; i'm playing on next-update and 5 minutes ago I updated to get the scanner fix. main.zip

LevFendi commented 4 months ago

The crash has been solved.