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

Some questions

Ramond Hikari

- Lonely Shooting Star -
74
Posts
12
Years
  • When I playtest my project, it compiles the data, and when it hit the Processing map X, the error pops. The first popup is this:

    [EOFError, "End of file reached", ["Section058:2098:in `oldload'", "Section058:2098:in `load'", "Section146:2798:in `load_data'", "Section146:2798:in `getMap'", "Section146:2959:in `pbCompileTrainerEvents'", "Section146:2957:in `each'", "Section146:2957:in `pbCompileTrainerEvents'", "Section146:3976:in `pbCompileAllData'", "Section146:4071"]]

    And the next popup is:

    Exception: NoMethodError
    Message: undefined method `events' for #<String:0xb8aced8>
    Compiler:2962:in `pbCompileTrainerEvents'
    Compiler:2957:in `each'
    Compiler:2957:in `pbCompileTrainerEvents'
    Compiler:3976:in `pbCompileAllData'
    Compiler:4071

    I don't know how to fix this error. Can anyone help me?


    By the way, I also want to ask if the walking/running speed can be adjusted by modifying a script sector?

    Thanks.
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen today
    1. I don't know. Try remaking the problem map.

    2. Yes. See the wiki.
     

    Ramond Hikari

    - Lonely Shooting Star -
    74
    Posts
    12
    Years
  • Thanks Maruno. Solved.
    Oh, another problem shows up.
    Somehow, the PokeDex keeps showing the Kanto Dex, even I have unlocked National with pbUnlockDex and locked Kanto with pbLockDex(0).

    Any solutions? Thanks.
     

    FL

    Pokémon Island Creator
    2,449
    Posts
    13
    Years
    • Seen today
    For my experience EOF generally means corruption. Try to replace the map with other (like the Essentials base kit) and test. Make sure that you make backups.
     

    Ramond Hikari

    - Lonely Shooting Star -
    74
    Posts
    12
    Years
  • Okay, I deleted the error map, and the problem is solved.
    But the pokedex still not alter no matter what I do. Any suggestions?
     

    FL

    Pokémon Island Creator
    2,449
    Posts
    13
    Years
    • Seen today
    So you can't access National Dex? Try Rayd12smitty post using pbUnlockDex() without using pbLockDex. Make sure that you have, at least, one non-kanto pokémon as seen.
     

    Ramond Hikari

    - Lonely Shooting Star -
    74
    Posts
    12
    Years
  • So you can't access National Dex? Try Rayd12smitty post using pbUnlockDex() without using pbLockDex. Make sure that you have, at least, one non-kanto pokémon as seen.

    Yes, I tried it, but no, it still displayed Kanto Dex.
    How could I make the National Dex the default one?
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen today
    You've been given all the right instructions, so it's probably something silly you've done.

    Bear in mind that the name of a Dex has no bearing on its contents. It may be called "Kanto Dex", but it actually contains the National Dex. This is a simple matter of editing the array of Dex names in Settings.

    Before you do that, though, you should pay attention to how that array works. All the Regional Dexes come first, and the National Dex at the end. The number of Regional Dexes depends on the maximum number of numbers in the RegionalDexes lines in pokemon.txt. That is, one line could read RegionalDexes=42 and another could read RegionalDexes=17,99, so the maximum would be 2 Regional Dexes. The first thing you need to do is decide how many Regional Dexes you have defined, and then make sure the array of Dex names is arranged accordingly.

    If that's not the case, then you're simply doing something wrong and not telling us (such as using a way-old version of Essentials which doesn't readily support Regional Dexes).
     

    FL

    Pokémon Island Creator
    2,449
    Posts
    13
    Years
    • Seen today
    Yes, I tried it, but no, it still displayed Kanto Dex.
    How could I make the National Dex the default one?
    A good alternative (idea by Maruno): Use a text editor with find and replace feature (to use replace all) like Microsoft Word. Replace the word RegionalDexes in pokemon.txt with something without effect like Dave, so the Kanto/Johto Dex will be ignored.
     

    Ramond Hikari

    - Lonely Shooting Star -
    74
    Posts
    12
    Years
  • Oh, I think I have found the cause: Venom's menu script.
    The full script is here:

    Spoiler:


    So is there a way to modify this and make the NationalDex show?
     
    Last edited:

    FL

    Pokémon Island Creator
    2,449
    Posts
    13
    Years
    • Seen today
    Try to change

    Code:
    pbFadeOutIn(99999) {
    scene=PokemonPokedexScene.new
    screen=PokemonPokedex.new(scene)
    screen.pbStartScreen
    @scene.pbRefresh
    @scene.pbDrawPanels(commands)
    }

    to

    Code:
            if DEXDEPENDSONLOCATION
              pbFadeOutIn(99999) {
                 scene=PokemonPokedexScene.new
                 screen=PokemonPokedex.new(scene)
                 screen.pbStartScreen
                 @scene.pbRefresh
              }
            else
              if $PokemonGlobal.pokedexViable.length==1
                $PokemonGlobal.pokedexDex=$PokemonGlobal.pokedexViable[0]
                $PokemonGlobal.pokedexDex=-1 if $PokemonGlobal.pokedexDex==$PokemonGlobal.pokedexUnlocked.length-1
                pbFadeOutIn(99999) {
                   scene=PokemonPokedexScene.new
                   screen=PokemonPokedex.new(scene)
                   screen.pbStartScreen
                   @scene.pbRefresh
                }
              else
                pbLoadRpgxpScene(Scene_PokedexMenu.new)
              end
            end
     

    Ramond Hikari

    - Lonely Shooting Star -
    74
    Posts
    12
    Years
  • Try to change

    Code:
    pbFadeOutIn(99999) {
    scene=PokemonPokedexScene.new
    screen=PokemonPokedex.new(scene)
    screen.pbStartScreen
    @scene.pbRefresh
    @scene.pbDrawPanels(commands)
    }

    to

    Code:
            if DEXDEPENDSONLOCATION
              pbFadeOutIn(99999) {
                 scene=PokemonPokedexScene.new
                 screen=PokemonPokedex.new(scene)
                 screen.pbStartScreen
                 @scene.pbRefresh
              }
            else
              if $PokemonGlobal.pokedexViable.length==1
                $PokemonGlobal.pokedexDex=$PokemonGlobal.pokedexViable[0]
                $PokemonGlobal.pokedexDex=-1 if $PokemonGlobal.pokedexDex==$PokemonGlobal.pokedexUnlocked.length-1
                pbFadeOutIn(99999) {
                   scene=PokemonPokedexScene.new
                   screen=PokemonPokedex.new(scene)
                   screen.pbStartScreen
                   @scene.pbRefresh
                }
              else
                pbLoadRpgxpScene(Scene_PokedexMenu.new)
              end
            end

    Thanks, FL!
    I have added pbSetViableDexes after endscene=true, then it works perfectly!
     
    Back
    Top