- Joined
- Feb 28, 2023
- Posts
- 116
XD.wrong thread
Voltseon updated Voltseon's Pause Menu with a new update entry:
Officially updated to v20.1!
Read the rest of this update entry...
so will the old handlers still work? Just curious
XD.wrong thread
Voltseon updated Voltseon's Pause Menu with a new update entry:
Officially updated to v20.1!
Read the rest of this update entry...
Not sure. Haven't had a chance to check yet.XD.
so will the old handlers still work? Just curious
This version of the script does not support the old MenuEntriesso will the old handlers still work? Just curious
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]
Exception: NoMethodError
Message: undefined method `bitmap' for nil:NilClass
Backtrace:
[Voltseon's Pause Menu] 004_VoltseonMenu_Components.rb:191:in `refresh'
[Voltseon's Pause Menu] 004_VoltseonMenu_Components.rb:185:in `update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `block (2 levels) in update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `each'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `block in update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:219:in `loop'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:219:in `update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:297:in `pbStartPokemonMenu'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:288:in `call_menu'
[Following Pokemon EX] Refresh.rb:122:in `call_menu'
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]
Exception: NoMethodError
Message: undefined method `bitmap' for nil:NilClass
Backtrace:
[Voltseon's Pause Menu] 004_VoltseonMenu_Components.rb:191:in `refresh'
[Voltseon's Pause Menu] 004_VoltseonMenu_Components.rb:185:in `update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `block (2 levels) in update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `each'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `block in update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:219:in `loop'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:219:in `update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:297:in `pbStartPokemonMenu'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:288:in `call_menu'
032:Scene_Map:203:in `update'
There seems to be a problem the "Menu_Main" in the section where it Overrides the default Pause Menu Screen calls, I'll look into itHiya! Thanks for taking the time to update this plugin! I removed the old version and updated to this one, and the menu runs really well. I seem to have run into an issue when starting a new save, though. When the save completes, I get this error:
Ruby:[Pokémon Essentials version 20.1] [v20.1 Hotfixes 1.0.7] Exception: NoMethodError Message: undefined method `bitmap' for nil:NilClass Backtrace: [Voltseon's Pause Menu] 004_VoltseonMenu_Components.rb:191:in `refresh' [Voltseon's Pause Menu] 004_VoltseonMenu_Components.rb:185:in `update' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `block (2 levels) in update' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `each' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `block in update' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:219:in `loop' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:219:in `update' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:297:in `pbStartPokemonMenu' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:288:in `call_menu' [Following Pokemon EX] Refresh.rb:122:in `call_menu'
When I restart the game it looks like the save was successful at least, so no data gets lost, it just shows this error and forces the game to close.
I haven't changed anything in the script yet so I thought at first it might be a conflict with Following Pokémon EX because I saw it in the backtrace, but when I decided to test in a clean copy of Pokémon Essentials, the issue happened there after starting a new save as well.
Ruby:[Pokémon Essentials version 20.1] [v20.1 Hotfixes 1.0.7] Exception: NoMethodError Message: undefined method `bitmap' for nil:NilClass Backtrace: [Voltseon's Pause Menu] 004_VoltseonMenu_Components.rb:191:in `refresh' [Voltseon's Pause Menu] 004_VoltseonMenu_Components.rb:185:in `update' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `block (2 levels) in update' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `each' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `block in update' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:219:in `loop' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:219:in `update' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:297:in `pbStartPokemonMenu' [Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:288:in `call_menu' 032:Scene_Map:203:in `update'
Is this something I'm doing wrong?
Edit: I ended up downgrading back to the previous version of the pause menu, did another test, and it works in the old version. It seems like in the new version, the problem is probably with the script trying to bring the menu back up after saving.
#-------------------------------------------------------------------------------
# Overriding the default Pause Menu Screen calls
#-------------------------------------------------------------------------------
class Scene_Map
def call_menu
$game_temp.menu_calling = false
$game_temp.in_menu = true
$game_player.straighten
$game_map.update
if safeExists?(MENU_FILE_PATH) #&& safeExists?(MENU_FILE_PATH + "Backgrounds/")
sscene = VoltseonsPauseMenu_Scene.new
else
if !$game_temp.menu_warining_done
pbMessage("Current MENU_FILE_PATH defined for Voltseon's Pause Menu is #{MENU_FILE_PATH}")
pbMessage("This directory does not exist in your game folder.")
pbMessage("To rectify this, open the 001_VoltseonMenu_Config.rb using the text editor of your choice, and edit the MENU_FILE_PATH you see there.")
pbMessage("Opening default pause menu as a failsafe...")
$game_temp.menu_warining_done = true
end
sscene = PokemonPauseMenu_Scene.new
end
sscreen = PokemonPauseMenu.new(sscene)
sscreen.pbStartPokemonMenu
$game_temp.in_menu = false
end
end
if safeExists?(MENU_FILE_PATH) #&& safeExists?(MENU_FILE_PATH + "Backgrounds/")
class PokemonPauseMenu
def pbStartPokemonMenu
@scene.pbStartScene
@scene.update
end
end
end
Fixes:
- Fixed a crash that occured when idling in the bag or save screen.
- Made sure the menu refreshes after using an item from the bag or after saving.
I am getting the error you got too.Sometimes when saving this error and another one (I think the other one says line 232 according to my friend)
It now takes the MenuHandlers for the default pause menu, in case you're not familiar with them, they are comparable to PBS but defined with code and can be put anywhere.I'm a little confused about how we add menu entries since this big official 20.1 update. Used to have the quest log on a 19.1 game but not sure how to re-add that for a v20.1 update
UI_PauseMenu
)MenuHandlers.add(:pause_menu, :bag, {
"name" => _INTL("Bag"),
"order" => 30,
"condition" => proc { next !pbInBugContest? },
"effect" => proc { |menu|
pbPlayDecisionSE
item = nil
pbFadeOutIn {
scene = PokemonBag_Scene.new
screen = PokemonBagScreen.new(scene, $bag)
item = screen.pbStartScreen
(item) ? menu.pbEndScene : menu.pbRefresh
}
next false if !item
$game_temp.in_menu = false
pbUseKeyItemInField(item)
next true
}
})
:pause_menu
which is the identifier of what this handler is used for, after that is :bag
aka the internal id. Then everything is ordered like a hash with "name"
being whatever the display name is. "order"
is a number that is used to sort the menu entries in an order (ascending). "condition"
uses a proc
(Process or a code block object) which returns either true or false, if it returns true (next true
) it will show this entry. "effect"
is pretty self explanatory, it does yield a menu variable, which is a reference to the pause menu scene, this can be used if you want to show or hide the menu. The icon is found in the Graphics/Pictures/VPM
or Graphics/Pictures/VPM/Theme N
folder (N is the number of the currently selected theme) where it will look for any picture named "menu_internal_id
" (where internal_id
is replaced by whatever you put at the top.Still need help trying to find a fix for this oneSometimes when saving this error and another one (I think the other one says line 232 according to my friend)
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]
Exception: NoMethodError
Message: undefined method `y' for nil:NilClass
Backtrace:
[Voltseon's Pause Menu] 004_VoltseonMenu_Components.rb:232:in `update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `block (2 levels) in update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `each'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:223:in `block in update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:219:in `loop'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:219:in `update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:297:in `pbStartPokemonMenu'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:288:in `call_menu'
[Following Pokemon EX] Refresh.rb:122:in `call_menu'
032:Scene_Map:203:in `update'