Error Error filling boxes

Started by Parritoso 2 Weeks Ago 2:29 PM
  • 128 views
  • 1 replies
Seen 9 Hours Ago
Posted 4 Days Ago
37 posts
1.1 Years
It does nothing, I just installed the pbs Gen6-8 that served as the basis for pokemon Zero.
Spoiler:
apart also grab the effect of the moves from the code of that game.

But now when I try to fill the boxes to see all the new pokemon, I get the following error:
Spoiler:
[Pokémon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method `[]=' for nil:NilClass
Pokemon_Storage:161:in `[]='
Debug_Menu:474:in `pbDebugMenuActions'
Debug_Menu:466:in `each'
Debug_Menu:466:in `pbDebugMenuActions'
Debug_Menu:1063:in `pbDebugMenu'
Debug_Menu:1029:in `loop'
Debug_Menu:1065:in `pbDebugMenu'
ModularMenu:462
ModularMenu:461:in `pbFadeOutIn'
ModularMenu:461
Code
Spoiler:
def []=(x,y,value)
    if x==-1
      self.party[y] = value
    else
      @boxes[x][y] = value <-------Line 161 in Pokemon_Storage
    end
  end

  when "fillboxes"
    $Trainer.formseen     = [] if !$Trainer.formseen
    $Trainer.formlastseen = [] if !$Trainer.formlastseen
    added = 0; completed = true
    dexdata = pbOpenDexData
    formdata = pbLoadFormsData
    for i in 1..PBSpecies.maxValue<-------Line 466 in Debug_Menu
      if added>=STORAGEBOXES*30
        completed = false; break
      end
      cname = getConstantName(PBSpecies,i) rescue nil
      next if !cname
      pkmn = PokeBattle_Pokemon.new(i,50,$Trainer)
      $PokemonStorage[(i-1)/$PokemonStorage.maxPokemon(0),
                      (i-1)%$PokemonStorage.maxPokemon(0)] = pkmn<-------Line 474 in Debug_Menu

def pbDebugMenu(showall=true)
  commands = pbDebugMenuCommands(showall)
  viewport = Viewport.new(0,0,Graphics.width,Graphics.height)
  viewport.z = 99999
  sprites = {}
  sprites["textbox"] = Kernel.pbCreateMessageWindow
  sprites["textbox"].letterbyletter = false
  sprites["cmdwindow"] = Window_CommandPokemonEx.new(commands.list)
  cmdwindow = sprites["cmdwindow"]
  cmdwindow.x        = 0
  cmdwindow.y        = 0
  cmdwindow.width    = Graphics.width
  cmdwindow.height   = Graphics.height-sprites["textbox"].height
  cmdwindow.viewport = viewport
  cmdwindow.visible  = true
  sprites["textbox"].text = commands.getDesc(cmdwindow.index)
  pbFadeInAndShow(sprites)
  ret = -1
  refresh = true
  loop do<-------Line 1029 in Debug_Menu
    loop do
      oldindex = cmdwindow.index
      cmdwindow.update
      if refresh || cmdwindow.index!=oldindex
        sprites["textbox"].text = commands.getDesc(cmdwindow.index)
        refresh = false
      end
      Graphics.update
      Input.update
      if Input.trigger?(Input::B)
        parent = commands.getParent
        if parent
          commands.currentList = parent[0]
          cmdwindow.commands = commands.list
          cmdwindow.index = parent[1]
          refresh = true
        else
          ret = -1
          break
        end
      elsif Input.trigger?(Input::C)
        ret = cmdwindow.index
        break
      end
    end
    break if ret<0
    cmd = commands.getCommand(ret)
    if commands.hasSubMenu?(cmd)
      commands.currentList = cmd
      cmdwindow.commands = commands.list
      cmdwindow.index = 0
      refresh = true
    else
      return if pbDebugMenuActions(cmd,sprites,viewport)<-------Line 1063 in Debug_Menu
    end
  end<-------Line 1065 in Debug_Menu

# Debug Menu
MenuHandlers.addEntry(:DEBUG,_INTL("Debug"),"menuDebug",proc{|menu|
  pbFadeOutIn(99999) { <-------Line 461 in ModularMenu
    pbDebugMenu<-------Line 462 in ModularMenu
    menu.refresh
  }
},proc{ return $DEBUG })

Does anyone know why this happens?
It only happens when I increase the number of boxes, from 24, the default amount, to any amount (25, 26,27,28, etc ...)