Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
Hey, I'm running into the same issue using Pokeemerald-expansion. Wondering if you figured this out and/or if Anon822's solution worked for you.
Edit: For anyone else that ends up here, I added Snibble's code with Anon822 extra lines and everything seems to be working. No errors and some test...