RPG Maker MV Syntax Error

Status
Not open for further replies.

Zonen

Veteran
Veteran
Joined
Mar 30, 2016
Messages
95
Reaction score
44
First Language
English
Primarily Uses
As the characters move into a specific building I keep getting this error.  Does anyone know what I need to do to fix this?


The room used to work just fine in all other tests.  This just recently started happening.


Uncaught SyntaxError: Unexpected token �rpg_managers.js:1726 SceneManager.onError
rpg_managers.js:1727 file:///C:/Users/zonen/Desktop/Soul%20Quest/index.html?test 1rpg_managers.js:1727 SceneManager.onError
index.html:1 Uncaught SyntaxError: Unexpected token �
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
The error appears to be due to this file:


test 1rpg_managers.js


That's not a default file that comes with the program. Where did that file come from? Was it from a plug-in?
 

Zonen

Veteran
Veteran
Joined
Mar 30, 2016
Messages
95
Reaction score
44
First Language
English
Primarily Uses
I honestly have no idea, I searched around for this file and don't see it.
 

Zonen

Veteran
Veteran
Joined
Mar 30, 2016
Messages
95
Reaction score
44
First Language
English
Primarily Uses
I guess I'll try to replace the rpg_managers.js file
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
420
First Language
Portuguese
Primarily Uses
RMMV
It seems to be lacking line breaks. Any pic of the console?
 

Zonen

Veteran
Veteran
Joined
Mar 30, 2016
Messages
95
Reaction score
44
First Language
English
Primarily Uses
Yes


Untitled.png


Untitled2.png

Untitled3.png
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
Please post a screenshot of the console output when the error happens - that will contain all the info we need, without the risk of mistypings when you retype it - because the name above does contain at least one type, the space between test and 1prg_managers.js can't be a correct part of the message (all spaces in filenames would have been converted to %20, as it happened with the space in "Soul Quest" -> "Soul%20Quest" of the project path
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
420
First Language
Portuguese
Primarily Uses
RMMV
Could you please make the console smaller before taking a screenshot of it? ^_^'

Also, please expand the data (those black arrows on the side), they have the info we need.


But from what I can see there is an unknown symbol in the file "test 1"
 

Zonen

Veteran
Veteran
Joined
Mar 30, 2016
Messages
95
Reaction score
44
First Language
English
Primarily Uses
Could you please make the console smaller before taking a screenshot of it? ^_^'

Also, please expand the data (those black arrows on the side), they have the info we need.


But from what I can see there is an unknown symbol in the file "test 1"


Yes I apologizeUntitled4.png
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
420
First Language
Portuguese
Primarily Uses
RMMV
Ok... it seems what is giving an error is the part of the files that gives error messages... 


Could you share with us thes test 1 file?


(Although there are chances even a space in the filename may be the reason for the problem)
 
Last edited by a moderator:

Zonen

Veteran
Veteran
Joined
Mar 30, 2016
Messages
95
Reaction score
44
First Language
English
Primarily Uses
Ok... it seems what is giving an error is the part of the files that gives error messages... 


Could you share with us thes test 1 file?


(Although there are chances even a space in the filename may be the reason for the problem)


Thats an issue, as I don't have a test 1 file in my project folder anywhere.  I don't even know where that is coming from.
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
Ok, so it seems people have a misunderstanding of what the console output is. There is no "test 1" file. The error is saying that there is an error in the index.html file on line 1, which may or may not be accurate. Sometimes errors that happen before the game can fully set itself up cause issues with error reporting.


index.html?test is a valid URL. It's looking at the index.html file, and anything after the "?" is part of the query string, which is a way for files to get more information about what they should do. Take the forums for example. http://forums.rpgmakerweb.com/index.php?/topic/69245-rpg-maker-mv-syntax-error/#comment-657798 the forums seem to operate almost entirely on index.php and it only shows different content based on the query string. That's a perfectly valid way to do things.


My recommendation to you is to try replacing your index.html file with a new copy, it's possible something got in there by mistake. "Unexpected token" errors generally mean a character that isn't valid is in the file. Unfortunately for us, such characters also tend to not be drawable characters, so we can't really just look at the file and see where the issue is, because we can't see a character that can't be drawn. That's why the error message is showing the diamond with the "?". It doesn't know how to draw whatever character is in the file, so it defaults to that diamond.
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
420
First Language
Portuguese
Primarily Uses
RMMV
I had just thought that it could be something in the index file, believe it or not. I was looking into the one of my project to see if there was anything in the first line that could be referencing to something else.


Thanks for the help! Hope it works for them.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
That makes sense. I heard you had to update the index.html file for the newer updates of MV, so it sounds like the error then is the OP needs to update their index.html file.
 

Zonen

Veteran
Veteran
Joined
Mar 30, 2016
Messages
95
Reaction score
44
First Language
English
Primarily Uses
Ok, so it seems people have a misunderstanding of what the console output is. There is no "test 1" file. The error is saying that there is an error in the index.html file on line 1, which may or may not be accurate. Sometimes errors that happen before the game can fully set itself up cause issues with error reporting.


index.html?test is a valid URL. It's looking at the index.html file, and anything after the "?" is part of the query string, which is a way for files to get more information about what they should do. Take the forums for example. http://forums.rpgmakerweb.com/index.php?/topic/69245-rpg-maker-mv-syntax-error/#comment-657798 the forums seem to operate almost entirely on index.php and it only shows different content based on the query string. That's a perfectly valid way to do things.


My recommendation to you is to try replacing your index.html file with a new copy, it's possible something got in there by mistake. "Unexpected token" errors generally mean a character that isn't valid is in the file. Unfortunately for us, such characters also tend to not be drawable characters, so we can't really just look at the file and see where the issue is, because we can't see a character that can't be drawn. That's why the error message is showing the diamond with the "?". It doesn't know how to draw whatever character is in the file, so it defaults to that diamond.


I had given that a try earlier but no dice. It was after this fact that I decided to look more into the particular house it keeps happening at to find that for some reason the First Floor map was blank!  So anyhow, the error seems to be due to the fact that everything I had in that map my player was to transfer to was gone.  Thank you guys all for helping me brainstorm this.  It helped me figure it out.


P.S.



I know I know, rookie mistake.
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@TheLonelyWolf This is not a general thread for all syntax errors, as each instance will probably have different causes. We also ask that people do not hijack someone else's thread with a different question. And it is a 3 year necro post. Please read the Forum Rules which you can find here.

Please start a new thread. Tell us exactly what is happening immediately prior to the error message so that people have some context for it.

[mod]As the OP's query was resolved, I am closing this.[/mod]
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top