Jump to content

question about relationship between exp points and level in a .pkm file


cadaguti

Recommended Posts

Hello,

Well, I'm trying to do a program which opens the .pkm files and recognizes the data. This program, in the future will be a little minigame, where the pokémon imported from the pkm file will be able to fight against other players, gain experience, level up and evolve, and then, they will be able to be transfered to the original game from which they were exported.

My question is, does anyone know how it is posible to get the level of a pokémon stored in a pkm file? I guess this is a relationship between the level and the exp points, but I don't know how to get it. I know how to get the exp points knowing the level, but don't know the other way.

I've already searched in many websites, but I only find some complicated and incomplete formulas, but I think there must be a easier way to do that, because Pokesav and PokeGen can get the level from the exp Points.

If anybody could help me with that, I will be very grateful.

Link to comment
Share on other sites

Below are some links that may find your work easier. But not effortless. The first two are the file structures of *.pkm files, and the 3rd is a code library made in VB.net. The code library has given me much grief when trying to edit full save files, but works fine as far as I can tell for 4th gen *.pkm files. You may need to modify it for 5th gen *.pkm files (or wait an indefinate amount of time for CodeMonkey85 to release a new version).

4th gen format: http://projectpokemon.org/wiki/Pokemon_NDS_Structure

5th gen format: http://projectpokemon.org/wiki/Pokemon_Black/White_NDS_Structure

PKMDS Lib: http://projectpokemon.org/forums/showthread.php?3332-PKMDS-Code-Library!&highlight=pkmds

Good luck!

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