3snowp7im / SotN-Randomizer

Randomizer for Castlevania: SotN
https://sotn.io
Do What The F*ck You Want To Public License
89 stars 37 forks source link

Error in randomizing seed locally with "--opt r" selected. #60

Closed the-sky-may-be closed 3 years ago

the-sky-may-be commented 3 years ago

New issues must complete all sections of this template or they will be automatically closed.

Use this template if your bug does not relate to a seed being completable due to relic placement.

Seed URL

1616481470263 (Locally generated)

Randomizer version:

3.4.7

Operating system and version:

Windows 10 Home, Version 2004

Browser and version:

Generated locally. NA.

Emulator and version:

Mednafen 1.26.1

Bug description

Bug occurs when the randomizer is run with relic randomization called via the --opt switch.

The error returned is:

TypeError: Cannot use 'in' operator to search for 'leakPrevention' in true at Object.writeRelics (C:\Users\Laptop\Desktop\SotN-Randomizer-3.4.7\src\randomize_relics.js:1372:28) at randomize (C:\Users\Laptop\Desktop\SotN-Randomizer-3.4.7\randomize:955:34)

Reproduced in 3.4.0, 3.4.6, and 3.4.7. All three versions throw this error. 2.x.x does not.

How to reproduce:

Any call of --opt r will result in the error (ex: --opt dibrs or --opt drm will both also throw the error)

3snowp7im commented 3 years ago

This is fixed in 3.4.8