Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: geork on Wed 11/03/2009 17:08:27

Title: 2 room errors
Post by: geork on Wed 11/03/2009 17:08:27
 hey Ags!
    I've just tried to run my room (it worked fine earlier), but then I tried some coding in my first room file and BANG! I get these two error messages, I must have done something silly...I cleared up any additions I had made but still had these errors when I tried to compile:
    Error1:
 Failed to save room room1; details below
                         

    Error2: my code looks normal, but when I try and compile this;
        // room script file

function hHotspot1_AnyClick()
{
  Display("ahh, my prized chicken tickka masala collection");
} //etc etc etc
     

   but the error complains that:
 Runtime error: Functon still open, missing }
                                                       

    This error is related to line 1 (the //room script file), and I can't understand why. I tried putting a } there but naturally, that didn't work
      Thanks
         Geork
Title: Re: 2 room errors
Post by: paolo on Wed 11/03/2009 18:11:24
Ah, the dreaded missing } error...

This means there is a missing } somewhere in your room script, but the compiler can't tell where. You'll need to go through the file carefully looking for where you have left out a }.
Title: Re: 2 room errors
Post by: Gilbert on Wed 11/03/2009 18:12:51
Hint: Use the 'Match Brace' feature of the script editor to check if the braces are paired up appropiately.
Title: Re: 2 room errors
Post by: geork on Wed 11/03/2009 18:17:37
thankyou!!!!!!!!
  thankyou very much! problem solved ;D