Roman971 / OoT-Randomizer

A randomizer for Ocarina of Time.
Other
96 stars 21 forks source link

Randomized Button Colors: "Random Choice" causes seed generation to fail #6

Closed aplumafreak500 closed 4 years ago

aplumafreak500 commented 4 years ago
Traceback (most recent call last):
  File "OoTRandomizer.py", line 72, in start
    main(settings)
  File "/host-rootfs/storage/emulated/0/Android/data/tech.ula/files/OoT-Randomizer/Main.py", line 96, in main
    return patch_and_output(settings, window, spoiler, rom, start)
  File "/host-rootfs/storage/emulated/0/Android/data/tech.ula/files/OoT-Randomizer/Main.py", line 232, in patch_and_output
    cosmetics_log = patch_cosmetics(settings, rom)
  File "/host-rootfs/storage/emulated/0/Android/data/tech.ula/files/OoT-Randomizer/Cosmetics.py", line 756, in patch_cosmetics
    patch_func(rom, settings, log, cosmetic_context_symbols)
  File "/host-rootfs/storage/emulated/0/Android/data/tech.ula/files/OoT-Randomizer/Cosmetics.py", line 550, in patch_button_colors
    button_option = random.choice(button_colors.keys())
  File "/usr/lib/python3.7/random.py", line 262, in choice
    return seq[i]
TypeError: 'dict_keys' object is not subscriptable