I'm currently having problems with yanfly's MMM. When I exit to the main menu, I get an error that says Load undefined.
Load Option with Yanfly's Main Menu Manager <Resolved>
Javascript/Plugin SupportPlease show a screenshot of the error message, from the console (press F8 when it happens, go to the Console tab, and get screenshot from there).
I've moved this thread to Plugin Support . Thank you.
Much thanks! I wasnt aware of where to post the thread.
The parameters are all evals, so:
- For the Name and Symbol, use
"Load"or'Load'(equivalent). This tells the game that you mean the word "Load" rather than a variable by that name.
- Use this for your Main Bind:
This will return a function bound to the appropriate context/argument, as opposed to one that runs immediately when the menu loads. In case you're interested, technical details on theJavaScript:SceneManager.push.bind(SceneManager, Scene_Load)bindmethod can be found here:
Function.prototype.bind() - JavaScript | MDN
The bind() method of Function instances creates a new function that, when called, calls this function with its this keyword set to the provided value, and a given sequence of arguments preceding any provided when the new function is called.developer.mozilla.org
Thank you so much! It works now!!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/load-option-with-yanflys-main-menu-manager-resolved.123982/