Darth Novii Posted 7 hours ago Posted 7 hours ago I have a project in mind. In scope, it's rather ambitious. I wish to recreate Pokemon generations 1-5 in Minecraft. But more than that, I want the mod I'm building to be able to export a 100% valid readable save that can be loaded into an emulator or cartridge, and pick up right where you left off with no errors. Before you go and tell me that what I'm planning is insane and impossible... Trust me... I'm aware. For now, all I need is this: PKHeX is able to check a game and a Pokemon, and generate every possible Pokemon of that type within that game. I want to understand that process. From RNG value to final mon. Every step in the code. Every step in the process. Everything else in the save export process can be figured out later. But the pokemon generation needs to be right from the start. And in order to do that, I need to understand how it does it. I've been studying save file formats and I understand a fair bit. I just need a point in the right direction. I'm starting in Generation 3 with the Gen 1 remakes. Kanto only for now. I might do the Sevii Isles later, but maybe not since I have other plans for how to handle later generation pokemon.
Kaphotics Posted 4 hours ago Posted 4 hours ago PKHeX is open source; reference the source code. Nobody is going to write you a plaintext novel on how each is generated when the source code already provides the start->finish logic. PKHeX/PKHeX.Core/Legality/Encounters/Templates at master · kwsch/PKHeX
Darth Novii Posted 2 hours ago Author Posted 2 hours ago That's fair. In the time since I posted this, I've already got a working generator that produces actual legal mons. Except for Meowth. Works on others. But not Meowth. Every time I try to gen a Meowth, it defaults to thinking that it's supposed to be the Egg Pokémon Present Meowth and insists that the fateful encounter flag should be enabled. Even though the exact same PSID and IVs work on others. (Yes, I also made sure the other checks were correct.) Oddly enough, if I set the Met at level to 0, it accepts the Meowths as legal too. I think it might be a bug with PKHeX. I double and triple checked my gen method.
Kaphotics Posted 1 hour ago Posted 1 hour ago 44 minutes ago, Darth Novii said: I think it might be a bug with PKHeX. I think not. Manually making things requires a laundry list of considerations to be done right, and you likely don't fully understand what all the values need to be. Use the encounter database, and compare the verbose report to what you're manually making.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now