- Jan 21, 2020
- Reaction score
- First Language
- Primarily Uses
I exported my game and sent it to a friend. When he opens he gets a screen saying Reference errors, but I can open it fine. Can anyone help? thx
I've moved this thread to RPG Maker MV Deployment. Please be sure to post your threads in the correct forum next time. Thank you.
of course here:Can you please get a screenshot from your friend? Does this error happen as soon as he launches the game? Or does he get to the title screen and take some action (and if so, what action)?
Also a screenshot of your plugin manager (or several, if you have more than one screen worth).
Is this the first time you've given the game to your friend? Any chance he had a previous version and is trying to load a game he started in one of those versions?
yeah he has an old build I told him to delete it didn't workokay - double posting means posting twice in a row. If the last post is not yours, you can go ahead and post. If the last post is yours, you should edit it instead of posting again.
That is not your plugin manager.
Is this the first build you have given your friend? Did he have an earlier build and might have saved a game in that version?
thanks the error was fixedHe may also need to delete any save files.
I am thinking you gave him your game, which he played and made one or more save files. Then you worked on the game some more, adding at least one plugin. Now when he plays it, that plugin is looking for a newState variable in the save files, and his save files don't have it because the plugin wasn't part of the game when he saved.
So two things you can do ...
Get him to delete the save files and then try to play the game.
Look at the code of all your plugins (luckily you don't have many) and see which one contains the word newState (case is important). This will not solve it, but it will identify that it IS a plugin issue and confirm my suspected reason.
edit: I believe the error is coming from the MouseSystem plugin. My guess is that your friend has a gamepad connected, and you do not. The aliased _updateGamepadState uses a variable called newState but does not define it. The original function defines it. But local variables in the original function are not available to the aliased function afaik, so I think this is a bug with the plugin.
The quick solution is to have your friend disconnect his gamepad. But you should look for a fix for this, or use a different mouse plugin.
That plugin actually says it requires TacticsSystem.js and you don't have that in your project at all. Why do you have the mouse system plugin?