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

[Error] HELP ME PLEASE

Ash grey

Banned
  • 3
    Posts
    4
    Years
    • Seen Apr 30, 2021
    guys anyone please help me
    i am a bigginer and i just finished players house
    i had a plant inside the house and its bottom part was not passable
    i go into database tilesets and then i changed passage to 0
    after that i am getting this error when i am playtesting
    i tryed to reverse what i did but still this error
    anyone please help
    youll be a life saver
    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pokémon Essentials version 18.1]

    Exception: NoMethodError

    Message: undefined method `>' for nil:NilClass



    Backtrace:

    Game_Map:308:in `terrain_tag'

    Game_Map:304:in `each'

    Game_Map:304:in `terrain_tag'

    MapFactory:215:in `getTerrainTag'

    PField_Field:606:in `pbGetTerrainTag'

    Game_Player_Visuals:26:in `pbCanRun?'

    Game_Player_Visuals:44:in `character_name'

    Sprite_WaterReflection:55:in `update'

    Sprite_WaterReflection:19:in `initialize'

    Sprite_Character:69:in `new'



    This exception was logged in

    C:\Users\USERNAME\Saved Games\Pokemon Essentials\errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
     
    guys anyone please help me
    i am a bigginer and i just finished players house
    i had a plant inside the house and its bottom part was not passable
    i go into database tilesets and then i changed passage to 0
    after that i am getting this error when i am playtesting
    i tryed to reverse what i did but still this error
    anyone please help
    youll be a life saver

    <Error>

    So, I read a bit the code that raises your error: it's this function:
    Code:
      def terrain_tag(x,y,countBridge=false)
        return 0 if !valid?(x, y)
        for i in [2, 1, 0]
          tile_id = data[x, y, i]
          terrain = @terrain_tags[tile_id]
          next if !countBridge && PBTerrain.isBridge?(terrain) && $PokemonGlobal.bridge==0
          return terrain if terrain > 0 && terrain!=PBTerrain::Neutral
        end
        return 0
      end
    I need more information.

    Find the above code, and replace with this code:
    Code:
      def terrain_tag(x,y,countBridge=false)
        return 0 if !valid?(x, y)
        for i in [2, 1, 0]
          tile_id = data[x, y, i]
          terrain = @terrain_tags[tile_id]
          next if !countBridge && PBTerrain.isBridge?(terrain) && $PokemonGlobal.bridge==0
          begin
          return terrain if terrain > 0 && terrain!=PBTerrain::Neutral
          rescue 
            raise _INTL("DEBUG: Error with: map_id={1}, x={2}, y={3}, i={4}, tile_id={5}, @terrain_tags.length={6}", @map_id, x, y, i, tile_id, @terrain_tags.length)
          end 
        end
        return 0
      end
    Then run your game again. It should raise a new error; post a screenshot of that error here.
     
    Back
    Top