Jump to content

Commandline PKM generator


YodaDaCoda

Recommended Posts

Greetz everybody.

For as long as I've been playing with PKM files, I've wanted a way to create them through the commandline for quick/batch generation. So, after a lot of searching and re-learning python, I made my PKM Generator.

It's designed to make generating legal pokes as easy as possible. There's still a bunch of work to do, but for now it's functional.

Example usage:

python pkmgen.py --pokemon="larvitar" --move1="bite" --move2="leer"  --edate="21,09,12" --mdate="21,09,12" --ivs="31,31,31,31,31,31" --gender="male" --ability="guts" --nature="timid" --level="10" --ot="Name,0,0,male" > newpoke.pkm

I'd love some feedback, especially if someone understands better than I how to generate the PID properly (at the moment it only seems to generate a valid PID about 50% of the time).

Credits go to Ceol, creator of pypkm (https://github.com/ceol/pypkm), without which I would not have been able to create this.

PKM Generator..zip

PKM Generator..zip

Edited by YodaDaCoda
Link to comment
Share on other sites

It's a commandline program, written in Python and using the PYPKM library (which I did not write and is far beyond my coding ability). It requires Python installed on your computer to run. It has no user interface. It takes the arguments given on the commandline and uses them to generate a new PKM file from scratch.

It's basically my attempt to take a lot of the work out of generating *legal* pokemon

Link to comment
Share on other sites

  • 2 weeks later...

Oh, awesome! I didn't know anyone actually used that thing. It's a bit of a mish-mash because halfway through, I started using Construct. I also used it to teach myself Python, so I'd really appreciate any feedback.

@Kaphotics The PID doesn't necessarily have to match the ability. It just means it's "illegal". The game will still recognize it, but it's up to the author to ensure the proper ability is given if they're aiming for legality.

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