- Home /
Every time I try to open a javascript I get an error saying some confusing things that I will post below. What do they mean, and how do I fix the error?
The error is as follows; Script: [location of file] Line: 1 Char: 1 Error: Invalid character Code: 800A03F6 Source: Microsoft JScript compilation error
Answer by Mr.Z · Jan 04, 2013 at 02:16 PM
You are probably using a invalid character somewhere. Check your code you misstyped something, or forgot to close a statement or forgot a simbol.
The problem is that nothing was typed. I cannot even open the Javascript. I haven't opened unitron or typed anything.
are you trying to open it with your editor or with your browser?
Answer by Davidovich · Jan 05, 2013 at 12:24 AM
This sounds like you're opening the file from Windows explorer rather than Unity.
If you double click on a .js file in Windows it will try to run it using Windows Script Host. If it's a Unityscript file, it won't be able to run it (because Unity javascript is not even vaguely javascript) and you will get messages like the one listed above.
To open the file double click it in the Unity editor. This will open the entire project in MonoDevelop, which is where you want to start.
Your answer
Follow this Question
Related Questions
Why are these errors messing with me? 2 Answers
BCE0077: It is not possible to invoke an expression of type 'UnityEngine.Animation'. Please help. 1 Answer
syntax errors 1 Answer
Error, I have no idea why :( 2 Answers
Error Java script 1 Answer