My game won't save! Please help:(

So in this particular map, when I try to save my game it gives me this error:
1728315903511.png


Here's the console log:
1728315928333.png

I really don't know what might be causing that, and I desperately need help.
does this happen when you start a new game and try to save or when you load an existing save and save it again, or in both cases?

Also please state what your editor version and what your project version is
(go to your project folder, the js folder, open rpg_core.js with a text editor and check the title line for the version number.This might be older than your editor version)
does this happen when you start a new game and try to save or when you load an existing save and save it again, or in both cases?

Also please state what your editor version and what your project version is
(go to your project folder, the js folder, open rpg_core.js with a text editor and check the title line for the version number.This might be older than your editor version)
both cases unfortunately🙁 I'm using RPG Maker MV version 1.6.3 and my rpg_core is 1.6.2 (I don't know why, because I just updated it from a new project)
Are you using some plugin that add sprite to events or the player? From the error message it looks like that. Because a sprite or picture can't be saved correctly.
Are you using some plugin that add sprite to events or the player? From the error message it looks like that. Because a sprite or picture can't be saved correctly.
No, I don't think I do, but I just noticed something. It says that property "clamp" is undefined, and the only plugin I see this word in is SRD_GameCore. So maybe if I change the "Wrap Mode" it'll fix the issue? I'll try that and let you know🙂

1728317752146.png


No, I don't think I do, but I just noticed something. It says that property "clamp" is undefined, and the only plugin I see this word in is SRD_GameCore. So maybe if I change the "Wrap Mode" it'll fix the issue? I'll try that and let you know🙂

1728317752146.png
Nope... Didn't fix anything. In fact now it's happening even when I don't save the game
both cases unfortunately🙁 I'm using RPG Maker MV version 1.6.3 and my rpg_core is 1.6.2 (I don't know why, because I just updated it from a new project)
1.6.3 didn't change the code.

It says that property "clamp" is undefined, and the only plugin I see this word in is SRD_GameCore. So maybe if I change the "Wrap Mode" it'll fix the issue?
That would have nothing to do with it - as you were already told, the error has to do with sprites, not anything with trying to wrap words in a message box. Your scene is updating and trying to update a sprite that was added to its children but doesn't actually exist.

Also, the first line of the error tells you exactly where "clamp" is found - line 6170 of rpg_core.

The VPlayer plugin is both in the list and has to do with creating images (that's the thing that lets you add GIFs, right?). Does the game work if you turn that plugin off, save your project, and start a new game?
1.6.3 didn't change the code.


That would have nothing to do with it - as you were already told, the error has to do with sprites, not anything with trying to wrap words in a message box. Your scene is updating and trying to update a sprite that was added to its children but doesn't actually exist.

Also, the first line of the error tells you exactly where "clamp" is found - line 6170 of rpg_core.

The VPlayer plugin is both in the list and has to do with creating images (that's the thing that lets you add GIFs, right?). Does the game work if you turn that plugin off, save your project, and start a new game?
Still doesn't work for some reason. I turned off the VPlayer, saved, started a new game and still got the same error...
Then you need to do some basic troubleshooting with your project.

Turn off all plugins, verify that works. If it doesn't, then you've broken something either by putting in some script calls, or you have an event command or something that's referencing a picture and you changed the filename or deleted that picture.

If it does work with no plugins active, turn them back on until you find which one is causing the problem.
Then you need to do some basic troubleshooting with your project.

Turn off all plugins, verify that works. If it doesn't, then you've broken something either by putting in some script calls, or you have an event command or something that's referencing a picture and you changed the filename or deleted that picture.

If it does work with no plugins active, turn them back on until you find which one is causing the problem.
Yeah... I'll give you an update when I'm done. Thanks!
Then you need to do some basic troubleshooting with your project.

Turn off all plugins, verify that works. If it doesn't, then you've broken something either by putting in some script calls, or you have an event command or something that's referencing a picture and you changed the filename or deleted that picture.

If it does work with no plugins active, turn them back on until you find which one is causing the problem.
So... Update: I found the impostor and I believe it was SRCrazy_TimedBarDisplay. I used it to show a timer bar for my timed choices. I guess I need to let it go. Thanks for all the help guys!
It says that property "clamp" is undefined,
no, it does not.
with error messages it is extremely important what they truly say and not just read the wrong words.

it says "cannot read property clamp of undefined."

That means it is missing the "parent" of clamp, not that clamp itself is undefined.

so you would have to look for the thing that clamp is supposed to be a part of, because that is what is undefined. And that is also why your search for clamp went wrong...

Perhaps you can understand it better with a more practical example:
let's say for displaying something you need to know the width of a picture. that would usually be picture.width
and if you have no picture and try to find its width, the computer would answer "cannot read property width of undefined", meaning that the picture itself is undefined or missing
no, it does not.
with error messages it is extremely important what they truly say and not just read the wrong words.

it says "cannot read property clamp of undefined."

That means it is missing the "parent" of clamp, not that clamp itself is undefined.

so you would have to look for the thing that clamp is supposed to be a part of, because that is what is undefined. And that is also why your search for clamp went wrong...

Perhaps you can understand it better with a more practical example:
let's say for displaying something you need to know the width of a picture. that would usually be picture.width
and if you have no picture and try to find its width, the computer would answer "cannot read property width of undefined", meaning that the picture itself is undefined or missing
Thanks, I understand it now. I don't really know much about javascript and code. Anyways I found the plugin that was causing the issue, so case closed I guess...
just so you know, if you didn't look through the post:
SRCrazy_TimedBarDisplay has a bug in it and a fix is further on the thread.
if you use that, place it higher or lower in the list of your plugin database.

aside from that, make sure the plugins are in the correct order.
just so you know, if you didn't look through the post:
SRCrazy_TimedBarDisplay has a bug in it and a fix is further on the thread.
if you use that, place it higher or lower in the list of your plugin database.

aside from that, make sure the plugins are in the correct order.
I did not know that. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/my-game-wont-save-please-help.172449/