Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Greetings. 

Binding the crafting scene to the main menu via YEP_MainMenuManager has specific instructions in the help documentation for doing it, and using those same instructions, I am able to bind it into any slot, and access it just fine.

Menu Name: Ramza.CSParams.MenuString
Menu Symbol: craft
Menu Show: $gameSystem._craftingShow
Menu Enabled: $gameSystem._craftingEnabled
Main Main Bind: this.commandCrafting.bind(this)



This works in any of the other slots for the main menu manager as well. Note that none of the text in those boxes are enclosed in quotation marks, none of them are strings, they are all to be eval'd.

(2 edits)

Hello, I followed those instructions quite closely, and put them in slot 81, but I tried this again and put it in slot 17 instead but I am still getting the same errors.

I cannot open the main inventory screen, it just instantly shows me that bug report as I press X. I can only open the inventory when I have disabled the main menu manager, but then the crafting doesn't show in there. 

Edit-------------------------------------------------------------------

I tried turning off all other plugins and leaving only the core engine, the main menu manager and the crafting system on.

And I am still getting this error.


Hello again.

I am unable to duplicate this problem. I too have turned off all other plugins, except for the three listed in your report, and the scene is still accessible via the menu command in the main menu manager, and the crash you report does not happen.


To help track down the cause of the error, it is best to eliminate as many possible compatibility issues as we can. I use more or less the same demo project I have uploaded here for testing, and it appears that, at least on my end, the problem doesn't happen from within that project.

If I can get you to confirm on your end that the demo does not crash when you import the required yanfly plugins into it, and turn the main menu manager plugin on, we can at least confirm that the baseline works.

If it turns out, as I suspect that the demo is no affected by this bug, but your project is, there are still a couple of other things that might cause the issue:

  • You might be using a different version of the main menu manager plugin. The version I'm using in the demo project is v1.02, I'm actually not sure if there is a newer version available, but if there is, it might be interfering somehow.
  • Your project might belong to an older version of RMMV, with outdated core js files, which might be causing an issue. The demo is made with all the core files from v1.6.2. Note that even if your RMMV installation is from version 1.6.2 (via steam or whatever) the core files in your projects do not update automatically when the application updates.
  • You might be using an old save file to test this project, that was created before you installed the crafting system plugin, and the plugin parameters for the crafting system plugin are not initialized correctly in your older save, resulting in the main menu manager checking for values such as the unlocked/hide options being undefined, causing crashes. 

I feel like the third option is the most likely, as commandCrafting is clearly defined on line 3879 in my plugin, but is being called as undefined in your error message. Try starting a new save file and see if the error is still there.

Thanks.

(2 edits)

Okay, firstly my project was made in RPGMV 1.6.2. The main menu manager is in V.1.03, but I put it into the demo project that was provided and it worked just fine.(The demo projects plugins were empty so I had to send them over there.) I even created a totally new project and put those plugins into it and it just does the same crash all over again. 

Now as for the old save file, I was testing it in a new game all the time, not in any old saved files. So when I did some more testing it seems like only your demo project works with the plugins(even the updated main menu manager).

A totally fresh project crashes for me, plus my own which is not that old and was also made in the 1.6.2 version.

Edit:

Also I removed the code for the crafting plugin that is put into the main menu manager, and tried to use the plugin commands to open the menus but it does nothing.

Okay, sorry for the runaround on this one, I've managed to find the problem.

The last three plugin parameters do not contain the proper default values. Instead of containing [], they are simply blank. Until you add values to these plugin parameters manually, or simply click on each one and then click 'ok', the plugin doesn't load at all. I have uploaded a revision c to v1.10 to correct this issue.

It wasn't happening in the demo project because those parameters have items in them in my demo, but not by default when importing the plugin into a fresh project. Before even loading the title screen, the error console would throw the following error - which indicated the exact place I had messed up:


This is from trying to parse an object that isn't an array. Apologies for assuming that there was something wrong with your project, and not my own. The updated version is already available for download, if you'd head on over there and confirm for me that it works.:)

(1 edit)

Thank you for taking your time to help me with the problem! Now it works :D