Jump to content

Leaderboard

  1. Kaphotics

    Kaphotics

    Helpful Member


    • Points

      5

    • Posts

      6897


  2. BlackShark

    BlackShark

    Contributor


    • Points

      3

    • Posts

      1580


  3. SkyLink98

    SkyLink98

    Event Staff


    • Points

      2

    • Posts

      904


  4. Smile

    Smile

    New Member


    • Points

      1

    • Posts

      22


Popular Content

Showing content with the highest reputation on 04/01/21 in all areas

  1. This guide is for those who are interested in editing an actual trainer/berry e-Card to use with the real e-Reader. If you are capable of save editing or you are playing on an emulator it's probably easier to inject the trainer/berry into your save file directly. Requirements your custom Trainer (ECT) or Berry (ECB) of course (can be created with this tool) e-Reader dev tools (https://caitsith2.net/ereader/devtools.htm) e-Card headerfix tool headerfix.zip (source) a hex editor (like HxD) a raw e-Card which we will use as a base (English, Japanese) Editing the raw e-Card Decode your raw e-Card with nedcenc like this: nedcenc.exe -i card.raw -d -o card.bin Open the decoded card in your hex editor. Copy the header (the first 83 (0x53) bytes as seen above) and save them for later. Copy and save the VPK (starting at offset 0x53 with "vpk0") into a new file. The full VPK size can be found at offset 0x51. Keep in mind that this is written as little endian, which means if these two byte are "81 07" the actual size is 0x781 (from 0x53-0x7D3). The rest of the decoded card is just padding, you can ignore/delete it for now. You have saved the VPK into a new file, now decompress it with nevpk: nevpk.exe -i trainer.vpk -d -o trainer_decompressed.vpk Open the decompressed VPK in your hex editor. For trainers: navigate to offset 0xD50, that's where the actual trainer data (ECT) is located, it's 188 (0xBC) bytes. For berries: the data (ECB) is at offset 0x4EA, it's 530 (0x212) bytes. For trainers: replace the data from 0xD50-0xE0B with your custom trainer and save the file. For berries: replace the data from 0x4EA-0xA19 with your custom berry. Compress your edited VPK with nevpk: nevpk.exe -i mytrainer.vpk -c -o mytrainer_compressed.vpk Note the size of your new compressed VPK! Create a new file in your hex editor and paste the header you have saved earlier in step 3. Paste your compressed VPK right after the header at offset 0x53. Now fix the VPK size at 0x51 to match the new size. Remember to write it as little endian! Fix the size info at 0x26: in the image above the value is 0x020F0622 bit 9-23 is the same as your VPK size + 2 bits are counted from left to right starting with 0 the original VPK size is 0x781 + 2 = 0x783 or in bits 0000 0111 1000 0011 0x020F0622 in bits: 0000 0010 0000 1111 0000 0110 0010 0010 convert your new VPK size into bits replace the bits marked in red in the size info convert the size info value back into hexadecimal write it back to offset 0x26 Pad the card to a proper size of 2112 (0x840) bytes. You can fill the area after the VPK until 0x83F with FF. Fix the cards checksums by droping it on headerfix.exe and you are done! You are done! You can now encode your edited card back into a raw e-Card: nedcenc.exe -i custom.bin -e -o custom.raw You can use the dotcode printer from the devtools for printing, it can print dotcodes in raw or bmp format. Keep the DPI at 300, choose your card and your printer and print it! You could as well just convert your raw card into bmp (raw2bmp.exe -i card.raw -o card.bmp) and print that. So, I hope everything was clear enough, if there are still questions feel free to ask!
    3 points
  2. I've fixed this in the latest batch of commits; just need to see if there's anything else that can be fixed prior to uploading a hotfix.
    3 points
  3. Looks like invalid pkrs values. https://github.com/pret/pokeemerald/blob/5d7c438efcd341c777c866a7eb3f8401f8548dc5/src/pokemon.c#L6036-L6058 The byte at 0x44 has "01", which decomposes to "strain 0, days 1". Can't get strain 0, and when it's cured (days elapsed), it will never remember it had pkrs. I simulated the numbers to generate a list of possible PKRS values: https://github.com/pret/pokeemerald/blob/5d7c438efcd341c777c866a7eb3f8401f8548dc5/src/pokemon.c#L5940-L5978 var list = new List<int>(); for (int i = 0; i <= 255; i++) { var val = i; if ((val & 0x7) == 0) continue; if ((val & 0xF0) != 0) val &= 7; val |= (val << 4); val &= 0xF3; val++; $"{i:000}: {val:X2}".Dump(); list.Add(val); } list.OrderBy(z => z).Select(z => $"{z:X2}").Distinct().Dump(); And here is the list of initial values: 12 23 34 41 52 63 74 92 A3 B4 C1 D2 E3 F4 Note how strain 0 and strain 8 are not generatable. === Did you hack in PKRS with a cheat?
    2 points
  4. Details for Index 62 of normal_encount and normal_encount_rigel1 and normal_encount_rigel2 (no differences) Rewards for Index 62 of normal_encount and normal_encount_rigel1 and normal_encount_rigel2 (no differences) Details for Index 62 of dai_encount Rewards for Index 62 of dai_encount
    1 point
  5. Version .

    578 downloads

    This is a Wild Area event held by Sword and Shield. This event only contains a non-catchable Magikarp. To import these files into your save, use PKHeX's block importing function. Our tutorial should guide you through it. Our first post of this page contains some data relevant to the importing stage. There's info and some common questions regarding Wild Area Events here. To see other Wild Area Events, here.
    1 point
  6. Finally, caught the last one as I arrived at work this morning. You should hopefully get Dark finished today Tiffany, Purrloin seems to be spawning quite frequently. Make 3 Excellent Throws in a row rewards Gible if you can find that task. Your local Pogo community might be posting when Gible and Noibat spawn, we've been messaging each other when spawns have been sighted. Although still pretty rare we seem to have been averaging a few reports a day recently. For Ghost i've noticed Gastly seems to spawn on an morning / evening between events which affect wild spawns.
    1 point
  7. PKHEX 21.04.06 Error opening event flag in FRLG.
    1 point
  8. (X) Doubt [I’ve yet to download it]
    1 point
  9. Hello, I noticed a little problem/bug opening a LeafGreen save file with latest version of PKHeX. As usual the software asks me if the SAV comes from FR or LG. But if I select LeafGreen PKHeX starts as I have selected FireRed (for example, showing Attack Forme of Deoxys). This happens only with PKHeX 20210401. If I choose FireRed instead, PKHeX also starts "with FireRed", so they aren't simply inverted. (I reported this bug also on GitHub)
    0 points
×
×
  • Create New...