raiguard / RecipeBook

Recipe Book for Factorio.
MIT License
19 stars 9 forks source link

Enemy forces causes non-recoverable error in lab world #131

Closed zevisert closed 1 year ago

zevisert commented 1 year ago

Describe the Bug

A non-recoverable error when loading a sandbox world.

To Reproduce

Steps to reproduce the behavior:

  1. Use the Factorio built-in world editor to create enemy forces.
  2. Save and exit the world.
  3. Attempt to load the world again.

Save file & Username

World username: 0xDECAFBAD

Space Exploration Lab.zip

Log file

Error while running event RecipeBook::on_load()
LuaForce API call when LuaForce was invalid.
stack traceback:
    [C]: in function '__index'
    __RecipeBook__/scripts/database.lua:143: in function 'check_force'
    __RecipeBook__/scripts/database.lua:152: in function 'check_forces'
    __RecipeBook__/control.lua:197: in function <__RecipeBook__/control.lua:191>