Not 100% sure where the fault lies with these errors. One of them thinks it's here with this mod.
Two separate cases, both in use of Magic Wand. First case is in conjunction with Rampant mod, when using the wand to add/change tile types (other than ore), it will cause the below error.
87.737 Error MainLoop.cpp:1013: Exception at tick 965: Error while running event creative-mode-fix::on_player_selected_area (ID 49)
Error while running event Rampant::on_player_built_tile (ID 45)
Rampant/control.lua:411: attempt to index field 'robot' (a nil value)
stack traceback:
creative-mode-fix/scripts/util.lua:159: in function 'raise_event'
creative-mode-fix/scripts/magic-wand-creator.lua:413: in function 'create_tiles_or_resources_in_pattern'
creative-mode-fix/scripts/magic-wand-creator.lua:470: in function 'on_player_selected_area'
creative-mode-fix/scripts/events.lua:433: in function '?'
creative-mode-fix/scripts/events.lua:1113: in function <creative-mode-fix/scripts/events.lua:1048
Second case is in conjunction with this mod, Dectorio, and Bot Servicing. When using the wand to remove ore tiles, the below error is thrown. Disabling either Bot Servicing or Dectorio will solve the problem.
111.908 Error MainLoop.cpp:1013: Exception at tick 520: Error while running event creative-mode-fix::on_player_alt_selected_area (ID 50)
Error while running event Bot_Servicing::on_robot_pre_mined (ID 15)
Bot_Servicing/control.lua:59: attempt to index field 'surface' (a nil value)
stack traceback:
creative-mode-fix/scripts/util.lua:159: in function 'raise_event'
creative-mode-fix/scripts/util.lua:289: in function 'destroy_entity_and_raise_event'
creative-mode-fix/scripts/magic-wand-creator.lua:515: in function 'on_player_alt_selected_area'
creative-mode-fix/scripts/events.lua:455: in function '?'
creative-mode-fix/scripts/events.lua:1113: in function <creative-mode-fix/scripts/events.lua:1048