Jump to content

Recommended Posts

Posted

Hey all,

 

There's every chance I'm doing something stupid here, but I can't for the life of me figure out what I'm doing wrong. Basically I've tried using the advanced filter in the mystery gift and encounter DB for a few different properties, but I never get any results. 

 

For example, I tried filtering by SWSH and setting it to True, but no results - is this the right way to filter for a given game?

 

I've also tried met level - no luck there either. Finally I've tried met location (using IDs from Bulbapedia) but that also didn't work.

 

Is it because those properties only exist when a Pokemon is created in pkhex? Whereas the DBs are just templates?

 

If that is the case - what's the best way to filter down based on things like game, and level/location where that is fixed (e.g. max raids, dynamax raids and tera raids)? Ideally I'm trying to filter the mystery gift DB by a specific game, and encounter DB to show only Pokemon that are for instance in raids and at a specific level.

 

Thanks!

Posted
43 minutes ago, Kaphotics said:

Without seeing a screenshot, I'm assuming you didn't search for a specific species. The program has a safeguard to prevent searching for Any unless you turn on a setting.

Ah sorry that probably would have helped...I have turned off the setting that doesn't show any Pokemon if you don't filter by species.

 

I have a feeling it's because the Pokemon in the DB aren't generated yet, but not sure what other options I have to filter how I've described

Screenshot_20250609-124648.png

Screenshot_20250609-124730.png

Posted

I guess I should add - obviously with the encounter DB I can search by game with the dropdown, so that question specifically (how to search by game) relates to the mystery gift DB

Posted

Correct; the batch filters are used for properties of the encounter templates themselves, not the eventually generated entities. The encounter template must have the property you are trying to search, and there really isn't overlap.

If you are trying to search for SW/SH raid den Pokémon, use the regular tab's search filters to search for the game you want to "capture" them from (either Sword or Shield), untick all except Static encounters (because they aren't regular Wild Pokémon).

The batch editor filter of `=Location=162` might work to further filter it, but you can also filter by level/etc or `=ObjectType=EncounterStatic8N` or the specific object type of the encounter (if you reference PKHeX's source code for how it classifies encounter templates).

Posted (edited)
46 minutes ago, Kaphotics said:

Correct; the batch filters are used for properties of the encounter templates themselves, not the eventually generated entities. The encounter template must have the property you are trying to search, and there really isn't overlap.

If you are trying to search for SW/SH raid den Pokémon, use the regular tab's search filters to search for the game you want to "capture" them from (either Sword or Shield), untick all except Static encounters (because they aren't regular Wild Pokémon).

The batch editor filter of `=Location=162` might work to further filter it, but you can also filter by level/etc or `=ObjectType=EncounterStatic8N` or the specific object type of the encounter (if you reference PKHeX's source code for how it classifies encounter templates).

Ah yep I can see both of those filters are actually doing something now, and returning pokemon. I do note that the Location and Level filters don't appear in the DB viewer or in the batch editor - are there other filters like this (in terms of not actually showing in the UI but being usable)? How would I go about finding all the filters - checking the source code? 

Thanks a ton for your help too - I really appreciate it!

 

Is it possible when filtering to use boolean logic as well? E.g. ObjectType is X OR Y?

 

I guess the other question I have off the back of my other ones (again thanks so much for your help) is it possible to export the encounter DB search results like you can do with mystery gift? 

Right now I'm ctrl clicking each search result, then shift clicking to add them to the box, but it resets shiny status for each pokemon (I guess because they have to be XOR 1 shinies?) so it's quite tedious. I'm also open to any suggestions on a quicker way of doing this too!

Edited by Olorin92
Posted
22 minutes ago, Olorin92 said:

Ah yep I can see both of those filters are actually doing something now, and returning pokemon. I do note that the Location and Level filters don't appear in the DB viewer or in the batch editor - are there other filters like this (in terms of not actually showing in the UI but being usable)? How would I go about finding all the filters - checking the source code? 

Thanks a ton for your help too - I really appreciate it!

 

Is it possible when filtering to use boolean logic as well? E.g. ObjectType is X OR Y?

Correct, you have to check the source code or use the hover text tooltip (with the verbose setting enabled) to indicate all the properties available.

The batch editor is simple comparisons; it doesn't have a "is equal to any of" syntax.

Not sure what your use case is, but if it's to generate a living dex, there is a plugin for that. Otherwise, if you're really doing things in bulk, it might be recommended to write a plugin yourself to handle the objects natively and do as you wish with the data.

  • Like 1
Posted (edited)
12 minutes ago, Kaphotics said:

Correct, you have to check the source code or use the hover text tooltip (with the verbose setting enabled) to indicate all the properties available.

The batch editor is simple comparisons; it doesn't have a "is equal to any of" syntax.

Not sure what your use case is, but if it's to generate a living dex, there is a plugin for that. Otherwise, if you're really doing things in bulk, it might be recommended to write a plugin yourself to handle the objects natively and do as you wish with the data.

OK no worries, thanks that's useful info! Yeah so basically just trying to go back and generate pokemon that I missed from raid events in sword/shield and other select ones. If it wasn't for the fact the shiny status reset every time I grabbed a pokemon encounter (I'm pretty sure for other encounter types the shiny status didn't reset - again guessing this is because these raid ones have to be XOR 1 shinies) I could do this stuff manually easily enough! 

Perhaps a plugin is the way to go like you say, at least to automate some of the heavy lifting.

 

Also - the verbose tool tip was a GREAT suggestion, gives me exactly what I need to know when trying to filter down!

Edited by Olorin92

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...