View Single Post
  #315    
Old September 15th, 2012 (2:17 PM).
Snarkbutt Snarkbutt is offline
     
    Join Date: Aug 2012
    Gender: Male
    Posts: 8
    I can't give much detail on the context of this happening because it happens erratically in many different situations. This error message keeps popping up and crashing the game:

    Quote:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: NoMethodError

    Message: undefined method `[]' for nil:NilClass

    PokemonField:1195

    PokemonField:1192:in `call'

    PBEvent:54:in `trigger'

    PBEvent:49:in `each'

    PBEvent:49:in `trigger'

    Game_Character_2:67:in `update_move'

    Game_Character_2:6:in `update_old2'

    Walk_Run:92:in `update'

    Game_Event_:247:in `update'

    Game_Map_:357:in `update'



    This exception was logged in

    C:\Users\Hmnyoobadoo\Saved Games/Pokemon Essentials/errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
    It has so far only happened in outdoor maps, and most often happens on certain maps near where they transition to another map. At first it just happened occasionally while walking around, but I recently put an item near (not on) the edge of one of the problem maps, and a similar message appears when I try to pick it up. The message is the same except for the first few lines:


    Quote:
    ...
    Exception: RuntimeError

    Message: Script error within event 9, map 75 (Route982):

    Exception: NoMethodError

    Message: Section082:1195undefined method `[]' for nil:NilClass

    ***Full script:

    Kernel.pbItemBall(PBItems::GREATBALL)

    Interpreter:243:in `pbExecuteScript'

    PokemonField:1192:in `call'

    PBEvent:54:in `trigger'
    ...
    This happened a few times in the unmodified version, but it's hard to recreate in a different project because it seems to have hotspots. I have no idea what it is about these maps that makes it happen more often.



    Other minor bugs:

    If I use debug mode to faint all my party pokemon, the player will not black out, and trying to enter a battle and send out a Pokemon will break the game.
    (I did this while trying to test a restarting script)

    If a ledge tile is adjacent to water, the play can surf over it; they will hop over the ledge and keep surfing on the ground. Happens if away from the water is down the ledge.

    Pokemon can switch out after being hit by rock tomb

    Mirror Coat reflected the damage from an attack that missed.

    SUCKERPUNCH worked when I switched the target Pokemon out (not readying an attack). I'm going to keep it that way for my game because I like it, but I don't think that is supposed to happen.
    Reply With Quote