2017-05-23 16:14:12 +00:00
# ALttPEntranceRandomizer
2017-06-23 20:57:40 +00:00
This is a entrance randomizer for _The Legend of Zelda: A Link to the Past_ for the SNES.
2018-09-23 02:51:54 +00:00
See https://alttpr.com/ for more details on the normal randomizer.
2017-05-23 16:14:12 +00:00
2017-11-28 03:03:48 +00:00
# Installation
2017-05-23 16:14:12 +00:00
2017-07-14 17:45:20 +00:00
Clone this repository and then run ```EntranceRandomizer.py``` (requires Python 3).
Alternatively, run ```Gui.py``` for a simple graphical user interface.
For releases, a Windows standalone executable is available for users without Python 3.
2017-05-23 16:14:12 +00:00
2017-11-28 03:03:48 +00:00
# Settings
2017-05-23 16:14:12 +00:00
2017-11-28 03:03:48 +00:00
## Game Mode
2017-05-23 16:14:12 +00:00
2017-08-01 17:57:10 +00:00
### Standard
2017-06-23 20:57:40 +00:00
Fixes Hyrule Castle Secret Entrance and Front Door, but may lead to weird rain state issues if you exit through the Hyrule Castle side exits before rescuing Zelda in a full shuffle.
2017-05-23 16:14:12 +00:00
2017-08-01 17:57:10 +00:00
Gives lightcone in Hyrule Castle Sewers even without the Lamp.
2017-05-23 16:14:12 +00:00
### Open
2017-11-19 01:36:42 +00:00
This mode starts with the option to start in your house or the sanctuary, you are free to explore.
2017-05-23 16:14:12 +00:00
Special notes:
- Uncle already in sewers and most likely does not have a sword.
2017-06-23 20:57:40 +00:00
- Sewers do not get a free light cone.
2017-05-23 16:14:12 +00:00
- It may be a while before you find a sword, think of other ways to do damage to enemies. (bombs are a great tool, as well as picking up bushes in over world).
2017-08-01 17:57:10 +00:00
### Swordless
This mode removes all swords from the itempool. Otherwise just like open.
Special notes:
- The Medallions to open Misery Mire and Turtle Rock can be used without a sword if you stand on the symbol.
- The curtains in Skull Woods and Hyrule Castle Tower that normally require a sword to cut have been removed.
- Ganon takes damage from the Hammer.
- The magic barrier to Hyrule Castle Tower can be broken with a Hammer.
2017-11-12 00:37:58 +00:00
- The Hammer can be used to activate the Ether and Bombos tablets.
2017-08-01 17:57:10 +00:00
2019-07-27 13:13:13 +00:00
### Inverted
This mode is similar to Open but requires the Moon Pearl in order to not transform into a bunny in the Light World and the Sanctuary spawn point is moved to the Dark Sanctuary
Special Notes:
- Link's House is shuffled freely. The Dark Sanctuary is shuffled within West Dark World.
- There are a number of overworld changes to account for the inability to mirror from the Light World to the Dark World.
- Legacy shuffles are not implemente for this mode.
2017-11-28 03:03:48 +00:00
## Game Logic
This determines the Item Requirements for each location.
### No Glitches
The game can be completed without knowing how to perform glitches of any kind.
### Minor Glitches
2017-05-23 16:14:12 +00:00
2017-11-28 03:03:48 +00:00
May require Fake Flippers, Bunny Revival.
2017-05-23 16:14:12 +00:00
2018-03-25 22:21:36 +00:00
### No Logic
Items are placed without regard for progression or the seed being possible. Major glitches are likely required.
2017-11-28 03:03:48 +00:00
## Game Goal
### Ganon
2017-05-23 16:14:12 +00:00
2017-08-01 17:57:10 +00:00
Standard game completion requiring you to collect the 7 crystals, defeat Agahnim 2 and then beat Ganon.
2017-05-23 16:14:12 +00:00
2017-11-19 01:36:42 +00:00
### Pedestal
2017-05-23 16:14:12 +00:00
2017-06-23 20:57:40 +00:00
Places the Triforce at the Master Sword Pedestal. Ganon cannot be damaged.
2017-05-23 16:14:12 +00:00
2017-11-19 01:36:42 +00:00
### All Dungeons
2017-05-23 16:14:12 +00:00
2017-08-01 17:57:10 +00:00
Ganon cannot be damaged until all dungeons (including Hyrule Castle Tower and Ganons Tower) are cleared.
2017-06-23 20:57:40 +00:00
2017-08-01 17:57:10 +00:00
### Triforce Hunt
2017-06-23 20:57:40 +00:00
2017-11-12 00:37:58 +00:00
Triforce Pieces are added to the item pool, and some number of them being found will trigger game completion. Ganon cannot be damaged.
2018-02-08 10:55:10 +00:00
By default 30 Triforce Pieces are placed while 20 are needed to beat the game. Both values can be adjusted with the custom item pool feature.
2017-06-23 20:57:40 +00:00
2017-08-01 17:57:10 +00:00
### Crystals
Standard game completion requiring you to collect the 7 crystals and then beat Ganon.
2017-06-23 20:57:40 +00:00
2018-01-27 22:11:53 +00:00
This is only noticeably different if the the Ganon shuffle option is enabled.
2017-05-23 16:14:12 +00:00
2017-11-28 03:03:48 +00:00
## Game Difficulty
2017-05-23 16:14:12 +00:00
2017-11-28 03:03:48 +00:00
### Normal
2017-11-12 00:37:58 +00:00
This is the default setting that has an item pool most similar to the original
The Legend of Zelda: A Link to the Past.
### Hard
This setting reduces the availability of a variety of minor helpful items, most notably
limiting the player to two bottles, a Tempered Sword, and Blue Mail. Several minor game
mechanics are adjusted to increase difficulty, most notably weakening potions and preventing
the player from having fairies in bottles.
### Expert
This setting is a more extreme version of the Hard setting. Potions are further nerfed, the item
pool is less helpful, and the player can find no armor, only a Master Sword, and only a single bottle.
2017-11-28 03:03:48 +00:00
## Timer Setting
2017-11-12 00:37:58 +00:00
2017-11-28 03:03:48 +00:00
### None
2017-11-12 00:37:58 +00:00
Does not invoke a timer.
### Display
Displays a timer on-screen but does not alter the item pool.
This will prevent the dungeon item count feature in Easy and Keysanity from working.
### Timed
Displays a count-up timer on screen that can be reduced with Green Clocks and Blue Clocks or
increased with Red Clocks found in chests that will be added to the itempool.
### Timed-OHKO
Displays a countdown timer on screen that, when it hits zero, will put the player into a one hit
knockout state until more time is added to the clock via some of the Green Clocks that will be added
to the itempool.
2017-11-19 01:36:42 +00:00
### OHKO
2017-11-28 10:54:14 +00:00
The player will be in a one hit knockout state the entire game. This is the same as Timed-OHKO except
without the Clock items and the timer permanently at zero.
2017-11-19 01:36:42 +00:00
2017-11-12 00:37:58 +00:00
### Timed-countdown
Displays a countdown timer on screen that can be increased with Green Clocks and Blue Clocks or
2017-11-19 01:36:42 +00:00
decreased with Red Clocks found in chests that will be added to the itempool. The goal of this mode
2017-11-12 00:37:58 +00:00
is to finish the game without the timer reaching zero, but the game will continue uninterrupted if
the player runs out of time.
2017-11-28 03:03:48 +00:00
## Progressive equipment
2017-11-12 00:37:58 +00:00
2017-11-28 03:03:48 +00:00
Determines if Sword, Shield, and gloves are progressive (upgrading in sequence) or not.
2017-11-12 00:37:58 +00:00
### On (Default)
This setting makes swords, shields, armor, and gloves progressive. The first of any type of equipment found
by the player will be the lowest level item, and each subsequent find of a category will upgrade that type of
equipment.
### Off
This setting makes swords, shields, armor, and gloves non-progressive. All of the items of these types will be
randomly placed in chests, and the player could find them in any order and thus instantly receive high level equipment.
Downgrades are not possible; finding a lower level piece of equipment than what is already in the player's possession
will simply do nothing.
### Random
This setting makes swords, shields, armor, and gloves randomly either progressive or not. Each category is independently
randomized.
2017-11-28 03:03:48 +00:00
## Item Distribution Algorithm
2017-05-23 16:14:12 +00:00
2017-11-28 03:03:48 +00:00
Determines how the items are shuffled.
2017-05-23 16:14:12 +00:00
2017-11-28 03:03:48 +00:00
### Balanced
This is a variation of VT26 that aims to strike a balance between the overworld heavy VT25 and the dungeon heavy VT26 algorithm.
2017-11-11 21:28:34 +00:00
It does this by reshuffling the remaining locations after placing dungeon items.
2017-11-12 00:37:58 +00:00
### VT26
Items and locations are shuffled like in VT25, and dungeon items are now placed using the same algorithm. When Ganon is not
2017-11-11 21:28:34 +00:00
shuffled it includes a slight deliberate bias against having too many desireable items in Ganon's Tower to help counterbalance
the sheer number of chests in that single location.
2017-10-15 17:52:42 +00:00
2017-11-19 01:43:37 +00:00
### VT25
2017-06-23 20:57:40 +00:00
Items and locations are shuffled and placed from the top of the lists. The only thing preventing an item from being placed into a spot
is if is absolutely impossible to be there given the previous made placement choices. Leads to very uniform but guaranteed solvable distributions.
2017-05-23 16:14:12 +00:00
2017-11-28 03:03:48 +00:00
### VT22
The ordinary VT v8.22 algorithm. Fixes issues in placement in VT21 by discarding all previously skipped and unfilled locations
after 2/3 of the progression items were placed to prevent stale late game locations from soaking up the same items all the time.
2017-06-23 20:57:40 +00:00
### VT21
The ordinary VT v8.21 algorithm. Unbiased placement of items into unlocked locations, placing items that unlock new locations first.
May lead to distributions that seem a bit wonky (high likelyhood of ice rod in Turtle Rock, for instance)
### Flood
Pushes out items starting from Link's House and is slightly biased to placing progression items with less restrictions. Use for relatively simple distributions.
### Freshness
Alternative approach to VT22 to improve on VT21 flaws. Locations that are skipped because they are currently unreachable increase in
staleness, decreasing the likelihood of receiving a progress item.
2017-05-23 16:14:12 +00:00
2017-11-28 03:03:48 +00:00
## Entrance Shuffle Algorithm
2017-05-23 16:14:12 +00:00
2018-02-28 02:30:07 +00:00
Determines how locations are shuffled. In all modes other than Insanity and the similar legacy versions, holes shuffle as a pair with the connecting cave and the front
two sections of Skull Woods remain confined to the general Skull Woods area. Link's house is never shuffled as a design decision.
2017-05-23 16:14:12 +00:00
2018-02-28 02:30:07 +00:00
### Vanilla
2017-05-23 16:14:12 +00:00
2018-02-28 02:30:07 +00:00
Places entrances in the same locations they were in the original The Legend of Zelda: A Link to the Past.
2017-05-28 14:02:03 +00:00
### Simple
2018-02-28 02:30:07 +00:00
Shuffles dungeon entrances between each other and keeps all 4-entrance dungeons confined to one location such that dungeons will one to one swap with each other.
Other than on Light World Death Mountain, interiors are shuffled but still connect the same points on the overworld. On Death Mountain, entrances are connected more freely.
2017-05-23 16:14:12 +00:00
2018-02-20 20:34:39 +00:00
### Restricted
2018-02-28 02:30:07 +00:00
Uses dungeon shuffling from Simple but freely connects remaining entrances. Caves and dungeons with multiple entrances will be confined to one world.
2018-02-20 20:34:39 +00:00
2017-11-28 03:03:48 +00:00
### Full
2017-05-23 16:14:12 +00:00
2018-02-08 10:55:10 +00:00
Mixes cave and dungeon entrances freely. Caves and dungeons with multiple entrances will be confined to one world.
2018-02-20 20:34:39 +00:00
### Crossed
2018-02-08 10:55:10 +00:00
Mixes cave and dungeon entrances freely, but now connector caves and dungeons can link Light World and Dark World.
2018-02-20 20:34:39 +00:00
### Insanity
2017-05-23 16:14:12 +00:00
2018-02-20 20:34:39 +00:00
Decouples entrances and exits from each other and shuffles them freely. Caves that were single entrance in vanilla still can only exit to the same location from which they were entered.
2017-05-23 16:14:12 +00:00
2018-02-20 20:34:39 +00:00
### Legacy Variants
2017-05-28 14:02:03 +00:00
2018-02-20 20:34:39 +00:00
Similar to the base shuffles, but the distinction between single entrance and multi-entrance caves from older versions of the randomizer is maintained.
Madness_Legacy is the more similar to the modern Insanity. Insanity_Legacy has fake worlds and guaranteed Moon Pearl and Magic Mirror for a very different experience.
2017-05-28 14:02:03 +00:00
### Dungeon Variants
2017-05-23 16:14:12 +00:00
2017-05-28 14:02:03 +00:00
The dungeon variants only mix up dungeons and keep the rest of the overworld vanilla.
2017-05-23 16:14:12 +00:00
2017-11-28 03:03:48 +00:00
## Heartbeep Sound Rate
Select frequency of beeps when on low health. Can completely disable them.
2018-02-28 02:30:07 +00:00
## Heart Color
Select the color of Link's hearts.
2018-01-05 22:53:29 +00:00
## Menu Speed
A setting that lets the player set the rate at which the menu opens and closes.
2017-11-28 03:03:48 +00:00
## Create Spoiler Log
Output a Spoiler File.
## Do not Create Patched Rom
If set, will not produce a patched rom as output. Useful in conjunction with the spoiler log option to batch
generate spoilers for statistical analysis.
## Enable L/R button quickswapping
2018-03-25 22:21:36 +00:00
Use to enable quick item swap with L/R buttons. Press L and R together to switch the state of items like the Mushroom/Powder pair.
2017-11-28 03:03:48 +00:00
## Keysanity
This setting allows dungeon specific items (Small Key, Big Key, Map, Compass) to be distributed anywhere in the world and not just
in their native dungeon. Small Keys dropped by enemies or found in pots are not affected. The chest in southeast Skull Woods that
is traditionally a guaranteed Small Key still is. These items will be distributed according to the v26/balanced algorithm, but
the rest of the itempool will respect the algorithm setting. Music for dungeons is randomized so it cannot be used as a tell
for which dungeons contain pendants and crystals; finding a Map for a dungeon will allow the overworld map to display its prize.
2018-03-25 22:21:36 +00:00
## Retro
This setting turns all Small Keys into universal Small Keys that can be used in any dungeon and are distributed across the world.
The Bow now consumed rupees to shoot; the cost is 10 rupees per Wood Arrow and 50 per Silver Arrow. Shooting Wood Arrows requires
the purchase of an arrow item from shops, and to account for this and the dynamic use of keys, both Wood Arrows and Small Keys will
be added to several shops around the world. Four "take any" caves are added that allow the player to choose between an extra Heart
Container and a Bottle being filled with Blue Potion, and one of the four swords from the item pool is placed into a special cave as
well. The five caves that are removed for these will be randomly selected single entrance caves that did not contain any items or any shops.
In further concert with the Bow changes, all arrows under pots, in chests, and elsewhere in the seed will be replaced with rupees.
2017-11-28 03:03:48 +00:00
## Place Dungeon Items
If not set, Compasses and Maps are removed from the dungeon item pools and replaced by empty chests that may end up anywhere in the world.
This may lead to different amount of itempool items being placed in a dungeon than you are used to.
## Include Ganon's Tower and Pyramid Hole in Shuffle pool
2018-02-08 10:55:10 +00:00
If set, Ganon's Tower is included in the dungeon shuffle pool and the Pyramid Hole/Exit pair is included in the Holes shuffle pool. Ganon can not be defeated until the primary goal is fulfilled.
This setting removes any bias against Ganon's Tower that some algorithms may have.
2019-04-30 15:48:47 +00:00
## Include Helpful Hints
If set, the 15 telepathic tiles and 5 storytellers scattered about Hyrule will give helpful hints about various items and entrances. An exact breakdown of the hint
distribution is provided as an included text file.
2018-02-28 02:30:07 +00:00
## Use Custom Item Pool
2018-02-08 10:55:10 +00:00
If set, the item pool normally associated with your difficulty setting is replaced by the item pool specified in the custom tab. This feature is only supported when the randomizer is run
via the GUI; attempting to set this via the command line does nothing.
2017-11-28 03:03:48 +00:00
## Seed
Can be used to set a seed number to generate. Using the same seed with same settings on the same version of the entrance randomizer will always yield an identical output.
## Count
Use to batch generate multiple seeds with same settings. If a seed number is provided, it will be used for the first seed, then used to derive the next seed (i.e. generating 10 seeds with the same seed number given will produce the same 10 (different) roms each time).
# Command Line Options
```
-h, --help
```
Show the help message and exit.
```
--create_spoiler
```
Output a Spoiler File (default: False)
```
2018-03-25 22:21:36 +00:00
--logic [{noglitches,minorglitches,nologic}]
2017-11-28 03:03:48 +00:00
```
Select the game logic (default: noglitches)
```
2019-07-27 13:13:13 +00:00
--mode [{standard,open,swordless,inverted}]
2017-11-28 03:03:48 +00:00
```
Select the game mode. (default: open)
```
--goal [{ganon,pedestal,dungeons,triforcehunt,crystals}]
```
Select the game completion goal. (default: ganon)
```
2019-08-04 16:32:35 +00:00
--difficulty [{normal,hard,expert}]
2017-11-28 03:03:48 +00:00
```
Select the game difficulty. Affects available itempool. (default: normal)
```
--timer [{none,display,timed,timed-ohko,ohko,timed-countdown}]
```
Select the timer setting. (default: none)
```
--progressive [{on,off,random}]
```
Select the setting for progressive equipment. (default: on)
```
--algorithm [{freshness,flood,vt21,vt22,vt25,vt26,balanced}]
```
Select item distribution algorithm. (default: balanced)
```
2018-03-25 22:21:36 +00:00
--shuffle [{default,simple,restricted,full,crossed,insanity,restricted_legacy,full_legacy,madness_legacy,insanity_legacy,dungeonsfull,dungeonssimple}]
2017-11-28 03:03:48 +00:00
```
Select entrance shuffle algorithm. (default: full)
2017-05-23 16:14:12 +00:00
```
2017-05-28 14:02:03 +00:00
--rom ROM
2017-05-23 16:14:12 +00:00
```
2017-06-23 20:57:40 +00:00
Path to a Japanese 1.0 A Link to the Past Rom. (default: Zelda no Densetsu - Kamigami no Triforce (Japan).sfc)
2017-05-23 16:14:12 +00:00
```
--loglevel [{error,info,warning,debug}]
```
Select level of logging for output. (default: info)
```
--seed SEED
```
2017-11-28 03:03:48 +00:00
Define seed number to generate. (default: None)
2017-05-23 16:14:12 +00:00
```
--count COUNT
```
2017-11-28 03:03:48 +00:00
Set the count option (default: None)
2017-05-28 14:02:03 +00:00
```
--quickswap
```
Use to enable quick item swap with L/R buttons. (default: False)
2017-10-14 16:00:41 +00:00
```
2018-01-05 22:53:29 +00:00
--fastmenu [{normal,instant,double,triple,quadruple,half}]
2017-10-14 16:00:41 +00:00
```
2018-01-05 22:53:29 +00:00
Alters the rate at which the menu opens and closes. (default: normal)
2017-10-14 16:00:41 +00:00
2017-11-28 10:54:14 +00:00
```
--disablemusic
```
Disables game music, resulting in the game sound being just the SFX. (default: False)
2017-11-12 00:37:58 +00:00
```
--keysanity
```
2017-11-28 03:03:48 +00:00
Enable Keysanity (default: False)
2017-11-12 00:37:58 +00:00
2018-03-25 22:21:36 +00:00
```
--retro
```
Enable Retro mode (default: False)
2017-05-28 14:02:03 +00:00
```
--nodungeonitems
```
2017-11-12 00:37:58 +00:00
If set, Compasses and Maps are removed from the dungeon item pools and replaced by empty chests that may end up anywhere in the world.
This may lead to different amount of itempool items being placed in a dungeon than you are used to. (default: False)
2017-05-28 14:02:03 +00:00
```
--heartbeep [{normal,half,quarter,off}]
```
Select frequency of beeps when on low health. (default: normal)
2018-03-25 22:21:36 +00:00
```
2019-04-30 15:48:47 +00:00
--heartcolor [{red,blue,green,yellow,random}]
2018-03-25 22:21:36 +00:00
```
Select the color of Link\'s heart meter. (default: red)
2017-05-28 14:02:03 +00:00
```
--sprite SPRITE
```
Use to select a different sprite sheet to use for Link. Path to a binary file of length 0x7000 containing the sprite data stored at address 0x80000 in the rom. (default: None)
2017-06-23 20:57:40 +00:00
```
2019-08-04 21:40:13 +00:00
--accessibility [{items,locations,none}]
2017-06-23 20:57:40 +00:00
```
2019-08-04 21:40:13 +00:00
Sets the item/location accessibility rules. (default: items)
2017-06-23 20:57:40 +00:00
2019-04-30 15:48:47 +00:00
```
--hints
```
Enables helpful hints from storytellers and telepathic tiles (default: False)
2017-07-17 20:28:29 +00:00
```
2018-01-27 22:11:53 +00:00
--no-shuffleganon
2017-07-17 20:28:29 +00:00
```
2018-01-27 22:11:53 +00:00
Disables the "Include Ganon's Tower and Pyramid Hole in Shuffle pool" option. (default: Enabled)
2017-07-17 20:28:29 +00:00
2017-06-23 20:57:40 +00:00
```
--suppress_rom
```
2017-11-28 03:03:48 +00:00
Enables the "Do not Create Patched Rom" option. (default: False)
2017-07-14 17:45:20 +00:00
```
--gui
```
Open the graphical user interface. Preloads selections with set command line parameters.