No description
Find a file
Kurt fced599119 Fix HGSS box saving (empty->not)
HGSS tracks each box if it is changed, to skip writing it on in-game save. PKHeX (and other editors) weren't updating these bitflags, so when empty boxes had Pokémon added and saved once in-game, the save file would corrupt as it was copying the checksum but not the box's data.

Saving twice in-game will cause the checksums to get updated even without the flags being set. I don't think we understand it fully, but this hacky workaround of noting all boxes as "changed" will cause the first-save to properly copy all contents of the boxes to the new primary save section. Rather than tracking which boxes we are reading/writing slots for, or fixing/comparing against a backup -- we need to account for API usage where people might write directly into the save (pcdata.bin/boxdata.bin too). Best to play it safe and let the game fix it.

Most wouldn't have noticed this issue as the box they're modifying is usually their most-recently-changed in-game box.

Closes #4368
2024-11-11 22:25:34 -06:00
.github Standardize language codes and improve locale handling (#4353) 2024-09-04 18:51:35 -05:00
PKHeX.Core Fix HGSS box saving (empty->not) 2024-11-11 22:25:34 -06:00
PKHeX.Drawing Update 24.07.03 2024-07-02 23:51:10 -05:00
PKHeX.Drawing.Misc Update 24.07.03 2024-07-02 23:51:10 -05:00
PKHeX.Drawing.PokeSprite Sanity check save file personal info 2024-07-04 18:42:27 -05:00
PKHeX.WinForms Fix Met tab startup binding 2024-11-11 15:11:47 -06:00
Tests/PKHeX.Core.Tests Rework Gen3 Event PIDIV detection & checks 2024-10-16 00:01:10 -05:00
.editorconfig File scoped namespaces (#3529) 2022-06-18 11:04:24 -07:00
.gitattributes Minor changes to git config files 2015-07-21 00:23:50 +02:00
.gitignore Allow some nidoran/volbeat to mismatch correlation 2024-09-05 23:55:46 -05:00
Directory.Build.props Update 24.07.27 2024-07-26 15:38:03 -05:00
icon.png Split up csproj PropertyGroup for nuget metadata (#3492) 2022-05-07 17:30:42 -07:00
LICENSE Split up csproj PropertyGroup for nuget metadata (#3492) 2022-05-07 17:30:42 -07:00
PKHeX.sln Update from .NET Framework 4.6 to .NET 7 (#3729) 2023-01-21 20:02:33 -08:00
README.md Standardize language codes and improve locale handling (#4353) 2024-09-04 18:51:35 -05:00

PKHeX

License

Pokémon core series save editor, programmed in C#.

Supports the following files:

  • Save files ("main", *.sav, *.dsv, *.dat, *.gci, *.bin)
  • GameCube Memory Card files (*.raw, *.bin) containing GC Pokémon savegames.
  • Individual Pokémon entity files (.pk*, *.ck3, *.xk3, *.pb7, *.sk2, *.bk4, *.rk4)
  • Mystery Gift files (*.pgt, *.pcd, *.pgf, .wc*) including conversion to .pk*
  • Importing GO Park entities (*.gp1) including conversion to .pb7
  • Importing teams from Decrypted 3DS Battle Videos
  • Transferring from one generation to another, converting formats along the way.

Data is displayed in a view which can be edited and saved. The interface can be translated with resource/external text files so that different languages can be supported.

Pokémon Showdown sets and QR codes can be imported/exported to assist in sharing.

PKHeX expects save files that are not encrypted with console-specific keys. Use a savedata manager to import and export savedata from the console (Checkpoint, save_manager, JKSM, or SaveDataFiler).

We do not support or condone cheating at the expense of others. Do not use significantly hacked Pokémon in battle or in trades with those who are unaware hacked Pokémon are in use.

Screenshots

Main Window

Building

PKHeX is a Windows Forms application which requires .NET 8.0.

The executable can be built with any compiler that supports C# 12.

Build Configurations

Use the Debug or Release build configurations when building. There isn't any platform specific code to worry about!

Dependencies

PKHeX's QR code generation code is taken from QRCoder, which is licensed under the MIT license.

PKHeX's shiny sprite collection is taken from pokesprite, which is licensed under the MIT license.

PKHeX's Pokémon Legends: Arceus sprite collection is taken from the National Pokédex - Icon Dex project and its abundance of collaborators and contributors.

IDE

PKHeX can be opened with IDEs such as Visual Studio by opening the .sln or .csproj file.