• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

Problems with itemx.txt (Upgrading to v16.2)

Luxray Master

Main Head for the Starlight Team
  • 60
    Posts
    8
    Years
    • Seen Jul 7, 2017
    Hello, I am new to Pokemon Essentials, and I want to say real quick that I didn't go to v16.2(cause I was too lazy), but I have a question. Whenever I boot up Pokemon Essentials, I get this:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError

    Message: Field An item that prevents weak wild Pokémon from appearing for 100 steps after its use. is not a positive integer

    File PBS/items.txt, line 1

    2,0,0,





    Compiler:411:in `csvPosInt!'

    Compiler:488:in `pbGetCsvRecord'

    Compiler:484:in `each'

    Compiler:484:in `pbGetCsvRecord'

    Compiler:1606:in `pbCompileItems'

    Compiler:1605:in `pbCompilerEachCommentedLine'

    Compiler:265:in `each_line'

    Compiler:265:in `pbCompilerEachCommentedLine'

    Compiler:262:in `open'

    Compiler:262:in `pbCompilerEachCommentedLine'

    Do you know why this might be? (btw, I only messed with an item, item526, no pokemon or other items)
     
    Last edited by a moderator:
    Hello, I am new to Pokemon Essentials, and I want to say real quick that I didn't go to v16.2(cause I was too lazy), but I have a question. Whenever I boot up Pokemon Essentials, I get this:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError

    Message: Field An item that prevents weak wild Pokémon from appearing for 100 steps after its use. is not a positive integer

    File PBS/items.txt, line 1

    2,0,0,





    Compiler:411:in `csvPosInt!'

    Compiler:488:in `pbGetCsvRecord'

    Compiler:484:in `each'

    Compiler:484:in `pbGetCsvRecord'

    Compiler:1606:in `pbCompileItems'

    Compiler:1605:in `pbCompilerEachCommentedLine'

    Compiler:265:in `each_line'

    Compiler:265:in `pbCompilerEachCommentedLine'

    Compiler:262:in `open'

    Compiler:262:in `pbCompilerEachCommentedLine'

    Do you know why this might be? (btw, I only messed with an item, item526, no pokemon or other items)
    i 100% recommend you go to v16.2 ...
    also your error is this
    "File PBS/items.txt, line 1"
     
    Thank you for this, and I am updating to v16.2 right now, but the thing with PBS items.txt/line 1 is that... that is a repel, and it was working well for so long, but now it won't work. Can you tell me what might be wrong with it?
     
    So, I've retried Pokemon essentials, and I got it to work... sort of. My new Item is STILL not working, but this time it is giving me this message:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError

    Message: Field is not a positive integer

    File PBS/items.txt, line 526

    Compiler:417:in `csvPosInt!'

    Compiler:494:in `pbGetCsvRecord'

    Compiler:490:in `each'

    Compiler:490:in `pbGetCsvRecord'

    Compiler:1612:in `pbCompileItems'

    Compiler:1611:in `pbCompilerEachCommentedLine'

    Compiler:271:in `each_line'

    Compiler:271:in `pbCompilerEachCommentedLine'

    Compiler:268:in `open'

    Compiler:268:in `pbCompilerEachCommentedLine'
    Instead of line one, it's now saying my item, but this is what I have entered:
    526,STARSHARD,Star Shard,Star Shards,1,10000,"A shard from a star meant to be held by Legendary Pokemon. It boosts the power of Star- and Dark-type moves.,0,0,6,
    And this IS in 16.2. Can you tell me why?
     
    Thank you, also, do you know why the item is not showing up in the editor? I fixed it, though it is still not showing up.
     
    I've added in your item into my project's item list just to see if it shows in the debug screen, and it does.
    There are a couple of pictures attached if you want to have a look.

    If you've added any items above it, remember to add a , at the end so that it moves onto the items underneath it. The Pokemon Essentials wikia section on defining items is quite helpful at explaining what each section does and needs.
     

    Attachments

    • [PokeCommunity.com] Problems with itemx.txt (Upgrading to v16.2)
      Debug.PNG
      17.3 KB · Views: 7
    • [PokeCommunity.com] Problems with itemx.txt (Upgrading to v16.2)
      itemList.PNG
      43.9 KB · Views: 6
    Last edited:
    Error Message when testing project, please help!

    Hi, I've just installed RPG Maker XP along with thhe newest version of Pokemon Essentials v16.2, so I'll just get to the chase.

    Whenever I try to start up the game, I am given this message.

    Exception: RuntimeError
    Message: Field An item that prevents weak wild Pokémon from appearing for 100 steps after its use. is not a positive integer
    File PBS/items.txt, line 1
    2,0,0,


    Compiler:411:in `csvPosInt!'
    Compiler:488:in `pbGetCsvRecord'
    Compiler:484:in `each'
    Compiler:484:in `pbGetCsvRecord'
    Compiler:1606:in `pbCompileItems'
    Compiler:1605:in `pbCompilerEachCommentedLine'
    Compiler:265:in `each_line'
    Compiler:265:in `pbCompilerEachCommentedLine'
    Compiler:262:in `open'
    Compiler:262:in `pbCompilerEachCommentedLine'
    Exception: RuntimeError
    Message: Field An item that prevents weak wild Pokémon from appearing for 100 steps after its use. is not a positive integer
    File PBS/items.txt, line 1
    2,0,0,

    I've looked into the program files a bit, but I couldn't figure out anything.

    Any suggestions? I'd appreciate it.
     
    I've looked into the program files a bit, but I couldn't figure out anything.

    Message: Field An item that prevents weak wild Pokémon from appearing for 100 steps after its use. is not a positive integer
    File PBS/items.txt, line 1
    Hmm, I wonder what the problem is, and where :P

    In other news, remember the guidelines for updating: Start over.
    Sounds like you're using an older version's items.txt
     
    You mean restart the program to download the program again? I've restarted RPG Maker multiple times and nothing happened. Should I try uninstalling it and then reinstalling?
     
    I mean using the downloaded files only. Your problem is being caused by using an old version of items.txt. Probably. Without having your files, all I can do is guess.
     
    I've only had one items.txt with the download. This problem was still occuring when I had just v16
     
    Not sure I have pastebin, all I can do is show you the text for repel.

    1,REPEL,Repel,1,350,An item that prevents weak wild Pokémon from appearing for 100 steps after its use.,2,0,0,

    Compared to Super Repel:
    2,SUPERREPEL,Super Repel,1,500,An item that prevents weak wild Pokémon from appearing for 200 steps after its use.,2,0,0,
     
    Yup, that's an old items.txt

    Items have plurals now. Get the latest files, that's the problem.

    Repel, for example, should be:
    1,REPEL,Repel,Repels,1,350,An item that prevents weak wild Pokémon from appearing for 100 steps after its use.,2,0,0,
     
    Runtime error

    I recently went into the editor and edited the cost of the Fresh water item. After saving the change, the editor crashed and gave me this:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError

    Message: Field An item that prevents weak wild Pokémon from appearing for 100 steps after its use. is not a positive integer

    File PBS/items.txt, line 1

    2,0,0,





    Compiler:411:in `csvPosInt!'

    Compiler:488:in `pbGetCsvRecord'

    Compiler:484:in `each'

    Compiler:484:in `pbGetCsvRecord'

    Compiler:1606:in `pbCompileItems'

    Compiler:1605:in `pbCompilerEachCommentedLine'

    Compiler:265:in `each_line'

    Compiler:265:in `pbCompilerEachCommentedLine'

    Compiler:262:in `open'

    Compiler:262:in `pbCompilerEachCommentedLine'

    Now I can't reopen the editor, playtest nor play the game. I don't know what else to do. I've tried deleting line 1 and that didnt change anything. I've tried using newly downloaded item.txt files and i still get the same thing. I just don't know what to do at this point.

    Attached is my items file. Can someone please help me?
     

    Attachments

    • items.txt
      31.2 KB · Views: 7
    If you're using version 16 of Essentials, the items.txt file requires a plural form of the name as well. For example:
    Code:
    1,REPEL,Repel,[COLOR=Red]Repels,[/COLOR]1,350,An item that prevents weak wild Pok?mon from appearing for 100 steps after its use.,2,0,0,
     
    Back
    Top