• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Error] Pokemon Essentials v19 Mystery Gift error

Screen Lady

Glitch Hunter
5
Posts
2
Years
  • First of all, sorry if this isn't the right place to post this. I only just signed up for this website to look for help.
    Secondly, this error happens no matter if I use plugins or not. (It even happens on a fresh install of v19 for instance, with no modifications)
    I'm quite confused on what's causing it, as I'm rather new to RPGMaker things and basically haven't touched any of the Mystery Gift scripts besides the link used to access event gifts itself.

    From what I know, everything is set up correctly.
    The gift is stored online, I've used both http (though this makes the game fail to detect the gift) and https (which does detect the gift, then throw the error)

    Here is the error:
    [2022-02-15 21:21:22 -0500]
    [Pokémon Essentials version 19.1]

    Exception: Zlib::DataError
    Message: incorrect header check

    Backtrace:
    290:UI_MysteryGift:342:in `inflate'
    290:UI_MysteryGift:342:in `pbMysteryGiftDecrypt'
    290:UI_MysteryGift:255:in `pbDownloadMysteryGift'
    280:UI_Load:316:in `block (2 levels) in pbStartLoadScreen'
    080:MessageConfig:566:in `pbFadeOutIn'
    280:UI_Load:316:in `block in pbStartLoadScreen'
    280:UI_Load:303:in `loop'
    280:UI_Load:303:in `pbStartLoadScreen'
    372:Main:6:in `main'
    372:Main:34:in `mainFunctionDebug'


    Anyone got any ideas? Again, sorry for posting this. This error happens both in and out of debug mode, and with or without additional scripts. I'm ready to be yelled at for whatever obvious flaws are present here.
     
    Last edited:

    DrewSigma67

    T-H-E T-O-X-I-C D-O-C-U-M-E
    15
    Posts
    2
    Years
  • From what I know, everything is set up correctly.
    The gift is stored online, I've used both http (though this makes the game fail to detect the gift) and https (which does detect the gift, then throw the error)

    Here is the error:
    [2022-02-15 21:21:22 -0500]
    [Pokémon Essentials version 19.1]

    Exception: Zlib::DataError
    Message: incorrect header check

    Backtrace:
    290:UI_MysteryGift:342:in `inflate'
    290:UI_MysteryGift:342:in `pbMysteryGiftDecrypt'
    290:UI_MysteryGift:255:in `pbDownloadMysteryGift'
    280:UI_Load:316:in `block (2 levels) in pbStartLoadScreen'
    080:MessageConfig:566:in `pbFadeOutIn'
    280:UI_Load:316:in `block in pbStartLoadScreen'
    280:UI_Load:303:in `loop'
    280:UI_Load:303:in `pbStartLoadScreen'
    372:Main:6:in `main'
    372:Main:34:in `mainFunctionDebug'


    Anyone got any ideas? Again, sorry for posting this. This error happens both in and out of debug mode, and with or without additional scripts. I'm ready to be yelled at for whatever obvious flaws are present here.

    I'd say the problem is with the gift itself, that "Zlib::DataError" makes it feel like you're using a wrong kind of compression. Try changing the settings for that, no need to go for ultra all the time, hope that helps.
     

    Screen Lady

    Glitch Hunter
    5
    Posts
    2
    Years
  • I'd say the problem is with the gift itself, that "Zlib::DataError" makes it feel like you're using a wrong kind of compression. Try changing the settings for that, no need to go for ultra all the time, hope that helps.


    Hey, sorry if this sounds stupid but how do I change the compression then? Thank you for responding too by the way!
    I made the gift in-game and then tried putting the .txt file of the gift on Google Drive during one attempt, and the text from the file itself in Pastebin during my second attempt to make it work. Is there some kind of setting I need to tinker with for the game to generate the Mystery Gift contents differently?
     

    DrewSigma67

    T-H-E T-O-X-I-C D-O-C-U-M-E
    15
    Posts
    2
    Years
  • Hey, sorry if this sounds stupid but how do I change the compression then? Thank you for responding too by the way!
    I made the gift in-game and then tried putting the .txt file of the gift on Google Drive during one attempt, and the text from the file itself in Pastebin during my second attempt to make it work. Is there some kind of setting I need to tinker with for the game to generate the Mystery Gift contents differently?

    Alright then, let's see what I can do. Could you share that Pastebin URL so I can see if there's something wrong with it?
     

    Screen Lady

    Glitch Hunter
    5
    Posts
    2
    Years
  • Alright then, let's see what I can do. Could you share that Pastebin URL so I can see if there's something wrong with it?

    Sure, can do. This should just be for 10 Premier Balls, I made it just now to test if gifts work for items instead of Pokemon.
    It causes the same error I listed above, so this should work?
    https://pastebin.com/KUXZy9nw

    This one is supposed to be for a Shiny Eevee, and it too causes the same error.
    https://pastebin.com/9jN2eRG1
     

    DrewSigma67

    T-H-E T-O-X-I-C D-O-C-U-M-E
    15
    Posts
    2
    Years
  • Sure, can do. This should just be for 10 Premier Balls, I made it just now to test if gifts work for items instead of Pokemon.
    It causes the same error I listed above, so this should work?
    https://pastebin.com/KUXZy9nw

    This one is supposed to be for a Shiny Eevee, and it too causes the same error.
    https://pastebin.com/9jN2eRG1

    Ah, it's not the "Raw" Url, perhaps that's why. In case you don't know what that is, go to your link, there will be multiple options included in the ribbon like: raw, download, clone, embed, print, etc. Click the raw, it'll take you to a page, then copy THAT Url, and put it in the script. In case the issue persists, this thread might be helpful, just go down a few posts.



    Edit 1: Additional Suggestions: Make sure you have Pokemon Essentials updated to v19.1. Try including that "https://www." in the beginning of the link. Or try placing it in dropbox since that's what the wiki also suggests.
     
    Last edited:

    Screen Lady

    Glitch Hunter
    5
    Posts
    2
    Years
  • Ah, it's not the "Raw" Url, perhaps that's why. In case you don't know what that is, go to your link, there will be multiple options included in the ribbon like: raw, download, clone, embed, print, etc. Click the raw, it'll take you to a page, then copy THAT Url, and put it in the script. In case the issue persists, this thread might be helpful, just go down a few posts.



    Edit 1: Additional Suggestions: Make sure you have Pokemon Essentials updated to v19.1. Try including that "https://www." in the beginning of the link. Or try placing it in dropbox since that's what the wiki also suggests.

    Oh my, I can't believe it was that obvious! Thank you so very much, everything is working as intended now!
     
    Back
    Top