Common Events Not Closing Item Menu

Hey! I am trying to get an item to teleport characters back to a hub by using a common event. But the menu fails to close, so the event can't run. Is there a simple band-aid fix for this? I've disabled all my plug-ins and none of them are causing it. Is there a way to force close the menu before running the common event? Thanks in advance <3
I'm going to take a guess that it's something to do with the way you've evented your Common Event.

Can you show us what exactly you setup in your common event, as well as the item its linked to in your System?
Screenshots would be best.

I had a very similar item in my 1st game, and it worked just fine through Common Event.


From what it sounds like, it might be an interfering autorun/parallel process that is causing some issue, but I need to see it to be sure.
Hey, thanks for the response. If the player has visited the Mung Lounge, the idea is that they can use the bean to teleport back at any time. Here are the screenshots:
Screenshot 2023-04-30 at 7.10.19 PM.png
Screenshot 2023-04-30 at 7.09.51 PM.png
Anytime!

Okay, from what I can put together, it doesn't seem like there's any autorun/parallel events interfereing.

Something I would say is be careful about when your Switch is ON/OFF.
To the right of your "Trigger" box in your common event, there should be a Switch option. Do you currently have anything set in that option since you didn't show it in the screenshot? If so, that could be a concern for how the menu is brought up.

Another thing I would just point out is that in general, you can set a "Stop" to the processing of your event by going to Flow Control, and finding "Exit Event Processing". I had to use this a few times in my 1st game to break out of some options.
You could try using that in your event and see if it helps with closing the Menu.


But otherwise, I'm not too sure. The event should seem simple enough that it wouldn't cause the Menu to fail to close. Unless it's an interfering event on your actual Mung Bar map that's autorun/parallel.
By default the game returns you from the item scene back to the map whenever you use an item that reserves a common event (checkCommonEvent of Scene_ItemBase). So it sounds like you're asking for something that should be happening by default. 😅

It may be a problem with:
  1. Plugin(s): after turning off all plugins, you need to save your project to apply Plugin Manager changes before testing. If you didn't do that, then your test still had those plugins enabled.

    You should also generally test from a new game. Loading an old save can result in strange problems, particularly if you've added/removed plugins since the save was created.

  2. Core scripts: you can use the Game -> Update Corescript option from the editor's menu bar. This should fix most problems related to the core engine.
I know I am trying to do something that should be automatic haha. I've flipped all the plugins off. I've updated. I think I found the code but I don't know how to mess with it. I'm just not sure what I'm missing.
Screenshot 2023-05-01 at 3.15.40 PM.png
Yes, that's the default code. I never suggested you mess with it. Please don't edit your core script files: that's what plugins are for. 😅

Double-check you're actually using the item with a common event attached, e.g. temporarily rename it to something really obvious like !!TEST ITEM!!. Make sure all plugins are still turned off. Close the playtest window if it's open, save your project, (re-)launch playtest, and select New Game from the title screen.

If you see the changed item name in-game and you are still experiencing the issue with that item, I don't know why that would happen. 😴

If the item name hasn't changed in-game:
  1. You may have been testing on the wrong item, or
  2. You may be playtesting an old version of your game.
Case 2 can happen due to a bad project configuration or some form of file access issue, e.g. cloud storage/backups or OS security. A number of users have reported issues with auto-backup services like OneDrive, for example.

If you can, it may help to figure out the exact steps necessary to reproduce the problem on your end, starting from a new project.

Original thread: https://forums.rpgmakerweb.com/threads/common-events-not-closing-item-menu.157102/