Search Unity

Error Messages-BCE0044

Discussion in 'Scripting' started by VICTOM, Sep 8, 2005.

  1. VICTOM

    VICTOM

    Joined:
    Aug 28, 2005
    Posts:
    233
    error BCE0044 at column1: 'expecting EOF, found 'public".

    This is an error message I get when I make a copy of the script FPSWalker.

    Steps I took:
    1)Created a new script
    2)Opened FPSWalker
    3)[ COMMAND KEY ] +[ A ]
    4)[ COMMAND KEY ] +[ C ]
    5) switch back to my newly created script and delete all
    6)[ COMMAND KEY ] +[ V ] to paste FPSWalker
    7) close the script editors
    8] GET ERROR

    So, why is my copy getting an error?

    Cheers,
    -Tom
     
  2. robertseadog

    robertseadog

    Joined:
    Jul 23, 2005
    Posts:
    374
    Im not really god at this, but what kind of script did you paste it into? Other than that, I don't really know why it should react to a copyed script?
     
  3. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Is it possible you are copy&pasting C# code into a javascript file?
    (a script with the file extension .js)

    The fps controller is written in C#?
     
  4. VICTOM

    VICTOM

    Joined:
    Aug 28, 2005
    Posts:
    233
    Yes, that would be it.

    Cheers,
    -Tom[/quote]
     
  5. robertseadog

    robertseadog

    Joined:
    Jul 23, 2005
    Posts:
    374
    Hehe, this sort of thing happens to me all the time- I spent all of yeasterday removing stupid errors, might actually be the most annoying thing in developing.