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

Dungions

pokemonmasteraaron

The blind Pokémon Master!
323
Posts
13
Years
  • Since I can't map due to my blindness, I wanted to check out the dungeons and see what I could do with them.
    So, I created a new essentials project by copy&pasting the new essentials.
    Everything works there, that does not cause my problem.
    I created an entry in metadata.txt, and added dungeon=true to the map data.
    That shouldn't house the problem.
    Then, I whent to encounters.txt and defined the encounters.
    Quote text file
    25,10,10
    Cave
    SANDSHREW,2
    SANDSHREW,2
    RATTATA,3
    DIGLETT,3
    GEODUDE,2
    ZUBAT,2
    ZUBAT,2
    ZUBAT,2
    ZUBAT,2
    ZUBAT,3
    WOOBAT,3
    NOSEPASS,4
    End quote.
    I do not think that houses the problem, either.
    I ran editor.exe.
    then I ran rmxp, and it plays the exit door.wav sound effect and gives me this error.
    ---------------------------
    Random new project
    ---------------------------
    Script 'RandomDungeons' line 354: SystemStackError occurred.

    stack level too deep
    ---------------------------
    OK
    ---------------------------
    This might help as well.
    tileset 007 dungeon
    Width 200
    Height 150
    steps average 30 (I don't know what that does but I don't think it has any importence in essentials.
     
    1,748
    Posts
    14
    Years
  • Stack level too deep usually means that something can't run properly.
    (movements/sounds/animations/ect.)

    line 354 error I'll look at this alright.
     

    pokemonmasteraaron

    The blind Pokémon Master!
    323
    Posts
    13
    Years
  • Alright than.
    The information you gave me might be helpful.

    Okay, I think the problem was with the dementions.
    Apparently, they got changed to 199 and 149 with out my knowledge.
    Unfortunately, this error replaces it.
    ---------------------------
    Dungeon Project
    ---------------------------
    Script 'PokemonOrgBattle' line 6: SystemStackError occurred.

    stack level too deep
    ---------------------------
    OK
    ---------------------------

    The line it refers to is
    dup.shuffle!
     
    Last edited:
    1,748
    Posts
    14
    Years
  • Alright than.
    The information you gave me might be helpful.

    Okay, I think the problem was with the dementions.
    Apparently, they got changed to 199 and 149 with out my knowledge.
    Unfortunately, this error replaces it.
    ---------------------------
    Dungeon Project
    ---------------------------
    Script 'PokemonOrgBattle' line 6: SystemStackError occurred.

    stack level too deep
    ---------------------------
    OK
    ---------------------------

    The line it refers to is
    dup.shuffle!

    try replacing with this:

    Code:
    class Array
     def shuffle
      self.clone.shuffle!
     end
     def ^(other) # xor of two arrays
      return (self|other)-(self&other)
     end
     def shuffle!
      return self if self.length<2
      i=self.length-1; while i>=1
       other=rand(i+1)
       if i!=other
        obj=self[i]; self[i]=self[other]; self[other]=obj
       end
      i-=1;end
      return self
     end
    end

    I found this in one of my old projects of converting the maze generator to other RPG maker projects. (works for me)
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    A dungeon is drawn using 3 different autotiles: the floor, the walls and the darkness outside. You probably just chose Red's charset instead of the correct autotile.

    Tileset number 7 is already set up to be used in a dungeon map.

    I get the same errors as you do; they're caused by the maps being too big, meaning the scripts get too recursive. I tried a map size of 150x150, and that seems to work just fine. I think a map size of 150x150 is plenty big enough anyway; it translates to at least 8x8 chambers.
     
    Back
    Top