Skip to content

Generator crash attempting to work with placeholder goal name #30

@fenhl

Description

@fenhl

Repro case:

  • version: 8.2.67 Fenhl-1
  • settings string: EACS7S2AWCHGAZL62AEJLTDDSUKAEAAASAASNFASG8GA6EFS95UM23EWAJBAJAAJAESB2AP2DAWG3KX49A2AGUJXNBAAAAB6VHCCA8BAEGESHJH3BJCAEKGUBA
  • seed: 0ACXUAKAEJ

Raises exception:

'dict' object has no attribute 'replace'
Traceback (most recent call last):
  File "OoTRandomizer.py", line 57, in start
    main(settings)
    ~~~~^^^^^^^^^^
  File "C:\Users\fenhl\git\github.com\fenhl\OoT-Randomizer\stage\Main.py", line 58, in main
    patch_and_output(base_settings, spoiler, rom)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\fenhl\git\github.com\fenhl\OoT-Randomizer\stage\Main.py", line 450, in patch_and_output
    settings.distribution.update_spoiler(spoiler, True)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "C:\Users\fenhl\git\github.com\fenhl\OoT-Randomizer\stage\Plandomizer.py", line 1394, in update_spoiler
    goal_text = goal.hint_text.replace('#', '')
                ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'replace'

Seems to be caused by a path to Link's pocket being handled in Plandomizer.update_spoiler despite being empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions