Type Error $gameSystem.versionId is not a function

Hello, I am having a problem when I try and load a save I get an error message saying:

Type Error
$gameSystem.versionId is not a function


What would usually happen is that after saving a game, an error will pop up saying:

TypeError
Cannot read property 'clamp' of undefined

After resetting the game via F5 and loading the save, the "versionId" error will show up preventing me from loading it.


I am using a 1.6.2 RPG Maker MV on Steam.
I am not using a save/load plugin so I am not sure what is causing this error.
Note that I tested it on a freshly deployed the game so plugins were not changed mid-game.

Console Log:

rpg_managers.js:1954 TypeError: $gameSystem.versionId is not a function
at Scene_Load.reloadMapIfUpdated (rpg_scenes.js:1791)
at Scene_Load.onLoadSuccess (rpg_scenes.js:1780)
at Scene_Load.onSavefileOk (rpg_scenes.js:1771)
at Window_SavefileList.Window_Selectable.callHandler (rpg_windows.js:902)
at Window_SavefileList.Window_Selectable.callOkHandler (rpg_windows.js:1171)
at Window_SavefileList.Window_Selectable.processOk (rpg_windows.js:1156)
at Window_SavefileList.Window_Selectable.onTouch (Galv_CustomMenu.js:929)
at Window_SavefileList.Window_Selectable.processTouch (rpg_windows.js:1054)
at Window_SavefileList.Window_Selectable.update (rpg_windows.js:986)
Somehow it seems like your JS files were modified or you actually had a plugin that messes this up. You might not be using a save/load plugin per se, but some plugins modify the save/load sequence to add their own data on the saved file.

versionId is a default part of the game code which is used to determine if the map needs to be updated upon loading due to the game version being different that what it was during the save.
Somehow it seems like your JS files were modified or you actually had a plugin that messes this up. You might not be using a save/load plugin per se, but some plugins modify the save/load sequence to add their own data on the saved file.

versionId is a default part of the game code which is used to determine if the map needs to be updated upon loading due to the game version being different that what it was during the save.

Hello, thanks for your reply. 🙂

I would like to ask, is it possible for the save/load function break after the Steam upgrade?
My project was created on RMMV 1.5.x, and I basically continued making it using the same project files on 1.6.x.
I had a lot of issues with my pre-1.6 project (1.3.3 to be exact) when MV 1.6 came out.

Since you're using the Steam version you can swap it back to the version you made your project in by going to Steam -> Library -> Software -> (Right Click) RPG Maker MV -> Properties -> Betas Tab, and on that tab click the drop down menu and choose the version you want to use.

I tried to find a way to use 1.6 when it came out, but it broke way too many things and updating some plugins broke them from how I wanted them originally. But since reverting back to 1.5.2 I have had no issues. 😀
My project was created on RMMV 1.5.x, and I basically continued making it using the same project files on 1.6.x.

Can you open up your rpg_core.js file in a text editor and show a screenshot of the first few lines? It should show the version number of your project files.
Hello, thank you all for your replies.
I was able to determine what the issue was finally. It seems to be related to one of the plugins I am using and unrelated to the game's version. I think I will be able to proceed now that I know what is going on.
Again, thank you all for your help. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/type-error-gamesystem-versionid-is-not-a-function.109255/