Jump to content

Leaderboard

  1. Kaphotics

    Kaphotics

    Helpful Member


    • Points

      2

    • Posts

      6883


  2. Wanderer1391

    Wanderer1391

    Member


    • Points

      2

    • Posts

      65


  3. theSLAYER

    theSLAYER

    Administrator


    • Points

      1

    • Posts

      22394


  4. BlackShark

    BlackShark

    Contributor


    • Points

      1

    • Posts

      1577


Popular Content

Showing content with the highest reputation on 07/23/21 in all areas

  1. 2 points
  2. As a follow up to my previous post, with the help of BlackShark's tutorial on making custom e-Cards the translated Japanese e-Reader Berries are now in .bin and .raw format. This in the case of the .raw files would allow you to print out dot codes and scan them into an actual e-Reader while .bin and .raw can also be used through emulation. As with the .ecb files which are also included these are unofficial as they were never actually released in English but some people might want to use them. With thanks to BlackShark for making that tutorial as this would not have been possible without it. Translated e-Reader Berry Cards.zip
    2 points
  3. 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!
    1 point
  4. Fixed Diamond and Pearl, my mistake on the math there, all fixed!
    1 point
  5. Details for Index 77 of normal_encount and normal_encount_rigel1 and normal_encount_rigel2 (minor differences, in raid chance) Rewards for Index 77 of normal_encount and normal_encount_rigel1 and normal_encount_rigel2 (minor differences, in raid chance) Details for Index 77 of dai_encount Rewards for Index 77 of dai_encount
    1 point
×
×
  • Create New...