RPG Maker MV Syntax Error

● ARCHIVED · READ-ONLY
Started by Zonen 17 posts View original ↗
  1. 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 �
  2. 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?
  3. I honestly have no idea, I searched around for this file and don't see it.
  4. I guess I'll try to replace the rpg_managers.js file
  5. It seems to be lacking line breaks. Any pic of the console?
  6. Yes


    Untitled.png


    Untitled2.png

    Untitled3.png
  7. 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
  8. 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"
  9. Waterguy said:
    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
  10. 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)
  11. Waterguy said:
    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.
  12. 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.
  13. 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.
  14. 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.
  15. Zalerinian said:
    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.
  16. help.PNGhellllp please?
  17. @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]