• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Voltseon's Pause Menu

Resource Voltseon's Pause Menu v2.1

so will the old handlers still work? Just curious
This version of the script does not support the old MenuEntries
 

Amallah

Horror Maze Enthusiast
Member
Joined
Apr 3, 2023
Posts
42
Hiya! 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:
Expand Collapse Copy
[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:
Expand Collapse Copy
[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.
 
Last edited:

Lamola||ShinyObstagoon88

Novice
Member
Joined
Dec 24, 2022
Posts
12
Hiya! 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:
Expand Collapse Copy
[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:
Expand Collapse Copy
[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.
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 it

EDIT: I found the error, in the following line of code it lacks the parts I added as comments, this prevents the failsafe to activate and makes the game crash

Ruby:
Expand Collapse Copy
#-------------------------------------------------------------------------------
# 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

While this does create a failsafe it appears it's still not the cause of the crash, I'll have to look further
 
Last edited:

SylverioRamada

PokéFan with learn to made a RpgMaker Pokemon Game
Member
Joined
Apr 16, 2023
Posts
4
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Exception: NoMethodError
Message: undefined method `dispose' for nil:NilClass

Backtrace:
[Voltseon's Pause Menu] 004_VoltseonMenu_Components.rb:156:in `dispose'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:260:in `block in pbEndScene'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:260:in `each'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:260:in `pbEndScene'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:230: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'


please i need help with this
 

Amallah

Horror Maze Enthusiast
Member
Joined
Apr 3, 2023
Posts
42
Thanks so much for the update, can confirm this solved my saving issue!
 

SylverioRamada

PokéFan with learn to made a RpgMaker Pokemon Game
Member
Joined
Apr 16, 2023
Posts
4
Now, i updated VPM but i have a similar error log

[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Exception: NoMethodError
Message: undefined method `dispose' for nil:NilClass

Backtrace:
[Voltseon's Pause Menu] 004_VoltseonMenu_Components.rb:155:in `dispose'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:260:in `block in pbEndScene'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:260:in `each'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:260:in `pbEndScene'
279:UI_PauseMenu:264:in `block in <main>'
[Voltseon's Pause Menu] 003_VoltseonMenu_Menu.rb:54:in `update'
[Voltseon's Pause Menu] 002_VoltseonMenu_Main.rb:222: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'
 

blooeysnake

Novice
Member
Joined
Jan 22, 2023
Posts
28
Sometimes when saving this error and another one (I think the other one says line 232 according to my friend)
 

Attachments

  • Voltseon Puase Error.png
    Voltseon Puase Error.png
    5.6 KB · Views: 95

Neo

Novice
Member
Joined
Jun 12, 2022
Posts
12
Even after removing it from "005_VoltseonMenu_Entries", the Encounters option still appears in the menu
screenshotofcode.PNG
screenshotofgame.PNG
 

Atomseuche

Rookie
Member
Joined
May 10, 2023
Posts
4
Sometimes when saving this error and another one (I think the other one says line 232 according to my friend)
I am getting the error you got too.
I could recreate that as follows:

Open the game.
Save.
Close the window with the X in the upper right corner.
Reopen the game.
Save. -> Error occurs.

I am not getting the error when:

Open the game.
Save.
Close the window via the ingame option to close the game. Saving optional there.
Reopen the game.
Save. -> No error occurs.

That could be a problem with the "New Quest" message not correctly updating or loading the scripts when closing the game via the X.
 

Mashirosakura

With my wishes frozen in time and long forgotten
Discord Mod
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
 
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
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.
Here's the bag menu handler for example (found in UI_PauseMenu)
Ruby:
Expand Collapse Copy
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
  }
})
In the first line you have the :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.

I hope this helps out!
 

ClessioTV

Elite Trainer
Member
Joined
Sep 24, 2022
Posts
270
Hello, I have a small issue after a save that seems to be related to the quest manager combined with the menu.

Do you have a suitable solution?
[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'
 

LinKazamine

Champion
Member
Joined
May 24, 2023
Posts
674
You can simply add another rb file and put there the code for the new entry. It can be either alongside this plugin's files or the ones for the badge case. Also, as someone using both scripts, you can simply use the code to add the option to the default pause menu and it'll work just fine.
 

hostman

Trainer
Member
Joined
Aug 24, 2023
Posts
70
It's very cool but in v21.1 it goes very fast, sometimes I lightly press the key and several icons jump, how can I slow down?
 

LinKazamine

Champion
Member
Joined
May 24, 2023
Posts
674
Pokemon Essentials 21 changed how the framerate works, from 40 per second to whatever the monitor allowed for smooth gameplay. So you'll have to search and change anything that mentions frames to try and make it work with the new framerate.
 
Back
Top