Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
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.
I wish to look at the dat files within pokemon essentials so that I may learn how it works. All I need to know is the program used to create the files so that I may learn from it.
Thanks in advance!
Well, the Dat files are created in a script section called Compiler. There's isn't a one to one though, pokemon.txt turns into 6 different files. There is a page on the wiki explaining the compiler, it hasn't been updated for v17 but not much changed when it comes to the big sweeps and formatting. It does focus a bit more on the reading of the PBS file than the saving though.
Mind you that some of the dat files are created with Marshal.dump (or save_data, a method that wraps it), which is a special format. The format is apparently slightly different depending on the version of ruby, but I think the main sweeps is the same based on opening those files in a hex editor. This is for version 2.1.0, I couldn't find one for 1.8.1, the version RMXP uses.