MV Undertale Battle System plugin

Hi,

This is about SumRndmDde's Undertale Battle System plugin. I hope some people here have used it since he seems quite well known. When I exit a battle through sparing (even when all the conditions are met) the game crashes and says "SyntaxError Invalid or Unexpected Token". The victory text plays, but it doesn't exit to the overworld.

Link to the plugin: http://sumrndm.site/undertale-battle-system/
All the code I have is as it was in the video, I've spell checked multiple times.

Console:
debug.png
Welcome!

So...a couple of things.

1 - the error is saying there's a typo in the code. So you saying the code is the same as the video is kind of meaningless, because either it isn't or it's wrong in the video. If you had bothered to actually paste in what you have, we could've answered that in one post 😛
(use the CODE tags, the </> on the top edit bar)

2 - Something is weird with your default code. It's saying it's calling Game_Interpreter.command355() from rpg_objects.js, line 10455, but that function should be on line 10494:
1708782617381.png


This indicates to me that you're either using a very outdated version of MV's code, or you've modified it in some way.

When you open rpg_objects.js in a text editor, what version does it say at the top? It should be 1.6 or higher.

MV did change JavaScript versions at one point, so it's theoretically possible that your code actually is correct but you're using such an obsolete version of MV that the syntax is invalid.
Hi, thanks for the quick reply!

I think I've figured it out. Under the website of the plugin, there were two files - the plugin itself (text file) and a RPG Maker file that had the plugin installed as a demonstration. I began my project by reworking that RPG Maker file out of laziness to installing it myself, which was probably made in an older version (1.3.3) despite the fact that my version of RPG Maker is 1.6.3. So the default javascript files that came with the RPG Maker file I downloaded are outdated, and I should create a new 1.6.3 project and install the plugin in that project, is that it?
Or just update your existing project, if you already have work done in it.

If you search for any of the version announcement threads, they all have instructions on how to do that.

But your post is a bit confusing - if you're saying you're using the demo project that the plugin came with and you're getting errors, that wouldn't be caused by the old project code as that's obviously what the plugin was written for.

Original thread: https://forums.rpgmakerweb.com/threads/undertale-battle-system-plugin.166121/