Page 1 of 1

[2.0.76] Script error dropping item on belt in Transport belt madness scenario

Posted: Thu Mar 26, 2026 8:51 am
by OtlichnikTop
Error happens when item is on top of the belt when level starts.

Steps:
  1. Open transport belt madness scenario
  2. Place transport belt
  3. Drop an item on top of the belt
  4. Click "Start level" button
Logs:

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>
Demonstration: https://www.youtube.com/watch?v=ziQaRp-8FOw
Full Log: https://drive.google.com/file/d/1STGzKX ... sp=sharing