Skip to content

Commit e456eaf

Browse files
committed
Run from any directory, use filters as a CLI option
1 parent 1b4ca47 commit e456eaf

26 files changed

+81
-37
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"time.h": "c"
4+
}
5+
}

docs/getting_started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ Open the Immolate CLI in the directory you extracted Immolate to.
77
To check that Immolate works, run the command `immolate -h`. You should see a help dialog that lists all of the command-line arguments to pass into the searcher.
88

99
## Running an existing filter
10-
To run an existing filter, open the file `search.cl`. The first line will look something like `#include "filters/red_poly_glass.cl"`. Replace the text in quotes with the path to a file that contains a filter.
10+
To run an existing filter, type the name of the filter after the `-f` option, e.g. `immolate -f double_legendary`.
1111

1212
To run the executable, there are a few command line arguments that may be important.
13+
- `-f`: Sets the filter used by the search.
1314
- `-s`: Sets the starting seed of the search.
1415
- `-n`: Sets the number of seeds of the search.
1516
- `-c`: Sets the score the filter needs to return for a seed to be printed. Useful when searching for streaks or seeds that must meet a variety of conditions.

filters/bad_seeds.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Seeds with very little rare / uncommon jokers in first 4 ante
2-
#include "./lib/immolate.cl"
2+
#include "lib/immolate.cl"
33

44
int find_non_common_jokers(instance* inst, rsrc jokerSource, int ante, int amountToCheck) {
55
int totalNonCommonJokers = 0;

filters/buggy_erratic.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Searches for seeds with glitched erratic decks
2-
#include "./lib/immolate.cl"
2+
#include "lib/immolate.cl"
33
long filter(instance* inst) {
44
double node = get_node_child(inst, (__private ntype[]){N_Type}, (__private int[]){R_Erratic}, 1);
55
if (node >= 0 && node <= 1) return 0;

filters/buggy_seeds.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Searches for glitched seeds
2-
#include "./lib/immolate.cl"
2+
#include "lib/immolate.cl"
33
long filter(instance* inst) {
44
double node = inst->hashedSeed;
55
if (node >= 0 && node <= 1) return 0;

filters/double_legendary.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Searches for a first shop with two packs that give legendary jokers
2-
#include "./lib/immolate.cl"
2+
#include "lib/immolate.cl"
33
long filter(instance* inst) {
44
int score = 0;
55
for (int packIndex = 1; packIndex <= 2; packIndex++) {

filters/emperor_fool.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Emperor-Fool Chains
2-
#include "./lib/immolate.cl"
2+
#include "lib/immolate.cl"
33

44
long filter(instance* inst) {
55
int bestAnte = 0;

filters/erratic_flush_five.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Searches for an Erratic Deck seed with lots of an exact card
2-
#include "./lib/immolate.cl"
2+
#include "lib/immolate.cl"
33
long filter(instance* inst) {
44
set_deck(inst, Erratic_Deck);
55
int scores[52];

filters/erratic_ranks.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Searches for an Erratic Deck seed with lots of a rank
2-
#include "./lib/immolate.cl"
2+
#include "lib/immolate.cl"
33
long filter(instance* inst) {
44
set_deck(inst, Erratic_Deck);
55
int16 scores;

filters/erratic_suits.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Searches for an Erratic Deck seed with lots of a type of suit
2-
#include "./lib/immolate.cl"
2+
#include "lib/immolate.cl"
33
long filter(instance* inst) {
44
set_deck(inst, Erratic_Deck);
55
int4 scores;

0 commit comments

Comments
 (0)