Jump to content
  • PKHeX is a save editor for core-series Pokémon games. With it, users can manipulate various save files including: .sav, .dsv, .dat, .gci, .raw, and .bin types. PKHeX can also read and write: .pk files, which are individual Pokémon files, and .pgt, .pcd, .pgf, .wc, which are Mystery Gift files.

    Version 24.06.03 of PKHeX has been released, with initial trash bytes checks for Switch-era game formats. See the changelog for further details.

    PKHeX requires the .NET Desktop Runtime 8.0.0 to run. If you receive an error when trying to run, ensure you have it installed.

    Take note that other related applications will still need time to update, and updated versions of Plugins or SysBot may not be immediately available.

    Change log:

    Quote

    24/06/03 - New Update:
     - Legality: Added automatic (basic) Trash Byte checks for Switch-era (Gen7b+) files. Further refinement & expansion in the future.
     - - Fixed: Mystery gifts distributed with nicknames no longer flag IsNicknamed as invalid.
     - Added: Entity editor move dropdown now displays the move's type on the left side.
     - Added: Entire boxes can be dragged & dropped. Must enable via setting as it is not intuitive. Drag from the Box tab rectangle.
     - Added: Report grid can now specify extra properties to show, as well as properties to hide. Change via settings.
     - Added: Gen1-3 save file language/version detection updated for more edge cases.
     - Added: Gen2-5 localization text files added for less popular languages. Thanks @abcboy101 !
     - Added: Gen3 GBA<->GC string conversion logic to handle special text entry. Thanks @abcboy101 !
     - Added: Gen4 Seal/Accessory/Backdrop editors. Thanks @abcboy101 !
     - Added: Gen5 Geonet/Unity Tower can now edit country/region data. Thanks @abcboy101 !
     - Fixed: Gen6/7 entities now save the volatile status effect rather than wiping it (see previous release notes).
     - Fixed: Gen3-7 Nidoran/Farfetch'd text char quirks updated to better align with GameFreak's mess.
     - Fixed: Gen1/2 quirks with box data have been rewritten and resolved.
     - Changed: Gen1-3 emulator save formats that store RTC data are now detected more reliably.
     - Changed: More performance improvements as always! Additionally, translations can now handle Enum localization.

     

     

    Download      |     FAQ     |     Support Forum

    • Confused 1

    User Feedback

    Recommended Comments



    endypk11

    Posted

    Invalid OT: Trash Bytes should be cleared

    how to fix trashbyte?

     

    SkyLink98

    Posted

    12 hours ago, CriSs said:

    how to fix trashbyte?

    I am receiving the message:

    Invalid OT: Trash Bytes should be cleared

     

     

    12 hours ago, endypk11 said:

    Invalid OT: Trash Bytes should be cleared

    how to fix trashbyte?

     

    CTRL+Click on the OT Field, then click Clear.

    kyle72686

    Posted

    I downloaded the latest version yesterday (I don't know what version I was using before. It's been a while) and my Gen 4 games suddenly have a lot of errors saying "Invalid: Unable to match an encounter from origin game." on some of my event pokemon. They are all legit events and they all seem to be from the "2nd game" in each pair ( SoulSilver and Pearl).

    Gen 5 is even weirder. My event shiny Pichu from Pearl has:

    image.png.a22e20695740510c9e228251799642ec.png

    While the shiny Pichu from Diamond is fine.

    Anyone know what's going on?

    Kaphotics

    Posted

    2 hours ago, kyle72686 said:

    I downloaded the latest version yesterday (I don't know what version I was using before. It's been a while) and my Gen 4 games suddenly have a lot of errors saying "Invalid: Unable to match an encounter from origin game." on some of my event pokemon. They are all legit events and they all seem to be from the "2nd game" in each pair ( SoulSilver and Pearl).

    Gen 5 is even weirder. My event shiny Pichu from Pearl has:

    image.png.a22e20695740510c9e228251799642ec.png

    While the shiny Pichu from Diamond is fine.

    Anyone know what's going on?

    Gen4 events are distributed with fixed version IDs. They do not match the recipient's version.

    manal

    Posted

    The date of meeting Magiana in her 500 year old form is incorrect on 2024/6/17

    Kaphotics

    Posted

    46 minutes ago, manal said:

    The date of meeting Magiana in her 500 year old form is incorrect on 2024/6/17

    No it's not.

    Justine974

    Posted (edited)

    Bonjour! Comment charge t'on les boites avec les pokémon comme avant et pourquoi il y a des problèmes de capacités invalides et de traceur home ? je peux plus rien faire, comment retourner aux anciennes versions ? Merci

    Edited by Justine974
    erreur orthographique
    ICanSnake

    Posted

    Getting this message in my Sword save for all Pokemon in my own OT I've deposited once into Home and brought back into Sword. I think it's caused because the OT Name and OTG in my Home account is the same as my Sword save, except obviously different TIDs because the Home TID isn't taken into account when transferring. Shows up in Development build and I didn't see a report about it, maybe I missed it.

     

    image.png.e7ab94c3bcc00e131b8e21a64dde46a8.png

    Kaphotics

    Posted

    31 minutes ago, ICanSnake said:

    Getting this message in my Sword save for all Pokemon in my own OT I've deposited once into Home and brought back into Sword. I think it's caused because the OT Name and OTG in my Home account is the same as my Sword save, except obviously different TIDs because the Home TID isn't taken into account when transferring. Shows up in Development build and I didn't see a report about it, maybe I missed it.

     

    image.png.e7ab94c3bcc00e131b8e21a64dde46a8.png

    Can't know what is happening without knowing the trainer ID of the currently loaded save file, and the ID of the Pokemon. If the Pokemon details matches the save file, then it should be handled by the OT, otherwise, should be the HT. Hence the message. Sharing trainer IDs across different versions results in incorrect handler flags because the game does not check the trainer Version, and it's a sign that the Pokemon or save file is not legitimate.

    sirgeloooooo

    Posted

    I can't open my save file from MyBoy.

    1.png

    Kaphotics

    Posted

    2 hours ago, sirgeloooooo said:

    I can't open my save file from MyBoy.

    1.png

    Incorrect format. Needs to be a 128KB save file, not 64 KB.

    ICanSnake

    Posted

    3 hours ago, Kaphotics said:

    Can't know what is happening without knowing the trainer ID of the currently loaded save file, and the ID of the Pokemon. If the Pokemon details matches the save file, then it should be handled by the OT, otherwise, should be the HT. Hence the message. Sharing trainer IDs across different versions results in incorrect handler flags because the game does not check the trainer Version, and it's a sign that the Pokemon or save file is not legitimate.

    Happens across everything I caught in Sword, all I did was transfer them into Home once in 2020 and transfer them back into Sword. There's no OT sharing, Handling Trainer is my Home account with a different TID. This is an incorrect flag.

     

    image.thumb.png.d2de40dfc48a8be9fd664f59eba8c45b.png

    image.png.840a696112046220cbe237cbd805e66d.pngf

    Kaphotics

    Posted

    They need to be handled by the OT (not the HT), since they're from your save file. PKHeX flags incorrect states; this could very well have been a bug with early versions of HOME and fixed. Same as the Gold Bottle Cap issue that GameFreak later fixed, it is better to flag the incorrect state and get the user to fix their error, as you need to consider that 99% of people who encounter this error in the present day are because they generated data incorrectly instead.

    ICanSnake

    Posted

    1 minute ago, Kaphotics said:

    They need to be handled by the OT, since they're from your save file. PKHeX flags incorrect states; this could very well have been a bug with early versions of HOME and fixed. Same as the Gold Bottle Cap issue that GameFreak later fixed, it is better to flag the incorrect state and get the user to fix their error, as you need to consider that 99% of people who encounter this error in the present day are because they generated data incorrectly instead.

    Sorry but I won't modify my Pokemon or changing anything in my save file to change it from stock captures to an edit. I just tested capturing a Froslass, placing in Home and retrieving it, it doesn't give it a Handling Trainer anymore so it could have been an early Home issue. I think it should be flagged fishy instead of invalid, there is no evidence to show that the modification is on my part.

    Kaphotics

    Posted

    Nope; if it's a misassigment by HOME or by the user, PKHeX will flag it. You can fix it by putting them back in HOME and retrieving them. I'm not changing that priority.

    As previously mentioned, official glitches are still flagged by PKHeX. Invalid move PP, bottle caps, etc, still flagged.

    sirgeloooooo

    Posted

    14 hours ago, Kaphotics said:

    Incorrect format. Needs to be a 128KB save file, not 64 KB.

    How can i save it in 128kb format?

    sirgeloooooo

    Posted

    Just now, sirgeloooooo said:

    How can i save it in 128kb format?

    Ow nevermind. I see it already in MyBoy settings. Thanks anyway ☺️ 

    SanTrapGamer

    Posted

    Is there progress editing capabilities expected to come in a future version? Was looking at utilizing a new save to get a few legendaries that I wanted with my OT, but didn't want to play through the full story + DLCs again.

    Kaphotics

    Posted

    1 hour ago, SanTrapGamer said:

    Is there progress editing capabilities expected to come in a future version? Was looking at utilizing a new save to get a few legendaries that I wanted with my OT, but didn't want to play through the full story + DLCs again.

    No. Nothing of the sort exists for prior games either.

    XD_Lele

    Posted (edited)

    Hi! I bring some reports: pokedex lets go broken, roamer misc edit gen 5 BW don t display, battle hall gen 4 missing stuff. Battle subway gen 5 if change record to defeat the boss ( e.g. 42 wins ), don t get the trophy in home. thanks

    dexletsgo.thumb.png.6101fa72a5732c77fccb37d6397ddca2.pngHallgen4.thumb.png.bde12660b9c44b2bfc4772a5ef4a4e92.pngBWroamer.thumb.png.acba8b580563d0c6a5cb2df6c67af81b.png

    Edited by XD_Lele
    SanTrapGamer

    Posted

    4 hours ago, Kaphotics said:

    No. Nothing of the sort exists for prior games either.

    I'm not sure I understand. I'm looking at a Crystal Save File, and there's clearly a check for obtained badges:

     

    image.png.8ab555b0db27b32be22c95a8cafa937d.png

    Also, a way to mark event flags as completed or not. Maybe I worded my question poorly, but are features like this implemented for SV?

    Kaphotics

    Posted

    10 hours ago, SanTrapGamer said:

    I'm not sure I understand. I'm looking at a Crystal Save File, and there's clearly a check for obtained badges:

     

    image.png.8ab555b0db27b32be22c95a8cafa937d.png

    Also, a way to mark event flags as completed or not. Maybe I worded my question poorly, but are features like this implemented for SV?

    The Block Editor allows for changing tons of flags, but it is no replacement for regular gameplay progression.

    Pocket Monsters

    Posted

    In Pkhex recent version, when I transfer a Pokémon of DPPt & HGSS save for a save My Pokémon Ranch, this error is occurs.

     

    System.ArgumentException: Destination is too short. (Parameter 'destination')
       at PKHeX.Core.PK4.ConvertToRK4()
       at PKHeX.Core.EntityConverter.IntermediaryConvert(PKM pk, Type destType, EntityConverterResult& result)
       at PKHeX.Core.EntityConverter.ConvertPKM(PKM pk, Type destType, EntityConverterResult& result)
       at PKHeX.Core.EntityConverter.ConvertToType(PKM pk, Type destType, EntityConverterResult& result)
       at PKHeX.Core.SaveExtensions.GetCompatible(SaveFile sav, IEnumerable`1 pks)+MoveNext()
       at PKHeX.Core.SaveExtensions.ImportPKMs(SaveFile sav, IEnumerable`1 compat, Boolean overwrite, Int32 boxStart, PKMImportSetting noSetb)
       at PKHeX.Core.BoxUtil.LoadBoxes(SaveFile sav, IEnumerable`1 pks, String& result, Int32 boxStart, Boolean boxClear, Boolean overwrite, PKMImportSetting noSetb)
       at PKHeX.WinForms.Controls.SAVEditor.LoadBoxes(String& result, String path)
       at PKHeX.WinForms.Main.MainMenuBoxLoad(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
    System.InvalidOperationException: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at System.Windows.Forms.Control.Invoke(Action method)
       at PKHeX.WinForms.ErrorWindow.ShowErrorDialog(String friendlyMessage, Exception ex, Boolean allowContinue)
       at PKHeX.WinForms.Program.UIThreadException(Object sender, ThreadExceptionEventArgs t)




    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

  • Our picks

    • Since they released over a decade ago, the Pokémon Mystery Dungeon games for the Nintendo DS have not had much in the way of ROM editors. Over the past few years, hackers have slowly learned more and more about the inner workings of the games, culminating in the most advanced PMD editor to date: Sky Temple. 

      SkyTemple is a user-friendly level editor for Pokémon Mystery Dungeon: Explorers of Sky that gives the user full control over graphics, scripts, Pokémon data, and more, enabling a great amount of creative freedom to prospective ROM hackers to create not just edits of the game, but entirely new levels and plots.

      See the trailer for the version 1.0.0 release for quick samples of what can be accomplished:

      Additional reading:

      Download:

       
        • Amazed
        • Like
      • 10 replies
    • The #1 issue with Gates to Infinity is the super slow text speed. Luckily, @shutterbug2000 discovered how to fix it.
      • 39 replies
    • PKHeX 20.01.10
      PKHeX is a save editor for core-series Pokémon games. With it, users can manipulate various save files including: .sav, .dsv, .dat, .gci, .raw, and .bin types. PKHeX can also read and write: .pk files, which are individual Pokémon files, and .pgt, .pcd, .pgf, .wc, which are Mystery Gift files.

      Version 20.01.10 of PKHeX has been released! PKHeX now supports the latest patch (1.1.0) Full change log below!

       

       

      Change log:

      Download      |     FAQ     |     Support Forum
        • Thanks
        • Like
      • 1 reply
    • Website Updates
      After a few hours of being offline, we're finally back! Not only are we on a shiny new server, we have some new goodies.
        • Hahaha
        • Amazed
        • V-Wheeeeeel!!!
        • Thanks
        • Like
      • 6 replies
    • Following the success of his fan dub of Pokémon Super Mystery Dungeon, YouTuber TheGoldCrow has started a new project: a fan dub of Pokémon Mystery Dungeon: Explorers of Sky.
        • V-Wheeeeeel!!!
        • Like
      • 2 replies
×
×
  • Create New...