• 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!
  • 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.

New Pokemon.txt list error

  • 4
    Posts
    12
    Years
    • Seen Jun 22, 2012
    So I found out about this place and am fairly new to coding via rpgmaker but I think I am catching on pretty fast. I created a list of 150 pokemon that I enjoy from the 4 generations, and deleted everyone not from that list from the pokemon.txt file. I then rearranged the pokemon in the order suitable for my storyline (Creepypasta based game) and attempted to load the game. Now the first time I did this I changed the section number and it worked fine, however it changed the sprite association. This time I left the section number [in these brackets] as is, and only changed the regional number for the pokedex value. Now it will not load. Through the error log I fixed a few problems it had here is my latest:

    EException: RuntimeError
    Message: Bad line syntax (expected syntax like XXX=YYY)
    File PBS/pokemon.txt, section 73, key WildItemRare
    POISONBARB

    Compiler:1663:in `pbEachFileSectionEx'
    Compiler:1646:in `each_line'
    Compiler:1646:in `pbEachFileSectionEx'
    Compiler:1684:in `pbEachFileSection'
    Compiler:2271:in `pbCompilePokemonData'
    Compiler:2269:in `open'
    Compiler:2269:in `pbCompilePokemonData'
    Compiler:4050:in `pbCompileAllData'
    Compiler:4174


    ------------------

    Now I'm fairly new, but from a previous error I troubleshot myself, I Was able to learn that the sectio number is in the brackets so I went there and found this:

    [73]
    Name=Tentacruel
    InternalName=TENTACRUEL
    Type1=WATER
    Type2=POISON
    BaseStats=80,70,65,100,80,120
    GenderRate=Female50Percent
    GrowthRate=Slow
    BaseEXP=205
    EffortPoints=0,0,0,0,0,2
    Rareness=60
    Happiness=70
    Abilities=CLEARBODY,LIQUIDOOZE
    HiddenAbility=RAINDISH
    Moves=1,POISONSTING,1,SUPERSONIC,1,CONSTRICT,5,SUPERSONIC,8,CONSTRICT,12,ACID,15,TOXICSPIKES,19,BUBBLEBEAM,22,WRAP,26,ACIDSPRAY,29,BARRIER,34,WATERPULSE,38,POISONJAB,43,SCREECH,47,HEX,52,HYDROPUMP,56,SLUDGEWAVE,61,WRINGOUT
    EggMoves=
    Compatibility=9,9
    StepsToHatch=5355
    Height=1.6
    Weight=55.0
    Color=Blue
    Habitat=Sea
    RegionalNumbers=52
    Kind=Jellyfish
    Pokedex=It lives in complex rock formations on the ocean floor and traps prey using its 80 tentacles. Its red orbs glow when it grows excited or agitated.
    WildItemRare=POISONBARB
    BattlerPlayerY=0
    BattlerEnemyY=11
    BattlerAltitude=7
    Evolutions=

    ____________________________________

    I wasnt sure what the issue is so the first thing i did was copy and paste exactly what it said for tentacool in that category. that didnt work so i changed it to "WildItemRare" as the error log said because before that it was wilditemuncommon. Neither worked and I am still getting the error.

    any advice on this, or programming a pokemon game in general would be appreciated.
     
    The funny thing about pokemon.txt is, it tells you there is a problem with some lines, BUT, the problem is else where, usually there is a capitalisation error, maybe in multiple places, check all Pokémon above Tentacool (EDIT: Tentacruel, damn haha) for any of that, without seeing your txt file, we can't help on that
     
    I did a search for all rare item lines and edited them in to uncommon items. It didnt change anything. However if I edited the line in 73 to say WildItemRare=MASTERBALL the masterball showed up in the next error log.

    I am attempting to attach the pokemon.txt file. If anyone thinks they can help without adding or removing any pokemon thatd be swell.
     
    Additional notes: I removed tentacruel from the list indicating he was the problem, however, when I run editor and went ahead and said [72] now has the same error (which is interesting because logically if 72 had the error it would have said that before reading 73). I deleted entry 72 and it said the next entry behind that (66 I believe) also had the same problem, leading me to believe somewhere in the list that it is supposed to be there, however I have already deleted all lines that said wilditemrare
     
    I can't see what's your problem other than all the Pokémon not being numbered properly... Although, if you remove every Pokémon after Alakazam, the error disappears... I would say either start again, adding one Pokémon at a time aftr Alakazam, or, removing one Pokémon at a time but pasting into another txt file so you don't lose them, again, after Alakazam, until you find the Pokémon that stops erroring... Also, Tentacruel has strange regional numbers to the rest... Pichu has an extra comma before spikey-eared.
     
    Could you please explain what part is improperly numbered? The part in the bracket or the regional number?

    If the bracket, as i mentioned, I left their original numbers in tact. Changing them to be sequential made them change their sprite association for the battlers. Attempting to change the number in the name of the battler images caused it to change in to the original sprite with that number.

    If its the regional number, I numbered them 1 to 150 based on the 150 pokemon I am keeping in the game.

    EDIT: Tentacruels regional number and other data was off due to me copy pasting the original to try and fix any mistakes

    ANOTHER EDIT: replacing with the original pokemon file fixes everything, despite most of my changes being only removing most of the pokemon from the list, and the regional numbers, and in some cases evolutions. Is there a way I could just edit the pokedex to include the 150 and number them the way i see fit without removing all the other pokemon, but not having them be part of gameplay?

    For those who have a similar problem in creating a list of only the pokemon they wish to appear: I was able to solve this by using the original text file, and just changing the regional number of all the pokemon that I want in the game. The tohers you just have to be careful not to program in to the game. anyone who knows an easier way is free to share.
     
    Last edited:
    No, the easiest way I have seen is by changing the regional numbers, you should probably have done this from the start, and yes, every number in [###] those brackets, will change it's sprites... The best and easiest way is to change regional numbers, I think this is one of the reasons Maruno added this function, among others.

    At least the problem is fixed.
     
    Regional numbers already existed (although I made it work properly and added the ability to switch Dexes). Changing them is indeed the easiest way to go about rearranging the Pokédex, as it means you don't need to rename the hundreds of sprite/icon/cry files.

    Remember that you can do this even if you want a National Dex. Just set up the National Dex as a Regional Dex called "National Dex".
     
    Back
    Top