I’m trying to code a solution to the gridmancer level.
I’m running into trouble when I try to backup my code. I copy and paste from the CodeCombat editor into Notepad++.
Then when I copy my code from Notepad++ back into the CodeCombat editor I see in Chrome, Windows 7 64 bit javascript console these errors:
randotron_0.7834251932799816:7:40: Unterminated String Literal vendor.js:3279
randotron_0.7834251932799816:8:1: Invalid unicode escape sequence in identifier vendor.js:3279
randotron_0.7834251932799816:8:1: Character code ‘0’ is not a valid identifier start char vendor.js:3279
randotron_0.7834251932799816:8:1: ‘)’ expected vendor.js:3279
Here’s a link to a screen shot, it looks like the forum wont let me post images because I’m a new user, so
just prepend https:// to this url:
dl.dropboxusercontent.com/u/49968823/gridmacer_errors.png
I’m guess this has to do with line ending conversions.
It looks like it only happens when I have function declarations in the code like this:
function something(){
}
Then when I refresh the webpage, it seems this error prevents the level from loading, and the only way I can get it back is if I use the restart button.