Skip to content

Crash when copying beacon setup between factories #756

@DerFailer36

Description

@DerFailer36

Problem Description

Hello,
I just had this crash when copying beacon setup from one factory to another:

Error MainLoop.cpp:1468: Exception at tick 48319390: The mod Factory Planner (2.0.50) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event factoryplanner::on_gui_click (ID 1)

__factoryplanner__/backend/data/ModuleSet.lua:295: bad argument #2 of 3 to 'min' (number expected, got nil)
stack traceback:
	[C]: in function 'min'
	__factoryplanner__/backend/data/ModuleSet.lua:295: in function <__factoryplanner__/backend/data/ModuleSet.lua:288>
	(...tail calls...)
	__factoryplanner__/util/clipboard.lua:52: in function 'paste'
	__factoryplanner__/ui/main/production_handler.lua:191: in function 'handler'
	__factoryplanner__/ui/event_handler.lua:173: in function <__factoryplanner__/ui/event_handler.lua:121>

While my game is heavily modded those where just the vanilla beacons and modules, with base and modded recipes.

Reproduction

I've spend over 10 minutes in trying to remember and recreating the exact situation, but i was unable to recreate the crash.
I was experimenting with different module setup for beacons (pure speeds/mixed speed and efficiency/etc.) and copied over, i think a pure speed beacon, from one factory to another and when i pasted the beacon the crash occurred.

Welp the moment i try to recreate it, to do so by accident.
I copied the modules into the beacon slot.

Use shift-right click to copy any module and shift-left click to past them as a beacon.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions