• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our next favorite protagonist poll is now up, this time for the Almia region from Pokémon Ranger 2! This poll is only lasting 2 days, so don't forget to cast your vote for your favorite protagonist!
  • 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.

Errors in item-giving?

  • 2
    Posts
    9
    Years
    • Seen Jul 4, 2015
    I've been working with Pokemon Essentials lately, and I must say i'm very impressed. I've been able to make a lot of headway ino nly a couple of days, but i've came across a game-crashing error-every time I put in the command Kernel.pbReceiveItem(PBItems::INSERT ITEM HERE), I've been met with an error. Specifically when testing with the item Mystic Water, I got this:

    Exception: RuntimeErrorMessage: Script error within event 14, map 10 (Nectar Pokemon Center):Exception: NoMethodErrorMessage: (eval):one:in `pbExecuteScript'undefined method `pbRecieveItem' for Kernel:Module***Full script:Kernel.pbRecieveItem(
    PBItems::MYSTICWATER,1)
    Interpreter:243:in `pbExecuteScript'Interpreter:1606:in `eval):one:in'Interpreter:243:in `pbExecuteScript'Interpreter:1606:in `command_355'Interpreter:494:in `execute_command'Interpreter:193:in `update'Interpreter:106:in `loop'Interpreter:198:in `update'Scene_Map:103:in `update'Scene_Map:101:in `loop'Interpreter:276:in `pbExecuteScript'Interpreter:1606:in `command_355'Interpreter:494:in `execute_command'Interpreter:193:in `update'Interpreter:106:in `loop'Interpreter:198:in `update'Scene_Map:103:in `update'Scene_Map:101:in `loop'Scene_Map:114:in `update'Scene_Map:68:in `main'

    I still have no idea what is causing this error, even after research, looking up similar questions to this one and making several spelling variations from as stated on the Pokemon Essentials wiki. I haven't modified the data of Pokemon essentials besides the maps and events within, and i'm using version 15. Does anyone have any idea on what the problem could be? Even if it's just me making a silly mistake, I would greatly appreciate a response.
    PS: Where it says (eval):one, that's really a 1, not one, it's just that I keep getting an Aipom icon whenever I type :1:.
    Thanks!
     
    It may just be how you've typed out "Kernel.pbRecieveItem(PBItems::MYSTICWATER,1)"
    [PokeCommunity.com] Errors in item-giving?

    Try putting the part after "Kernel." on the next line.

    Or alternatively you can open up the text box, go to the root folder of your project and run "extendtext.exe" as administrator. This should extend the text box and let you put the whole of the script on one line without any errors.
     
    Ah, silly me... t'was indeed the spelling. Thanks for the help and clarification, sorry for the stupid error on my part!
     
    Back
    Top