- 57
- Posts
- 5
- Years
- Seen Apr 17, 2022
It does nothing, I just installed the (broken link removed) that served as the basis for pokemon Zero.
But now when I try to fill the boxes to see all the new pokemon, I get the following error:
Code
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 ...)
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:
Code:
[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:
Code:
def []=(x,y,value)
if x==-1
self.party[y] = value
else
@boxes[x][y] = value [B]<-------Line 161 in Pokemon_Storage[/B]
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[B]<-------Line 466 in Debug_Menu[/B]
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[B]<-------Line 474 in Debug_Menu[/B]
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<-------[B]Line 1029 in Debug_Menu[/B]
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)<-------[B]Line 1063 in Debug_Menu[/B]
end
end<-------[B]Line 1065 in Debug_Menu[/B]
# Debug Menu
MenuHandlers.addEntry(:DEBUG,_INTL("Debug"),"menuDebug",proc{|menu|
pbFadeOutIn(99999) { <-------[B]Line 461 in ModularMenu[/B]
pbDebugMenu<-------[B]Line 462 in ModularMenu[/B]
menu.refresh
}
},proc{ return $DEBUG })
It only happens when I increase the number of boxes, from 24, the default amount, to any amount (25, 26,27,28, etc ...)
Last edited: