• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Scripting Question] I'm new to ruby scripting, I got this error, what to do?

  • 8
    Posts
    12
    Years
    • Seen Sep 8, 2024
    Hi everyone, I'm super new to RMXP and Pokemon essentials.
    I'm slowly starting to understand what some thing mean, and ANY help would be much appreciated.

    So, I'm trying to change some scripts values on the settings script;
    I tried enabling debug menu, changing the shiny rate and the overworld poison damage. However, even by just turning them form false to true or changing the number on the shiny chances, I get this error when trying to open the game, even on playtest (F12 key):


    Message: cannot convert Regexp into Integer

    Compiler
    :361:in `[]'

    Compiler
    :361:in `csvquote'

    Editor_SaveData
    :108:in `pbSaveMoveData'

    Editor_SaveData
    :74:in `each'

    Editor_SaveData
    :74:in `pbSaveMoveData'

    Editor_SaveData
    :70:in `open'

    Editor_SaveData
    :70:in `pbSaveMoveData'

    Editor_SaveData
    :1386:in `pbSaveAllData'

    Compiler
    :4484


    So, I went tho those lines, and saw some codes/scripts, but I can't figure it out why they are giving said errors. They don't mention the Debug, Shiny or Poison damage variables whatsoever, neither they seem dependant on it.
    It says that it cannot convert into Integer. However, I didn't touch ANY of those lines under those sessions. All I did is go there once I got the error and read them, trying to understand what is wrong.

    Is this a normal error? Did I screw up? Should I have left those variables under settings untouched?

    Guys, any, literally, ANY help is appreciated. If you need any further info, please let me know.
    Thanks in advance :)
     
    Is it possible that you made changes in one of the PBS files that are causing this error? That error looks like it comes from trying to compile moves.txt to moves.dat (see around Editor_SaveData line 108)
     
    Is it possible that you made changes in one of the PBS files that are causing this error? That error looks like it comes from trying to compile moves.txt to moves.dat (see around Editor_SaveData line 108)

    OOOOOHHHHHH
    I'm gonna try to delete and get the PBS folder back form the Pokemon Essentials zip file as soon as I get home.
    Thanks fam :]
     
    Back
    Top