Skip to content

Generator error related to unshuffled items #32

@fenhl

Description

@fenhl

Generating with settings string EACUQSKAWCBDDSW3BNNACWXD22A6ANAEAAASAADLEJAANDASHBSFNASMJECCBWASNQAERS2LAAJAGSGAAAAAASJAYBFTJCGAACEGUA4PHRQWASXEAAAS on on 8.3.41 Fenhl-2 results in the following error:

Cannot choose from an empty sequence
Traceback (most recent call last):
  File "C:\Users\fenhl\git\github.com\fenhl\OoT-Randomizer\stage\OoTRandomizer.py", line 57, in start
    main(settings)
    ~~~~^^^^^^^^^^
  File "C:\Users\fenhl\git\github.com\fenhl\OoT-Randomizer\stage\Main.py", line 46, in main
    spoiler = generate(world_settings)
  File "C:\Users\fenhl\git\github.com\fenhl\OoT-Randomizer\stage\Main.py", line 114, in generate
    worlds = build_world_graphs(world_settings)
  File "C:\Users\fenhl\git\github.com\fenhl\OoT-Randomizer\stage\Main.py", line 156, in build_world_graphs
    generate_itempool(world)
    ~~~~~~~~~~~~~~~~~^^^^^^^
  File "C:\Users\fenhl\git\github.com\fenhl\OoT-Randomizer\stage\ItemPool.py", line 475, in generate_itempool
    (pool, placed_items) = get_pool_core(world)
                           ~~~~~~~~~~~~~^^^^^^^
  File "C:\Users\fenhl\git\github.com\fenhl\OoT-Randomizer\stage\ItemPool.py", line 1090, in get_pool_core
    selected_item = random.choice(random_starting_items_pool)
  File "C:\Users\fenhl\scoop\apps\python\current\Lib\random.py", line 353, in choice
    raise IndexError('Cannot choose from an empty sequence')
IndexError: Cannot choose from an empty sequence

Haven't looked at it in detail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions