Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Application to find specific seeds for Shattered Pixel Dungeon

Notifications You must be signed in to change notification settings

alessiomarotta/shpd-seed-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Warning

This repository is no longer mantained and has been discontinued.

At the time of writing, the following forks are the most active and maintained:

Please refer to these repositories for the latest updates and improvements.

Shattered Pixel Dungeon seed finder

Application to find seeds for Shattered Pixel Dungeon given constraints (e.g. wand of disintegration +2 and ring of evasion in the first 4 floors). It can also display items found on a specific seed.

How to use

Seed display mode

If no more than two arguments are provided, the items found in a given seed will be printed on the screen:

java -jar seed-finder.jar floors seed
  • floors: maximum depth to display
  • seed: dungeon seed to analyze

Finder mode

If al least 3 arguments are provided, the application will try to find a specific seed:

java -jar seed-finder.jar floors condition item_list [output_file]
  • floors: maximum depth to look for the items
  • condition: can be either any or all: the first will consider a seed valid if any of the specified items has been found, the second one requires all of the items to spawn instead
  • item_list: file name containing a list of items, one item per line
  • output_file: file name to save the item list for each seed, if unspecified it will be set to out.txt

The entries in the item list need to be in english, all lowercase and can optionally specify the enchantement and the upgrade level, so both projecting crossbow +3 and sword are valid item names.

The application will run until all the seeds have been tested by default (virtually indefinitely), so stop it using ctrl-C when you have found enough seeds for your needs.

Any valid seeds will be printed during the execution in the 9 letter code and numeric format.

How to build

  1. Clone the Shattered Pixel Dungeon repository.
git clone https://github.com/00-Evan/shattered-pixel-dungeon
  1. Download the patch into the local repository. If you use Windows open the URL below and save it.
wget "https://github.com/raw/alessiomarotta/shpd-seed-finder/master/changes.patch"
  1. Apply the patch to the repository.
cd shattered-pixel-dungeon
git apply ../changes.patch
  1. Compile the application with the following command:
./gradlew desktop:release