Skip to content

Conversation

albertjsung
Copy link
Contributor

@albertjsung albertjsung commented Aug 17, 2025

Summary

seedInList allows users to filter for items that satisfy a list of paint seeds they are looking for. This is particularly useful for people who are looking for tier1/tier2/tier3 patterns, which each have 30+ paint seeds and can be quite tedious to search for.

E.g. seed == 301 or seed == 625 or ... or seed == 540 gets annoying pretty quick and most people do manual cmd/crtl + f searches or use a custom script.

Examples:
t1_bayonet_gamma_doppler_p1
snow_leopard_t1

Implementation Details + Demo (ran dev build in chrome)

Most pattern guides for CS2 are made by korenevskiy, and those that aren't mostly follow his formatting.

I've classified the two most common ways guides list the pattern seeds:

  1. seed1 seed2 ... seed10
  2. seed1, seed2, ..., seed10

The implementation will allow us to directly copy and paste the numbers from the images above and pass it into our new method.

Example One (most common case, seeds separated by seeds):
demo

Example Two (with commas this time):
demo2

Future Work

Once approved, will need to add this method to filter_help.ts so users can see and understand how to use this method properly. Can probably find a better name for this method as well so it's more intuitive to users.

Also, this feature would be extremely useful for the csfloat market search filters as well. But I'm not sure how they go about receiving feature ideas from the public.

@albertjsung albertjsung marked this pull request as ready for review August 17, 2025 19:24
cursor[bot]

This comment was marked as outdated.

throw new TypeError(`seedGroup must be a string, got ${typeof seeds}`);
}

const seedList = seeds
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also consider using a singular set of seeds and checking if each market listing's paint seed has membership in the set. This would make lookups faster, but implementation is a bit more complicated and didn't want to get ahead of myself.

For what its worth this feature could already exist and I didn't look hard enough.

cursor[bot]

This comment was marked as outdated.

@GODrums
Copy link
Collaborator

GODrums commented Aug 18, 2025

First of all, thank you for your contribution.

I believe you might have missed the in operator, which covers this exact use case.
So for your example, you could write:

seed in (301,625,540)

@albertjsung albertjsung deleted the albertsung-seed-in-list branch August 19, 2025 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants