[2.0.76] Script error dropping item on belt in Transport belt madness scenario
Posted: Thu Mar 26, 2026 8:51 am
Error happens when item is on top of the belt when level starts.
Steps:
Demonstration: https://www.youtube.com/watch?v=ziQaRp-8FOw
Full Log: https://drive.google.com/file/d/1STGzKX ... sp=sharing
Steps:
- Open transport belt madness scenario
- Place transport belt
- Drop an item on top of the belt
- Click "Start level" button
Code: Select all
Error while running event level::on_gui_click (ID 1)
__core__/lualib/story.lua:534: attempt to perform arithmetic on local 'count' (a table value)
stack traceback:
__core__/lualib/story.lua:534: in function 'recreate_entities'
__level__/transportbeltmadness.lua:224: in function 'map_save'
__level__/transportbeltmadness.lua:160: in function 'transport_belt_madness_start_level'
__level__/transportbeltmadness.lua:348: in function 'action'
__core__/lualib/story.lua:114: in function 'story_update'
__level__/control.lua:134: in function <__level__/control.lua:133>
Full Log: https://drive.google.com/file/d/1STGzKX ... sp=sharing