Hello, @Kaphotics and @lokiike I'm having the same issue in the most recent version of pkhex (24.07.27).
I've been using pkhex for years now and never had any problem that was not able to google it and fix my mistakes given the posts and the help you guys provide, I always find similar cases that are already solved and this one is exactly like mine but I still don't understand the answer you provided.
If I change the ot from the default pkhex to mine (name, SID and TID) pkhex shows me this error message "Invalid: Handling trainer does not match the expected trainer name".
I changed the current handler to HT and gave it a name and a Language but it still seems to give the same iligal flag for some reason that I would like to understand why this is happening and how could I fix this.
If you can, I would also like to understand why in older versions this was not an issue.
Note: I'm a software engineer so if you need to use technical language to explain the problem and provide the solution so I can fix the issue, feel free to do so.
Thanks in advance.
EDIT: If I change the "Latest (not OT) Handler" name to "PKHeX" makes it legal - Why does that have to be the name?