Jump to content

Batch Editor Nickname_Trash/OT_Trash


Guest

Recommended Posts

I'm interested in editing trash bytes using batch editor, because it would take too long doing it on each Pokémon one by one. But how do I actually do that? Is it even possible?

It expects data in byte[] format, but as far as I can tell it's not possible for me to input data in this format, unless I just don't know how to. And unlike what the batch editing guide implies, ProcessPKM function in BatchEditor.cs is of no help (and I haven't been able to find any pointers anywhere else in the code.)

If this isn't possible, then I'll probably just dump everything to .pk5 and write something to manually overwrite nickname/OT bytes on the files, and then have PKHeX fix the names after. Which works, but that would be a hassle, so it would be nice if those properties could simply be set in batch editor instead.

Link to comment
Share on other sites

https://github.com/kwsch/PKHeX/blob/f6fb54aeccb4aa58614dfc684bc7818a22eb6e16/PKHeX.Core/Editing/Bulk/BatchEditing.cs#L36

https://github.com/kwsch/PKHeX/blob/f6fb54aeccb4aa58614dfc684bc7818a22eb6e16/PKHeX.Core/Editing/Bulk/BatchEditing.cs#L470

.OT_Trash=$[]BE,EF,CA,FE,...

keep in mind the property setter will accept it ONLY if it matches the expected length (gen6+ = 24 for both OT/Nick). Just check the length expected in the pk*.cs class

Link to comment
Share on other sites

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...